I have three audio files, same music but in different formats: wav, flac and mp3. Normal VLC identifies itself as "VLC media player 2.1.0-git Rincewind", and comes from the overnight build repository, though I have removed and reinstalled a couple of times to check. This plays all three files all the way through without problem. When I run the vlcj test using the command
Code: Select all
$> LD_LIBRARY_PATH=/usr/lib/jvm/jdk1.7.0/jre/lib/i386:/usr/lib java -Dvlcj.log=DEBUG -Xms256M -Xmx768M -jar vlcj-1.2.2-test.jar
vlcj: (TestPlayer.java:428) | DEBUG | mediaDurationChanged(mediaPlayer=uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer@471b7f,newDuration=206054)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb76bc0c9, pid=6286, tid=2081844080
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) Server VM (21.0-b17 mixed mode linux-x86 )
# Problematic frame:
# C [libc.so.6+0x1110c9] _IO_file_close_it+0x59
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /host/mike/openJEANSource/systemlib/hs_err_pid6286.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Aborted
The log files show nothing I can see as useful. In my code I have tried all the media options for creating a MediaPlayer that I have seen without change. I am running out of ideas! I thought that as vlcj was just a wrapper then if vlc played it so would vlcj, but that is not the case here. Is vlcj managing to pick up different libraries somehow?
I can see that it is crashing within the native libraries, not in Java. The line
Code: Select all
# Problematic frame:
# C [libc.so.6+0x1110c9] _IO_file_close_it+0x59
Please help if you can!
regards
Mike