Page 1 of 1

problem using jvlc on linux

Posted: 23 Mar 2010 15:15
by bentium
hi,


i have made a program that uses JVLC to play an rtsp stream inside my java program.

The streaming works brilliantly on windows. start/stop/... all stable
now, on any linux i try, streaming starts and stops, but when i open a new JFrame (like a filechooser) & dispose that frame, VLC tears my entire jvm down with following error:

Code: Select all

x11 video output error: X11 request 20.0 failed with error code 3: BadWindow (invalid Window parameter) X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 20 (X_GetProperty) Resource id in failed request: 0x34000ce Serial number of failed request: 32568 Current serial number in output stream: 32568
i already searched this forum many times
viewtopic.php?f=13&t=55309
viewtopic.php?f=13&t=44999
viewtopic.php?f=13&t=56904

i've tried many VLC versions in my jvlc application (going from 0.9.3 to 1.0.3) and i keep getting the same problem

what is happening here?

Re: problem using jvlc on linux

Posted: 26 Mar 2010 23:02
by RĂ©mi Denis-Courmont
Xlib is not happy that you destroyed an actively used window. Either you update to VLC 1.1 which does not use Xlib anymore, or you stop VLC before you dispose the window.