Page 1 of 1

libVLC crashes on iOS 6

Posted: 21 Sep 2012 11:47
by stani
Hi,

I upgraded to iOS 6 yesteday. Due to bug (I don't know if its in the OS or in libVLC) the MobileVLC app constantly crashes after closing the movie view to return to the library view.
The crash appears while calling

Code: Select all

release_input_thread( p_mi, true );
in

Code: Select all

libvlc_media_player_stop();
Here is the log:

Code: Select all

[0x1692f18] main input debug: control type=0 [0x1692f18] main input debug: control: stopping input [0x1954c98] main decoder warning: can't get output picture [0x1954c98] avcodec decoder warning: disabling direct rendering [0x1954c98] main decoder warning: can't get output picture [0x1954c98] main decoder debug: removing module "avcodec" [0x1954c98] avcodec decoder debug: ffmpeg codec (MS MPEG-4 Video v2) stopped [0x1954c98] main decoder debug: killing decoder fourcc `DIV2', 10 PES in FIFO [0x1691f68] main generic debug: saving a free vout [0x1691f68] main generic debug: reusing provided vout [0x195ac98] main decoder debug: removing module "mpeg_audio" [0x195ac98] main decoder debug: killing decoder fourcc `mpga', 0 PES in FIFO LibVLC fatal error destroying condition (16) in thread 44068864 at /Volumes/Data/VLC/MobileVLC/ImportedSources/vlc/src/posix/thread.c:375 in vlc_cond_destroy 0 VLC 0x00645f27 vlc_trace + 781 VLC 0x0064610b vlc_thread_fatal + 1222 VLC 0x006463b3 vlc_cond_destroy + 823 VLC 0x0063026f block_FifoRelease + 304 VLC 0x005ef3a1 DeleteDecoder + 965 VLC 0x005ef155 input_DecoderDelete + 2126 VLC 0x005f6c97 EsDestroyDecoder + 387 VLC 0x005f66b9 EsUnselect + 3528 VLC 0x005f5279 EsOutControlLocked + 7449 VLC 0x005f4a9d EsOutControl + 3610 VLC 0x005fc60b es_out_vaControl + 3411 VLC 0x005fb35f es_out_Control + 3812 VLC 0x005fb1cb CmdExecuteControl + 14213 VLC 0x005faa43 ControlLocked + 25014 VLC 0x005fa787 Control + 4215 VLC 0x005ff9bf es_out_vaControl + 3416 VLC 0x005ff98f es_out_Control + 3817 VLC 0x005ff7bb es_out_SetMode + 2218 VLC 0x005fedeb End + 4219 VLC 0x005ff1c5 Run + 56 (lldb)
Does anybody know how to fix this?

Re: libVLC crashes on iOS 6

Posted: 21 Sep 2012 14:08
by fkuehne
This is a bug in the iOS 6 runtime. There is no way for you to fix it.

Re: libVLC crashes on iOS 6

Posted: 21 Sep 2012 17:25
by stani
Thanks four your quick answer. Did you already file a radar? Or can you explain that Bug so I can file a radar?

Re: libVLC crashes on iOS 6

Posted: 22 Sep 2012 14:13
by fkuehne
This is a pthread issue in the current Darwin releases which also affects OS X Mountain Lion. We are escalating this matter through DTS at the moment.

Re: libVLC crashes on iOS 6

Posted: 28 Sep 2012 05:28
by kobby
Hi

I have the same issue for this.
In IOS 6, libVLC will crash in pthread. "vlc_cond_destroy" or "vlc_mutex_unlock" in pthread.c.
Do you have patch for this?
So I can build the lib for myself.

I find in "http://www.videolan.org/", but I can't find the update for this issue.
This is the first time for me to come here, if anything is not allowed, please let me know.

Thanks for your great help!!!

Re: libVLC crashes on iOS 6

Posted: 28 Sep 2012 10:26
by fkuehne
No, I don't have a patch for this.

Re: libVLC crashes on iOS 6

Posted: 28 Sep 2012 10:50
by kobby
Hi

Can I modify the source code of IOS to fix it?
If yes, how can I do it by myself?
Can you tell me some hint for it?
Thanks a lot!!!

Re: libVLC crashes on iOS 6

Posted: 28 Sep 2012 11:02
by fkuehne
iOS is a closed source operating system with an open source core. So, in theory, it's editable. However, I have not heard of any successful reports.

Re: libVLC crashes on iOS 6

Posted: 28 Sep 2012 11:12
by kobby
Hi

Sorry, I mean "VLC-iOS-1.1.0-sources".
Can you tell me some hint for this issue and I can modify it by myself?
Or where can I find the solution?
I find in web, it has libVLC 2.0.4 in nightly build.
Is there solution in it?
Thanks a lot!!!

Re: libVLC crashes on iOS 6

Posted: 28 Sep 2012 11:17
by fkuehne
No, if I had a patch for this, I'd be glad. Since I don't, I can't provide guidance how to fix it since if I had an idea about it, I'd fix it myself in the first place. As said earlier, this is a bug in the OS and should and will be fixed by Apple sooner or later.

Re: libVLC crashes on iOS 6

Posted: 18 Oct 2012 09:12
by Ivann
I have the same problems with libVLC(VLC-iOS-1.1.0-sources).
In IOS 6, libVLC works very unstable and often crashes.

As I know, there are many projects based on this libVLC for IOS and they updated their builds for IOS 6 and now work well.

Does anyone have any solution to this problem?
It is very important for me, I can pay money for a solution.

Re: libVLC crashes on iOS 6

Posted: 18 Oct 2012 10:29
by fkuehne
These projects mostly violate VLC's license by not releasing the source code and hence don't contribute their changes back. According to VLC's license, its your right (if you are a customer of the other apps) to ask for the source code and check for their modifications to make it work.

Re: libVLC crashes on iOS 6

Posted: 30 Oct 2012 10:02
by amds123
I have the same issue for this.How can fix this problem ? thank very much!

Re: libVLC crashes on iOS 6

Posted: 20 Nov 2012 09:27
by dongyafeiying
I have a suggest,do not use the pause method,only use the stop method.

Re: libVLC crashes on iOS 6

Posted: 30 Dec 2012 11:33
by PATT
This is caused by VLC_THREAD_ASSERT ("destroying condition"); in /vlc/src/misc/pthread.c:302 . I guess this ASSERT is only for debugging, so I can comment it first and wait until this bug fixed by Apple in the coming newer iOS version....(correct me if I am wrong)

in /vlc/src/misc/pthread.c:302...
//VLC_THREAD_ASSERT ("destroying condition");

I have tested in iOS5.1 and iOS6.0, there is no crashes now..

Re: libVLC crashes on iOS 6

Posted: 24 Jan 2013 03:31
by GordonMing
I have the same problems.What can I do to fix this ?

Re: libVLC crashes on iOS 6

Posted: 28 Jan 2013 18:51
by fkuehne
Follow the guidance provided by PATT.