Page 1 of 1

crash when starting a video in libvlc

Posted: 21 Jun 2009 10:49
by XilasZ
Since RC4, i'm experiencing a crash somewhere when i start playing a video with libvlc, but it only occur the first time.

If i launch my program right after starting windows, it crashes. if i retry 10seconds later, it always works. But if i wait sometime before retrying, it crashes again.
Since my code didn't changed since RC3, i guess it has something to do with dll loading in RC4. It crash when libvlc is loaded into memory, but as long as libvlc is kept into memory by windows, no crash.

I don't really know how i can help to solve this, do you have any idea ?

Re: crash when starting a video in libvlc

Posted: 21 Jun 2009 14:58
by Jean-Baptiste Kempf
Same for all videos?

Re: crash when starting a video in libvlc

Posted: 21 Jun 2009 23:16
by XilasZ
I think so.

The first time i tried RC4, i was at work in windows 7, inside vmware. I noticed issues on startup when playing an mp4 video (for psp) or a shoutcast tv stream : my program hangs, visual studio reported that the memory may have been corrupted.
But with a shoutcast radio stream worked.

Maybe it's because of vmware, windows 7, RC4, me trying to make it works, or a little bit of everything :p

Now at home (XP Pro), my program works almost the same as it was with 0.9.9, except that sometimes, it crash immediately at startup when trying to play an mpeg2 stream (tv from internet provider).

PS: There is a binding in my program between a menu and libvlc causing video track to be set when starting playing something. Can it cause the crash if libvlc doesn't load fast enough ?

Re: crash when starting a video in libvlc

Posted: 22 Jun 2009 06:51
by XilasZ
It did not crash this morning, i don't understand :?