JVLC crashes JVM

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
MondayMassacre
New Cone
New Cone
Posts: 3
Joined: 13 Feb 2009 08:56

JVLC crashes JVM

Postby MondayMassacre » 13 Feb 2009 09:10

Hi there,

I'm implementing JVLC into a bigger program and I want to use JVLC to play all kinds of media.

I've nested the jvlc-canvas within several JPanels and it does not show. That, however, is not my main concern. What is more of a problem is, that JVLC is kind of unstable.
In my program, I invoke a new JFrame, have several JPanels within it and one of it hosts the Canvas, the VLC should render to.

To create the jvlc, I use the following code:

Code: Select all

jvlc = new JVLC(new String[] { "-vvv", "--plugin-path=" + vlcPluginFolder }); MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc, mediaURL); mediaPlayer = mediaDescriptor.getMediaPlayer();
some point later in the code, I would do a

Code: Select all

jvlc.setVideoOutput(jvlcCanvas); mediaPlayer.play();
When I close the window, I perform the following steps:

Code: Select all

mediaPlayer.stop(); jvlc.release(); mediaPlayer = null; jvlc = null;
When I want to re-invoke a new JFrame (so I call the JVLC again), it crashes the whole JVM. Starting JVLC with the -vvv option, I receive the debug-outputs, I've added to my post at the bottom.

I can't figure out anything by that trace, maybe you guys can help me out.

Thanks in advance

--------------------
[00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: opening config file (C:\Users\beka\AppData\Roaming\vlc\vlcrc)
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file C:\Users\beka\AppData\Roaming\vlc\plugins-zxzx04.dat
[00000001] main libvlc debug: recursively browsing `C:\Program Files\Java\jdk1.5.0_12\bin\modules'
[00000001] main libvlc debug: recursively browsing `C:\Program Files\Java\jdk1.5.0_12\bin\plugins'
[00000001] main libvlc debug: recursively browsing `C:\Program Files\VideoLAN\VLC\plugins\'
[00000001] main libvlc debug: module bank initialized, found 262 modules
[00000001] main libvlc debug: opening config file (C:\Users\beka\AppData\Roaming\vlc\vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000366] main interaction debug: thread 7972 (Interaction control) created at priority 0 (interface/interaction.c:382)
[00000366] main interaction debug: thread started
[00000368] main input debug: Creating an input for 'Media Library'
[00000368] main input debug: Input is a meta file: disabling unneeded options
[00000368] main input debug: `file/xspf-open://C:\Users\beka\AppData\Roaming\vlc\ml.xspf' gives access `file' demux `xspf-open' path `C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000368] main input debug: creating access 'file' path='C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000369] main access debug: looking for access module: 2 candidates
[00000369] access_file access debug: opening file `C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000369] main access debug: using access module "access_file"
[00000369] main access debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000373] main stream debug: Using AStream*Stream
[00000373] main stream debug: pre-buffering...
[00000373] main stream debug: received first data for our buffer
[00000368] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000374] main demux debug: looking for demux module: 1 candidate
[00000374] playlist demux debug: using XSPF playlist reader
[00000374] main demux debug: using demux module "playlist"
[00000374] main demux debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000368] main input debug: `file/xspf-open://C:\Users\beka\AppData\Roaming\vlc\ml.xspf' successfully opened
[00000389] main xml debug: looking for xml module: 2 candidates
[00000389] main xml debug: using xml module "xml"
[00000389] main xml debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000374] playlist demux debug: parsed 0 tracks successfully
[00000389] main xml debug: removing module "xml"
[00000368] main input debug: EOF reached
[00000368] main input debug: control type=1
[00000374] main demux debug: removing module "playlist"
[00000369] main access debug: removing module "access_file"
[00000368] main input debug: TIMER input launching for 'Media Library' : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms)
[00000391] main preparser debug: waiting for thread initialization
[00000391] main preparser debug: thread started
[00000391] main preparser debug: thread 8048 (preparser) created at priority 0 (playlist/thread.c:79)
[00000392] main fetcher debug: waiting for thread initialization
[00000392] main fetcher debug: thread started
[00000392] main fetcher debug: thread 8060 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000367] main playlist debug: waiting for thread initialization
[00000367] main playlist debug: thread started
[00000367] main playlist debug: rebuilding array of current - root Playlist
[00000367] main playlist debug: rebuild done - 0 items, index -1
[00000367] main playlist debug: thread 8056 (playlist) created at priority 0 (playlist/thread.c:117)
[00000393] main interface debug: looking for interface module: 1 candidate
[00000393] main interface debug: using interface module "hotkeys"
[00000393] main interface debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000393] main interface debug: thread 8072 (interface) created at priority 0 (interface/interface.c:168)
[00000393] main interface debug: thread started
*** LibVLC Exception not handled: No active input
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
[00000395] main input debug: Creating an input for 'test.avi'
[00000395] main input debug: waiting for thread initialization
[00000395] main input debug: thread started
[00000395] main input debug: thread 8188 (input) created at priority 1 (input/input.c:370)
[00000395] main input debug: `C:\test.avi' gives access `' demux `' path `C:\test.avi'
[00000395] main input debug: creating demux: access='' demux='' path='C:\test.avi'
[00000396] main demux debug: looking for access_demux module: 1 candidate
[00000396] main demux debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000395] main input debug: creating access '' path='C:\test.avi'
[00000398] main access debug: looking for access module: 5 candidates
[00000398] vcd access debug: trying .cue file: C:\test.cue
[00000398] vcd access debug: could not find .cue file
[00000398] access_file access debug: opening file `C:\test.avi'
[00000398] main access debug: using access module "access_file"
[00000398] main access debug: TIMER module_Need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
[00000400] main stream debug: Using AStream*Stream
[00000400] main stream debug: pre-buffering...
[00000400] main stream debug: received first data for our buffer
[00000400] main stream debug: pre-buffering done 1408981 bytes in 0s - 275136 kbytes/s
[00000395] main input debug: creating demux: access='' demux='' path='C:\test.avi'
[00000401] main demux debug: looking for demux module: 59 candidates
[00000400] avi stream debug: found Chunk fourcc:46464952 (RIFF) size:8107200 pos:0
[00000400] avi stream debug: found LIST chunk: 'AVI '
[00000400] avi stream debug: <list 'AVI '>
[00000400] avi stream debug: found Chunk fourcc:5453494c (LIST) size:8822 pos:12
[00000400] avi stream debug: found LIST chunk: 'hdrl'
[00000400] avi stream debug: <list 'hdrl'>
[00000400] avi stream debug: found Chunk fourcc:68697661 (avih) size:56 pos:24
[00000400] avi stream debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE 320x240
[00000400] avi stream debug: found Chunk fourcc:5453494c (LIST) size:4240 pos:88
[00000400] avi stream debug: found LIST chunk: 'strl'
[00000400] avi stream debug: <list 'strl'>
[00000400] avi stream debug: found Chunk fourcc:68727473 (strh) size:56 pos:100
[00000400] avi stream debug: strh: type:vids handler:0x3234504d samplesize:0 29.97fps
[00000400] avi stream debug: found Chunk fourcc:66727473 (strf) size:40 pos:164
[00000400] avi stream debug: strf: video:MP42 320x240 planes:1 24bpp
[00000400] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:4116 pos:212
[00000400] avi stream debug: </list 'strl'>
[00000400] avi stream debug: found Chunk fourcc:5453494c (LIST) size:4230 pos:4336
[00000400] avi stream debug: found LIST chunk: 'strl'
[00000400] avi stream debug: <list 'strl'>
[00000400] avi stream debug: found Chunk fourcc:68727473 (strh) size:56 pos:4348
[00000400] avi stream debug: strh: type:auds handler:0x00000001 samplesize:0 38.28fps
[00000400] avi stream debug: found Chunk fourcc:66727473 (strf) size:30 pos:4412
[00000400] avi stream debug: strf: audio:0x0055 channels:2 44100Hz 0bits/sample 62kb/s
[00000400] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:4116 pos:4450
[00000400] avi stream debug: </list 'strl'>
[00000400] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:260 pos:8574
[00000400] avi stream debug: </list 'hdrl'>
[00000400] avi stream debug: found Chunk fourcc:5453494c (LIST) size:24 pos:8842
[00000400] avi stream debug: found LIST chunk: 'INFO'
[00000400] avi stream debug: <list 'INFO'>
[00000400] avi stream debug: found Chunk fourcc:54465349 (ISFT) size:12 pos:8854
[00000400] avi stream debug: ISFT: software : Lavf52.25.0
[00000400] avi stream debug: </list 'INFO'>
[00000400] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:1016 pos:8874
[00000400] avi stream debug: found Chunk fourcc:5453494c (LIST) size:7846670 pos:9898
[00000400] avi stream debug: skipping movi chunk
[00000400] avi stream debug: found Chunk fourcc:31786469 (idx1) size:250624 pos:7856576
[00000400] avi stream debug: idx1: index entry:15664
[00000400] avi stream debug: </list 'AVI '>
[00000400] avi stream debug: * LIST-root size:8107208 pos:0
[00000400] avi stream debug: + RIFF-AVI size:8107200 pos:0
[00000400] avi stream debug: | + LIST-hdrl size:8822 pos:12
[00000400] avi stream debug: | | + avih size:56 pos:24
[00000400] avi stream debug: | | + LIST-strl size:4240 pos:88
[00000400] avi stream debug: | | | + strh size:56 pos:100
[00000400] avi stream debug: | | | + strf size:40 pos:164
[00000400] avi stream debug: | | | + JUNK size:4116 pos:212
[00000400] avi stream debug: | | + LIST-strl size:4230 pos:4336
[00000400] avi stream debug: | | | + strh size:56 pos:4348
[00000400] avi stream debug: | | | + strf size:30 pos:4412
[00000400] avi stream debug: | | | + JUNK size:4116 pos:4450
[00000400] avi stream debug: | | + JUNK size:260 pos:8574
[00000400] avi stream debug: | + LIST-INFO size:24 pos:8842
[00000400] avi stream debug: | | + ISFT size:12 pos:8854
[00000400] avi stream debug: | + JUNK size:1016 pos:8874
[00000400] avi stream debug: | + LIST-movi size:7846670 pos:9898
[00000400] avi stream debug: | + idx1 size:250624 pos:7856576
[00000401] avi demux debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
[00000401] avi demux debug: stream[0] rate:30000 scale:1001 samplesize:0
[00000401] avi demux debug: stream[0] video(MP42) 320x240 24bpp 29.970030fps
[00000395] main input debug: selecting program id=0
[00000401] avi demux debug: stream[1] rate:1225 scale:32 samplesize:0
[00000401] avi demux debug: stream[1] audio(0x55) 2 channels 44100Hz 0bits
[00000401] avi demux debug: stream[0] created 6880 index entries
[00000401] avi demux debug: stream[1] created 8784 index entries
[00000401] avi demux debug: stream[0] length:229 (based on index)
[00000401] avi demux debug: stream[1] length:229 (based on index)
[00000401] main demux debug: using demux module "avi"
[00000401] main demux debug: TIMER module_Need() : 10.000 ms - Total 10.000 ms / 1 intvls (Avg 10.000 ms)
[00000395] main input debug: looking for a subtitle file in C:\
[00000403] main decoder debug: looking for decoder module: 34 candidates
[00000403] avcodec decoder debug: libavcodec initialized (interface 3408896 )
[00000403] avcodec decoder debug: using direct rendering
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
[00000403] avcodec decoder debug: ffmpeg codec (MS MPEG-4 Video v2) started
[00000403] main decoder debug: using decoder module "avcodec"
[00000403] main decoder debug: TIMER module_Need() : 50.000 ms - Total 50.000 ms / 1 intvls (Avg 50.000 ms)
[00000403] main decoder debug: thread 8284 (decoder) created at priority 0 (input/decoder.c:217)
[00000436] main decoder debug: looking for decoder module: 34 candidates
[00000436] main decoder debug: using decoder module "mpeg_audio"
[00000436] main decoder debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000436] main decoder debug: thread 8296 (decoder) created at priority 2 (input/decoder.c:217)
[00000436] main decoder debug: thread started
[00000395] main input debug: `C:\test.avi' successfully opened
[00000403] main decoder debug: thread started
[00000401] avi demux debug: old:0 < new 0
[00000401] avi demux debug: old:0 < new 0
[00000395] main input debug: control type=1
[00000403] main decoder debug: no usable vout present, spawning one
[00000437] main video output debug: window size: 320x240
[00000437] main video output debug: looking for video output module: 6 candidates
[00000437] direct3d video output debug: creating Vout EventThread
[00000440] main generic debug: waiting for thread initialization
[00000436] mpeg_audio decoder debug: MPGA channels:2 samplerate:44100 bitrate:64
[00000436] main decoder debug: no aout present, spawning one
[00000441] main audio output debug: looking for audio output module: 3 candidates
[00000441] aout_directx audio output debug: OpenAudio
[00000440] main generic debug: thread started
[00000437] direct3d video output debug: DirectXCreateWindow
[00000437] direct3d video output debug: created video sub-window
[00000440] main generic debug: thread 1852 (Vout Events Thread) created at priority 0 (direct3d.c:206)
[00000437] direct3d video output debug: Vout EventThread running
[00000437] direct3d video output debug: disabling screen saver
[00000437] main video output debug: using video output module "direct3d"
[00000437] main video output debug: TIMER module_Need() : 29.000 ms - Total 29.000 ms / 1 intvls (Avg 29.000 ms)
[00000437] main video output debug: waiting for thread initialization
[00000437] main video output debug: thread started
[00000437] direct3d video output debug: Direct3D device adapter successfully initialized
[00000437] direct3d video output debug: selected surface pixel format is YUY2
[00000441] aout_directx audio output debug: found device: Prim?rer Soundtreiber
[00000441] aout_directx audio output debug: found device: Lautsprecher (SoundMAX Integrated Digital HD Audio)
[00000437] direct3d video output debug: 1 Direct3D pictures created successfully
[00000437] direct3d video output debug: Direct3D scene created successfully
[00000437] main video output debug: got 1 direct buffer(s)
[00000437] main video output debug: picture in 320x240 (0,0,320x240), chroma I420, ar 4:3, sar 1:1
[00000437] main video output debug: picture user 320x240 (0,0,320x240), chroma I420, ar 4:3, sar 1:1
[00000437] main video output debug: picture out 320x240 (0,0,320x240), chroma YUY2, ar 4:3, sar 1:1
[00000443] main chroma debug: looking for video filter2 module: 19 candidates
[00000443] main chroma debug: using video filter2 module "i420_yuy2_sse2"
[00000443] main chroma debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000437] main video output debug: indirect render, mapping render pictures 0-7 to system pictures 1-8
[00000437] main video output debug: thread 8436 (video output) created at priority 1 (video_output/video_output.c:502)
[00000441] aout_directx audio output debug: device supports 2 channels (DEFAULT!)
[00000441] aout_directx audio output debug: device supports 2 channels
[00000441] aout_directx audio output debug: device supports 1 channel
[00000441] aout_directx audio output debug: Windows says your SpeakerConfig is stereo
[00000441] aout_directx audio output debug: creating DirectSoundThread
[00000445] main generic debug: thread 8548 (DirectSound Notification Thread) created at priority 15 (directx.c:392)
[00000441] main audio output debug: using audio output module "aout_directx"
[00000441] main audio output debug: TIMER module_Need() : 67.000 ms - Total 67.000 ms / 1 intvls (Avg 67.000 ms)
[00000445] main generic debug: thread started
[00000445] aout_directx generic debug: DirectSoundThread ready
[00000441] main audio output debug: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
[00000441] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000441] main audio output debug: filter(s) 'fl32'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo
[00000446] main audio output debug: looking for audio filter module: 24 candidates
[00000454] main spu text debug: looking for text renderer module: 2 candidates
[00000446] main audio output debug: using audio filter module "converter_float"
[00000446] main audio output debug: TIMER module_Need() : 10.000 ms - Total 10.000 ms / 1 intvls (Avg 10.000 ms)
[00000441] main audio output debug: found a filter for the whole conversion
[00000441] main audio output debug: looking for audio mixer module: 3 candidates
[00000480] main generic debug: thread 8720 (fontlist builder) created at priority 0 (freetype.c:477)
[00000441] main audio output debug: using audio mixer module "float32_mixer"
[00000454] freetype spu text debug: using fontsize: 15
[00000441] main audio output debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000454] main spu text debug: using text renderer module "freetype"
[00000441] main audio output debug: input 'mpga' 44100 Hz Stereo frame=1152 samples/1053 bytes
[00000454] main spu text debug: TIMER module_Need() : 9.000 ms - Total 9.000 ms / 1 intvls (Avg 9.000 ms)
[00000454] freetype spu text debug: using fontsize: 15
[00000441] main audio output debug: filter(s) 'mpga'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
[00000482] main audio output debug: looking for audio filter module: 24 candidates
[00000482] main audio output debug: using audio filter module "mpgatofixed32"
[00000480] main generic debug: thread started
[00000482] main audio output debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000441] main audio output debug: found a filter for the whole conversion
[00000441] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo
Fontconfig error: Cannot load default config file
[00000480] freetype generic debug: Building font database...
[00000483] main audio output debug: looking for audio filter module: 24 candidates
[00000480] freetype generic debug: Finished building font database.
[00000483] main audio output debug: using audio filter module "bandlimited_resampler"
[00000480] freetype generic debug: Took 0 seconds
[00000483] main audio output debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000441] main audio output debug: found a filter for the whole conversion
[00000480] main generic debug: thread ended
[00000453] main blend debug: looking for video blending module: 1 candidate
[00000453] blend blend debug: chroma: YUVA -> YUY2
[00000453] main blend debug: using video blending module "blend"
[00000453] main blend debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)

[ CLOSING THE WINDOW, PERFORMING THE CLEANUP ]

[00000436] main decoder debug: removing module "mpeg_audio"
[00000436] main decoder debug: thread ended
[00000395] main input debug: control type=0
[00000395] main input debug: control: stopping input
[00000400] avi stream debug: free chunk avih
[00000400] avi stream debug: free chunk strh
[00000400] avi stream debug: free chunk strf
[00000400] avi stream debug: free chunk JUNK
[00000400] avi stream debug: free chunk LIST
[00000400] avi stream debug: free chunk strh
[00000400] avi stream debug: free chunk strf
[00000400] avi stream debug: free chunk JUNK
[00000400] avi stream debug: free chunk LIST
[00000400] avi stream debug: free chunk JUNK
[00000400] avi stream debug: free chunk LIST
[00000400] avi stream debug: free chunk ISFT
[00000400] avi stream debug: free chunk LIST
[00000400] avi stream debug: free chunk JUNK
[00000400] avi stream debug: free chunk LIST
[00000400] avi stream debug: free chunk idx1
[00000400] avi stream debug: free chunk RIFF
[00000400] avi stream debug: free chunk LIST
[00000401] main demux debug: removing module "avi"
[00000398] main access debug: removing module "access_file"
[00000403] avcodec decoder debug: ffmpeg codec (MS MPEG-4 Video v2) stopped
[00000403] main decoder debug: removing module "avcodec"
[00000403] main decoder debug: thread ended
[00000403] main decoder debug: thread times: real 0m46.294000s, kernel 0m0.000000s, user 0m0.124800s
[00000403] main decoder debug: thread 8284 joined (input/decoder.c:248)
[00000403] main decoder debug: killing decoder fourcc `MP42', 1 PES in FIFO
[00000443] main chroma debug: removing module "i420_yuy2_sse2"
[00000437] direct3d video output debug: Direct3D scene released successfully
[00000437] direct3d video output debug: 1 Direct3D pictures released.
[00000437] main video output debug: thread ended
[00000437] main video output debug: thread times: real 0m46.269000s, kernel 0m0.327602s, user 0m0.561603s
[00000437] main video output debug: thread 8436 joined (video_output/video_output.c:536)
[00000440] direct3d generic debug: DirectXEventThread terminating
[00000437] direct3d video output debug: DirectXCloseWindow
[00000437] direct3d video output debug: WinProc WM_DESTROY
[00000440] main generic debug: thread ended
[00000440] main generic debug: thread times: real 0m46.291000s, kernel 0m0.000000s, user 0m0.000000s
[00000440] main generic debug: thread 1852 joined (direct3d.c:292)
[00000437] main video output debug: removing module "direct3d"
[00000453] main blend debug: removing module "blend"
[00000480] main generic debug: thread times: real 0m0.003000s, kernel 0m0.000000s, user 0m0.000000s
[00000480] main generic debug: thread 8720 joined (freetype.c:511)
[00000454] main spu text debug: removing module "freetype"
[00000436] main decoder debug: thread times: real 0m46.288000s, kernel 0m0.031200s, user 0m0.062400s
[00000436] main decoder debug: thread 8296 joined (input/decoder.c:248)
[00000436] main decoder debug: killing decoder fourcc `mpga', 1 PES in FIFO
[00000482] main audio output debug: removing module "mpgatofixed32"
[00000483] main audio output debug: removing module "bandlimited_resampler"
[00000441] aout_directx audio output debug: closing audio device
[00000445] aout_directx generic debug: DirectSoundThread exiting
[00000445] main generic debug: thread ended
[00000445] main generic debug: thread times: real 0m46.261000s, kernel 0m0.000000s, user 0m0.000000s
[00000445] main generic debug: thread 8548 joined (directx.c:664)
[00000441] main audio output debug: removing module "aout_directx"
[00000446] main audio output debug: removing module "converter_float"
[00000441] main audio output debug: removing module "float32_mixer"
[00000395] main input debug: thread ended
[00000395] main input debug: thread times: real 0m46.498000s, kernel 0m0.031200s, user 0m0.795605s
[00000395] main input debug: thread 8188 joined (control/media_player.c:100)
[00000395] main input debug: TIMER input launching for 'test.avi' : 100.000 ms - Total 100.000 ms / 1 intvls (Avg 100.000 ms)

[ RESTARTING THE WINDOW / JVLC ]

[00000485] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000485] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena
[00000485] main libvlc debug: translation test: code is "C"
[00000485] main libvlc debug: opening config file (C:\Users\beka\AppData\Roaming\vlc\vlcrc)
[00000485] main libvlc debug: module bank initialized, found 262 modules
[00000485] main libvlc debug: opening config file (C:\Users\beka\AppData\Roaming\vlc\vlcrc)
[00000485] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000485] main libvlc debug: looking for memcpy module: 3 candidates
[00000485] main libvlc debug: using memcpy module "memcpymmxext"
[00000486] main interaction debug: thread 3348 (Interaction control) created at priority 0 (interface/interaction.c:382)
[00000486] main interaction debug: thread started
[00000488] main input debug: Creating an input for 'Media Library'
[00000488] main input debug: Input is a meta file: disabling unneeded options
[00000488] main input debug: `file/xspf-open://C:\Users\beka\AppData\Roaming\vlc\ml.xspf' gives access `file' demux `xspf-open' path `C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000488] main input debug: creating access 'file' path='C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000489] main access debug: looking for access module: 2 candidates
[00000489] access_file access debug: opening file `C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000489] main access debug: using access module "access_file"
[00000489] main access debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000490] main stream debug: Using AStream*Stream
[00000490] main stream debug: pre-buffering...
[00000490] main stream debug: received first data for our buffer
[00000488] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\beka\AppData\Roaming\vlc\ml.xspf'
[00000491] main demux debug: looking for demux module: 1 candidate
[00000491] playlist demux debug: using XSPF playlist reader
[00000491] main demux debug: using demux module "playlist"
[00000491] main demux debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000488] main input debug: `file/xspf-open://C:\Users\beka\AppData\Roaming\vlc\ml.xspf' successfully opened
[00000492] main xml debug: looking for xml module: 2 candidates
[00000492] main xml debug: using xml module "xml"
[00000492] main xml debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000491] playlist demux debug: parsed 0 tracks successfully
[00000492] main xml debug: removing module "xml"
[00000488] main input debug: EOF reached
[00000488] main input debug: control type=1
[00000491] main demux debug: removing module "playlist"
[00000489] main access debug: removing module "access_file"
[00000488] main input debug: TIMER input launching for 'Media Library' : 11.000 ms - Total 11.000 ms / 1 intvls (Avg 11.000 ms)
[00000493] main preparser debug: waiting for thread initialization
[00000493] main preparser debug: thread started
[00000493] main preparser debug: thread 8684 (preparser) created at priority 0 (playlist/thread.c:79)
[00000494] main fetcher debug: waiting for thread initialization
[00000494] main fetcher debug: thread started
[00000494] main fetcher debug: thread 8672 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000487] main playlist debug: waiting for thread initialization
[00000487] main playlist debug: thread started
[00000487] main playlist debug: rebuilding array of current - root Playlist
[00000487] main playlist debug: rebuild done - 0 items, index -1
[00000487] main playlist debug: thread 8656 (playlist) created at priority 0 (playlist/thread.c:117)
[00000495] main interface debug: looking for interface module: 1 candidate
[00000495] main interface debug: using interface module "hotkeys"
[00000495] main interface debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000495] main interface debug: thread 8532 (interface) created at priority 0 (interface/interface.c:168)
[00000495] main interface debug: thread started
*** LibVLC Exception not handled: No active input
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
[00000496] main input debug: Creating an input for 'test.avi'
[00000496] main input debug: waiting for thread initialization
[00000496] main input debug: thread started
[00000496] main input debug: `C:\test.avi' gives access `' demux `' path `C:\test.avi'
[00000496] main input debug: creating demux: access='' demux='' path='C:\test.avi'
[00000497] main demux debug: looking for access_demux module: 1 candidate
[00000497] main demux debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000496] main input debug: creating access '' path='C:\test.avi'
[00000496] main input debug: thread 8336 (input) created at priority 1 (input/input.c:370)
[00000498] main access debug: looking for access module: 5 candidates
[00000498] vcd access debug: trying .cue file: C:\test.cue
[00000498] vcd access debug: could not find .cue file
[00000498] access_file access debug: opening file `C:\test.avi'
[00000498] main access debug: using access module "access_file"
[00000498] main access debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
[00000499] main stream debug: Using AStream*Stream
[00000499] main stream debug: pre-buffering...
[00000499] main stream debug: received first data for our buffer
[00000499] main stream debug: pre-buffering done 1408981 bytes in 0s - 458499 kbytes/s
[00000496] main input debug: creating demux: access='' demux='' path='C:\test.avi'
[00000500] main demux debug: looking for demux module: 59 candidates
[00000499] avi stream debug: found Chunk fourcc:46464952 (RIFF) size:8107200 pos:0
[00000499] avi stream debug: found LIST chunk: 'AVI '
[00000499] avi stream debug: <list 'AVI '>
[00000499] avi stream debug: found Chunk fourcc:5453494c (LIST) size:8822 pos:12
[00000499] avi stream debug: found LIST chunk: 'hdrl'
[00000499] avi stream debug: <list 'hdrl'>
[00000499] avi stream debug: found Chunk fourcc:68697661 (avih) size:56 pos:24
[00000499] avi stream debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE 320x240
[00000499] avi stream debug: found Chunk fourcc:5453494c (LIST) size:4240 pos:88
[00000499] avi stream debug: found LIST chunk: 'strl'
[00000499] avi stream debug: <list 'strl'>
[00000499] avi stream debug: found Chunk fourcc:68727473 (strh) size:56 pos:100
[00000499] avi stream debug: strh: type:vids handler:0x3234504d samplesize:0 29.97fps
[00000499] avi stream debug: found Chunk fourcc:66727473 (strf) size:40 pos:164
[00000499] avi stream debug: strf: video:MP42 320x240 planes:1 24bpp
[00000499] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:4116 pos:212
[00000499] avi stream debug: </list 'strl'>
[00000499] avi stream debug: found Chunk fourcc:5453494c (LIST) size:4230 pos:4336
[00000499] avi stream debug: found LIST chunk: 'strl'
[00000499] avi stream debug: <list 'strl'>
[00000499] avi stream debug: found Chunk fourcc:68727473 (strh) size:56 pos:4348
[00000499] avi stream debug: strh: type:auds handler:0x00000001 samplesize:0 38.28fps
[00000499] avi stream debug: found Chunk fourcc:66727473 (strf) size:30 pos:4412
[00000499] avi stream debug: strf: audio:0x0055 channels:2 44100Hz 0bits/sample 62kb/s
[00000499] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:4116 pos:4450
[00000499] avi stream debug: </list 'strl'>
[00000499] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:260 pos:8574
[00000499] avi stream debug: </list 'hdrl'>
[00000499] avi stream debug: found Chunk fourcc:5453494c (LIST) size:24 pos:8842
[00000499] avi stream debug: found LIST chunk: 'INFO'
[00000499] avi stream debug: <list 'INFO'>
[00000499] avi stream debug: found Chunk fourcc:54465349 (ISFT) size:12 pos:8854
[00000499] avi stream debug: ISFT: software : Lavf52.25.0
[00000499] avi stream debug: </list 'INFO'>
[00000499] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:1016 pos:8874
[00000499] avi stream debug: found Chunk fourcc:5453494c (LIST) size:7846670 pos:9898
[00000499] avi stream debug: skipping movi chunk
[00000499] avi stream debug: found Chunk fourcc:31786469 (idx1) size:250624 pos:7856576
[00000499] avi stream debug: idx1: index entry:15664
[00000499] avi stream debug: </list 'AVI '>
[00000499] avi stream debug: * LIST-root size:8107208 pos:0
[00000499] avi stream debug: + RIFF-AVI size:8107200 pos:0
[00000499] avi stream debug: | + LIST-hdrl size:8822 pos:12
[00000499] avi stream debug: | | + avih size:56 pos:24
[00000499] avi stream debug: | | + LIST-strl size:4240 pos:88
[00000499] avi stream debug: | | | + strh size:56 pos:100
[00000499] avi stream debug: | | | + strf size:40 pos:164
[00000499] avi stream debug: | | | + JUNK size:4116 pos:212
[00000499] avi stream debug: | | + LIST-strl size:4230 pos:4336
[00000499] avi stream debug: | | | + strh size:56 pos:4348
[00000499] avi stream debug: | | | + strf size:30 pos:4412
[00000499] avi stream debug: | | | + JUNK size:4116 pos:4450
[00000499] avi stream debug: | | + JUNK size:260 pos:8574
[00000499] avi stream debug: | + LIST-INFO size:24 pos:8842
[00000499] avi stream debug: | | + ISFT size:12 pos:8854
[00000499] avi stream debug: | + JUNK size:1016 pos:8874
[00000499] avi stream debug: | + LIST-movi size:7846670 pos:9898
[00000499] avi stream debug: | + idx1 size:250624 pos:7856576
[00000500] avi demux debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
[00000500] avi demux debug: stream[0] rate:30000 scale:1001 samplesize:0
[00000500] avi demux debug: stream[0] video(MP42) 320x240 24bpp 29.970030fps
[00000496] main input debug: selecting program id=0
[00000500] avi demux debug: stream[1] rate:1225 scale:32 samplesize:0
[00000500] avi demux debug: stream[1] audio(0x55) 2 channels 44100Hz 0bits
[00000500] avi demux debug: stream[0] created 6880 index entries
[00000500] avi demux debug: stream[1] created 8784 index entries
[00000500] avi demux debug: stream[0] length:229 (based on index)
[00000500] avi demux debug: stream[1] length:229 (based on index)
[00000500] main demux debug: using demux module "avi"
[00000500] main demux debug: TIMER module_Need() : 7.000 ms - Total 7.000 ms / 1 intvls (Avg 7.000 ms)
[00000496] main input debug: looking for a subtitle file in C:\
[00000501] main decoder debug: looking for decoder module: 34 candidates
[00000501] avcodec decoder debug: libavcodec already initialized
[00000501] avcodec decoder debug: using direct rendering
[00000501] avcodec decoder debug: ffmpeg codec (MS MPEG-4 Video v2) started
[00000501] main decoder debug: using decoder module "avcodec"
[00000501] main decoder debug: TIMER module_Need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms)
[00000501] main decoder debug: thread 8668 (decoder) created at priority 0 (input/decoder.c:217)
[00000502] main decoder debug: looking for decoder module: 34 candidates
[00000502] main decoder debug: using decoder module "mpeg_audio"
[00000502] main decoder debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[00000502] main decoder debug: thread 1852 (decoder) created at priority 2 (input/decoder.c:217)
[00000496] main input debug: `C:\test.avi' successfully opened
[00000500] avi demux debug: old:0 < new 0
[00000500] avi demux debug: old:0 < new 0
[00000496] main input debug: control type=1
[00000501] main decoder debug: thread started
[00000502] main decoder debug: thread started
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerPlaying,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerPaused,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerStopped,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerForward,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerBackward,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerEndReached,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about ',04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
*** LibVLC Exception not handled: This object event manager doesn't know about 'libvlc_MediaPlayerTimeChanged,04B762C0,00000000' event observer
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
[00000501] main decoder debug: no usable vout present, spawning one
[00000503] main video output debug: window size: 320x240
[00000503] main video output debug: looking for video output module: 6 candidates
[00000503] direct3d video output debug: creating Vout EventThread
[00000505] main generic debug: waiting for thread initialization
[00000505] main generic debug: thread started
[00000503] direct3d video output debug: DirectXCreateWindow
[00000503] direct3d video output debug: created video sub-window
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x776059c3, pid=2140, tid=4980
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x659c3]
#
# An error report file with more information is saved as hs_err_pid2140.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

MondayMassacre
New Cone
New Cone
Posts: 3
Joined: 13 Feb 2009 08:56

Re: JVLC crashes JVM

Postby MondayMassacre » 16 Feb 2009 10:51

I got some more information.
Appearently, there is something wrong with the finalizer of the JVLC-bridge.
To let the user control the player, I built my own control panel which instantiates a new MediaPlayer every time, the user hits play, so the old instance is lost and should be finalized and garbage collected some time. This is the stack trace of the virtual machine, when the jvlc crashes it, after stopping, skipping and restarting several times:

Code: Select all

# # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77845a20, pid=5868, tid=4680 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing) # Problematic frame: # C [ntdll.dll+0x65a20] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x02043000): JavaThread "Finalizer" daemon [_thread_in_native, id=4680] siginfo: ExceptionCode=0xc0000005, writing address 0x00000000 Registers: EAX=0x00000000, EBX=0x46f30001, ECX=0x000000b5, EDX=0x00000000 ESP=0x0440f054, EBP=0x0440f088, ESI=0x05a1560d, EDI=0x46f30000 EIP=0x77845a20, EFLAGS=0x00010202 Top of Stack: (sp=0x0440f054) 0x0440f054: 00000000 00900000 05a237a0 05a23728 0x0440f064: 05970910 00000000 00000000 0440f77c 0x0440f074: 777e9834 00bcb9d9 00000000 00000001 0x0440f084: 05a23798 0440f09c 77845883 05a237a0 0x0440f094: 06a7c0c8 06a7c0c8 0440f0b0 7767c56f 0x0440f0a4: 00900000 00000000 05a23798 0440f0fc 0x0440f0b4: 763b9d6b 00900000 00000000 05a237a0 0x0440f0c4: 7fdc4bfd 06a7c0c8 05a23728 06a7c0c8 Instructions: (pc=0x77845a20) 0x77845a10: c1 ea 10 0b df 0b c8 8b 06 c7 45 f8 01 00 00 00 0x77845a20: 89 30 8b 45 e0 8b 55 e4 8d 7e 08 f0 0f c7 0f 3b Stack: [0x043c0000,0x04410000), sp=0x0440f054, free space=316k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x65a20] C [ntdll.dll+0x65883] C [kernel32.dll+0x4c56f] C [msvcrt.dll+0x9d6b] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+44 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344 j com.sun.jna.Native$2.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21 j $Proxy0.libvlc_event_detach(Lorg/videolan/jvlc/internal/LibVlc$LibVlcEventManager;ILorg/videolan/jvlc/internal/LibVlc$LibVlcCallback;Lcom/sun/jna/Pointer;Lorg/videolan/jvlc/internal/LibVlc$libvlc_exception_t;)V+37 j org.videolan.jvlc.MediaPlayer.finalize()V+89 v ~StubRoutines::call_stub j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0 j java.lang.ref.Finalizer.runFinalizer()V+45 j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1 j java.lang.ref.Finalizer$FinalizerThread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x05103400 JavaThread "TimerQueue" daemon [_thread_blocked, id=5500] 0x02011000 JavaThread "DestroyJavaVM" [_thread_blocked, id=3580] 0x05054800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=4184] 0x05048c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5488] 0x05048800 JavaThread "AWT-Shutdown" [_thread_blocked, id=3608] 0x05047c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=160] 0x0205fc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5932] 0x0204b800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4412] 0x0204b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3080] 0x02048800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5504] =>0x02043000 JavaThread "Finalizer" daemon [_thread_in_native, id=4680] 0x02037000 JavaThread "Reference Handler" daemon [_thread_blocked, id=6072] Other Threads: 0x02035c00 VMThread [id=1432] 0x0206ac00 WatcherThread [id=6036] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 9088K, used 431K [0x071a0000, 0x07b70000, 0x09900000) eden space 8128K, 3% used [0x071a0000, 0x071e7828, 0x07990000) from space 960K, 15% used [0x07990000, 0x079b4610, 0x07a80000) to space 960K, 0% used [0x07a80000, 0x07a80000, 0x07b70000) tenured generation total 121024K, used 3214K [0x09900000, 0x10f30000, 0x271a0000) the space 121024K, 2% used [0x09900000, 0x09c23b88, 0x09c23c00, 0x10f30000) compacting perm gen total 12288K, used 1470K [0x271a0000, 0x27da0000, 0x2b1a0000) the space 12288K, 11% used [0x271a0000, 0x2730fa98, 0x2730fc00, 0x27da0000) ro space 8192K, 66% used [0x2b1a0000, 0x2b6ef860, 0x2b6efa00, 0x2b9a0000) rw space 12288K, 52% used [0x2b9a0000, 0x2bfef078, 0x2bfef200, 0x2c5a0000) Dynamic libraries: 0x00400000 - 0x00423000 C:\Program Files\Java\jdk1.6.0_03\bin\javaw.exe 0x777e0000 - 0x77907000 C:\Windows\system32\ntdll.dll 0x77630000 - 0x7770b000 C:\Windows\system32\kernel32.dll 0x77220000 - 0x772e6000 C:\Windows\system32\ADVAPI32.dll 0x77920000 - 0x779e2000 C:\Windows\system32\RPCRT4.dll 0x76190000 - 0x7622d000 C:\Windows\system32\USER32.dll 0x77710000 - 0x7775b000 C:\Windows\system32\GDI32.dll 0x760e0000 - 0x760fe000 C:\Windows\system32\IMM32.DLL 0x77150000 - 0x77218000 C:\Windows\system32\MSCTF.dll 0x763b0000 - 0x7645a000 C:\Windows\system32\msvcrt.dll 0x76230000 - 0x76239000 C:\Windows\system32\LPK.DLL 0x76060000 - 0x760dd000 C:\Windows\system32\USP10.dll 0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll 0x6d870000 - 0x6daba000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll 0x74660000 - 0x74692000 C:\Windows\system32\WINMM.dll 0x77000000 - 0x77144000 C:\Windows\system32\ole32.dll 0x76320000 - 0x763ad000 C:\Windows\system32\OLEAUT32.dll 0x74620000 - 0x74659000 C:\Windows\system32\OLEACC.dll 0x75e90000 - 0x75ebc000 C:\Windows\system32\apphelp.dll 0x6d3c0000 - 0x6d3c8000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll 0x75fc0000 - 0x75fc7000 C:\Windows\system32\PSAPI.DLL 0x6d820000 - 0x6d82c000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll 0x6d460000 - 0x6d47f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll 0x6d860000 - 0x6d86f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll 0x6d0b0000 - 0x6d273000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\awt.dll 0x72cd0000 - 0x72d12000 C:\Windows\system32\WINSPOOL.DRV 0x750b0000 - 0x750ef000 C:\Windows\system32\uxtheme.dll 0x6d360000 - 0x6d3b3000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\fontmanager.dll 0x764f0000 - 0x77000000 C:\Windows\system32\shell32.dll 0x76460000 - 0x764b8000 C:\Windows\system32\SHLWAPI.dll 0x74db0000 - 0x74f4e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll 0x6a540000 - 0x6a73a000 C:\Program Files\VideoLAN\VLC\libvlccore.dll 0x77760000 - 0x7778d000 C:\Windows\system32\WS2_32.DLL 0x77910000 - 0x77916000 C:\Windows\system32\NSI.dll 0x6a300000 - 0x6a31e000 C:\Program Files\VideoLAN\VLC\libvlc.dll 0x01990000 - 0x019a9000 C:\Users\beka\AppData\Local\Temp\jna4613.tmp 0x64fc0000 - 0x64fec000 C:\Program Files\VideoLAN\VLC\plugins\libdshow_plugin.dll 0x62cc0000 - 0x62f17000 C:\Program Files\VideoLAN\VLC\plugins\libskins2_plugin.dll 0x6b540000 - 0x6b54f000 C:\Program Files\VideoLAN\VLC\plugins\libvout_directx_plugin.dll 0x6e980000 - 0x6e98b000 C:\Program Files\VideoLAN\VLC\plugins\libwaveout_plugin.dll 0x63880000 - 0x63889000 C:\Program Files\VideoLAN\VLC\plugins\libmemcpymmxext_plugin.dll 0x69a00000 - 0x69a09000 C:\Program Files\VideoLAN\VLC\plugins\libaccess_directory_plugin.dll 0x67c40000 - 0x67c48000 C:\Program Files\VideoLAN\VLC\plugins\libaccess_file_plugin.dll 0x70240000 - 0x7025a000 C:\Program Files\VideoLAN\VLC\plugins\libplaylist_plugin.dll 0x625c0000 - 0x626e5000 C:\Program Files\VideoLAN\VLC\plugins\libxml_plugin.dll 0x6ff40000 - 0x6ff4b000 C:\Program Files\VideoLAN\VLC\plugins\libhotkeys_plugin.dll 0x6d2a0000 - 0x6d2cf000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\cmm.dll 0x6d500000 - 0x6d524000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\jpeg.dll 0x6d620000 - 0x6d633000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\net.dll 0x756a0000 - 0x756db000 C:\Windows\system32\mswsock.dll 0x75710000 - 0x75715000 C:\Windows\System32\wship6.dll 0x6d640000 - 0x6d649000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\nio.dll 0x6d490000 - 0x6d496000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\jawt.dll 0x6f440000 - 0x6f47a000 C:\Program Files\VideoLAN\VLC\plugins\libdvdnav_plugin.dll 0x68c00000 - 0x68c0c000 C:\Program Files\VideoLAN\VLC\plugins\libvcd_plugin.dll 0x6e040000 - 0x6e056000 C:\Program Files\VideoLAN\VLC\plugins\libavi_plugin.dll 0x66ec0000 - 0x66ec9000 C:\Program Files\VideoLAN\VLC\plugins\libcdg_plugin.dll 0x61d00000 - 0x61d09000 C:\Program Files\VideoLAN\VLC\plugins\libfake_plugin.dll 0x683c0000 - 0x683f7000 C:\Program Files\VideoLAN\VLC\plugins\libpng_plugin.dll 0x6adc0000 - 0x6ae73000 C:\Program Files\VideoLAN\VLC\plugins\libschroedinger_plugin.dll 0x66740000 - 0x66765000 C:\Program Files\VideoLAN\VLC\plugins\liblibmpeg2_plugin.dll 0x65480000 - 0x65489000 C:\Program Files\VideoLAN\VLC\plugins\liba52_plugin.dll 0x67940000 - 0x6794b000 C:\Program Files\VideoLAN\VLC\plugins\libaraw_plugin.dll 0x69580000 - 0x69589000 C:\Program Files\VideoLAN\VLC\plugins\libdts_plugin.dll 0x6bd80000 - 0x6bdd0000 C:\Program Files\VideoLAN\VLC\plugins\libfaad_plugin.dll 0x62780000 - 0x627c2000 C:\Program Files\VideoLAN\VLC\plugins\libflac_plugin.dll 0x6aec0000 - 0x6b178000 C:\Program Files\VideoLAN\VLC\plugins\liblibass_plugin.dll 0x6bb00000 - 0x6bb08000 C:\Program Files\VideoLAN\VLC\plugins\liblpcm_plugin.dll 0x6f500000 - 0x6f509000 C:\Program Files\VideoLAN\VLC\plugins\libmpeg_audio_plugin.dll 0x63e40000 - 0x63e5c000 C:\Program Files\VideoLAN\VLC\plugins\libspeex_plugin.dll 0x65880000 - 0x658cb000 C:\Program Files\VideoLAN\VLC\plugins\libtheora_plugin.dll 0x6cbc0000 - 0x6cce2000 C:\Program Files\VideoLAN\VLC\plugins\libvorbis_plugin.dll 0x2cda0000 - 0x2d500000 C:\Program Files\VideoLAN\VLC\plugins\libavcodec_plugin.dll 0x6d780000 - 0x6d78d000 C:\Program Files\VideoLAN\VLC\plugins\libdirect3d_plugin.dll 0x73bb0000 - 0x73c63000 C:\Windows\system32\WindowsCodecs.dll 0x6b240000 - 0x6b24a000 C:\Program Files\VideoLAN\VLC\plugins\libaout_directx_plugin.dll 0x6f730000 - 0x6f7a0000 C:\Windows\system32\DSOUND.DLL 0x75360000 - 0x7537a000 C:\Windows\system32\POWRPROF.dll 0x76100000 - 0x76184000 C:\Windows\system32\CLBCatQ.DLL 0x75030000 - 0x75057000 C:\Windows\System32\MMDevApi.dll 0x77420000 - 0x775aa000 C:\Windows\system32\SETUPAPI.dll 0x751b0000 - 0x751dd000 C:\Windows\system32\WINTRUST.dll 0x759c0000 - 0x75ab1000 C:\Windows\system32\CRYPT32.dll 0x75b20000 - 0x75b32000 C:\Windows\system32\MSASN1.dll 0x75f10000 - 0x75f2e000 C:\Windows\system32\USERENV.dll 0x75ef0000 - 0x75f04000 C:\Windows\system32\Secur32.dll 0x764c0000 - 0x764e9000 C:\Windows\system32\imagehlp.dll 0x69d00000 - 0x69d0c000 C:\Program Files\VideoLAN\VLC\plugins\libi420_yuy2_sse2_plugin.dll 0x73fc0000 - 0x73fe1000 C:\Windows\system32\AUDIOSES.DLL 0x73eb0000 - 0x73f16000 C:\Windows\system32\audioeng.dll 0x75280000 - 0x75287000 C:\Windows\system32\AVRT.dll 0x070e0000 - 0x070ef000 C:\Program Files\VideoLAN\VLC\plugins\liba52tofloat32_plugin.dll 0x2ded0000 - 0x2defa000 C:\Program Files\VideoLAN\VLC\plugins\libdtstofloat32_plugin.dll 0x6f080000 - 0x6f0a0000 C:\Program Files\VideoLAN\VLC\plugins\libmpgatofixed32_plugin.dll 0x6c300000 - 0x6c30c000 C:\Program Files\VideoLAN\VLC\plugins\libbandlimited_resampler_plugin.dll 0x6b900000 - 0x6b908000 C:\Program Files\VideoLAN\VLC\plugins\libconverter_fixed_plugin.dll 0x69940000 - 0x69948000 C:\Program Files\VideoLAN\VLC\plugins\liba52tospdif_plugin.dll 0x62800000 - 0x6280b000 C:\Program Files\VideoLAN\VLC\plugins\libconverter_float_plugin.dll 0x6c500000 - 0x6c508000 C:\Program Files\VideoLAN\VLC\plugins\libdtstospdif_plugin.dll 0x6e080000 - 0x6e089000 C:\Program Files\VideoLAN\VLC\plugins\libsimple_channel_mixer_plugin.dll 0x648c0000 - 0x648ca000 C:\Program Files\VideoLAN\VLC\plugins\libdolby_surround_decoder_plugin.dll 0x71040000 - 0x71049000 C:\Program Files\VideoLAN\VLC\plugins\liblinear_resampler_plugin.dll 0x6b300000 - 0x6b308000 C:\Program Files\VideoLAN\VLC\plugins\libugly_resampler_plugin.dll 0x6f8c0000 - 0x6f8c8000 C:\Program Files\VideoLAN\VLC\plugins\libfloat32_mixer_plugin.dll 0x307e0000 - 0x30aa0000 C:\Program Files\VideoLAN\VLC\plugins\libfreetype_plugin.dll 0x65e40000 - 0x65e4f000 C:\Program Files\VideoLAN\VLC\plugins\libblend_plugin.dll 0x2f2a0000 - 0x2f2c8000 C:\Program Files\Trillian\events.dll 0x73990000 - 0x73a15000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6001.18000_none_886786f450a74a05\COMCTL32.dll 0x775b0000 - 0x77623000 C:\Windows\system32\comdlg32.dll 0x707c0000 - 0x7097a000 C:\Windows\system32\D3D9.DLL 0x75730000 - 0x75738000 C:\Windows\system32\VERSION.dll 0x714f0000 - 0x714f6000 C:\Windows\system32\d3d8thk.dll 0x72e00000 - 0x72e0c000 C:\Windows\system32\dwmapi.dll 0x2da30000 - 0x2dd65000 C:\Windows\system32\igdumd32.dll VM Arguments: jvm_args: -Ddle.home=C:\Projekte\DLE -Xms128M -Xmx512M -Xbootclasspath:C:\Program Files\Java\jdk1.6.0_03\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_03\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_03\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_03\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_03\jre\lib\charsets.jar java_command: at.test.testinnng Launcher Type: SUN_STANDARD Environment Variables: CLASSPATH=.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib; PATH=C:\Program Files\Java\jre6\bin\client;C:\Program Files\Java\jre6\bin;C:\Program Files\JavaFX\javafx-sdk1.0\bin;C:\Program Files\JavaFX\javafx-sdk1.0\emulator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\JProbe 8.0.1\bin USERNAME=beka OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 10, GenuineIntel --------------- S Y S T E M --------------- OS: Windows Vista Build 6001 Service Pack 1 CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3 Memory: 4k page, physical 2097151k(972840k free), swap 4194303k(3816260k free) vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
The behavior is 100% reproducable, however, the program fails sometimes sooner, sometimes later.

MondayMassacre
New Cone
New Cone
Posts: 3
Joined: 13 Feb 2009 08:56

Re: JVLC crashes JVM

Postby MondayMassacre » 16 Feb 2009 11:08

Once again some more:

The stack traces are always pretty similar. The last java frames (trace) are always the following:

Code: Select all

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+44 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344 j com.sun.jna.Native$2.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21
The native and java frames are always the same, depending on what fails.

MediaPlayer.finalize()

Code: Select all

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+44 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344 j com.sun.jna.Native$2.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21
VLM.release() (of course, the jna*.tmp-filenames differ, but the adresses are the same)

Code: Select all

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x43387] C [ntdll.dll+0x4323c] C [libvlccore.dll+0x7e249] C [jna42428.tmp+0x8f49] C [jna42428.tmp+0x2131] C [jna42428.tmp+0x288c] j com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+44 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344 j com.sun.jna.Native$2.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21 j $Proxy0.libvlc_vlm_release(Lorg/videolan/jvlc/internal/LibVlc$LibVlcInstance;Lorg/videolan/jvlc/internal/LibVlc$libvlc_exception_t;)V+20 j org.videolan.jvlc.VLM.release()V+36 j org.videolan.jvlc.JVLC.getVLM()Lorg/videolan/jvlc/VLM;+11 j at.test.DLEVideoPanel.start()V+48 j at.test.testinnng.main([Ljava/lang/String;)V+54 v ~StubRoutines::call_stub Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+44 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344 j com.sun.jna.Native$2.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21 j $Proxy0.libvlc_vlm_release(Lorg/videolan/jvlc/internal/LibVlc$LibVlcInstance;Lorg/videolan/jvlc/internal/LibVlc$libvlc_exception_t;)V+20 j org.videolan.jvlc.VLM.release()V+36 j org.videolan.jvlc.JVLC.getVLM()Lorg/videolan/jvlc/VLM;+11 j at.test.DLEVideoPanel.start()V+48 j at.test.testinnng.main([Ljava/lang/String;)V+54 v ~StubRoutines::call_stub
MediaDescriptor.relase()

Code: Select all

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x659c3] C [ntdll.dll+0x65883] C [kernel32.dll+0x4c56f] C [msvcrt.dll+0x9d6b] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+44 j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344 j com.sun.jna.Native$2.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21 j $Proxy0.libvlc_media_release(Lorg/videolan/jvlc/internal/LibVlc$LibVlcMediaDescriptor;)V+16 j org.videolan.jvlc.MediaDescriptor.release()V+21 j org.videolan.jvlc.MediaDescriptor.finalize()V+1 v ~StubRoutines::call_stub j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0 j java.lang.ref.Finalizer.runFinalizer()V+45 j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1 j java.lang.ref.Finalizer$FinalizerThread.run()V+11 v ~StubRoutines::call_stub
By the way, I'm using version: 0.9.0-test3 date: 2008-07-27 of JVLC. I noticed, that there is no javadoc for that version and the last source code I found available for downloading or browsing is of version 0.0.8.
This sounds pretty outdated. Is this project even still active? Is there any support to expect?

godotvt
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2009 17:19

Re: JVLC crashes JVM

Postby godotvt » 04 Mar 2009 12:40

I have the same problem if i istance JVCL without arg like this

Code: Select all

JVLC jvlc = new JVLC()
The jvm crash

if i use this code

Code: Select all

String vlcPluginFolder="C:\\Programmi\\VideoLAN\\VLC\\plugins"; JVLC jvlc = new JVLC(new String[] {"vlc","--plugin-path=" + vlcPluginFolder }); MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc, "c:/virgola_Il_Gattino.mp3"); mediaDescriptor.getMediaPlayer().play();

The jvm don't crash but open a windows that tell me vlc-help.txt is create!Like i wrong the command line

Someboy can help me?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 49 guests