libVLC crashes on iOS 6

macOS specific usage questions
stani
New Cone
New Cone
Posts: 3
Joined: 21 Sep 2012 11:37

libVLC crashes on iOS 6

Postby stani » 21 Sep 2012 11:47

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?

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 21 Sep 2012 14:08

This is a bug in the iOS 6 runtime. There is no way for you to fix it.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

stani
New Cone
New Cone
Posts: 3
Joined: 21 Sep 2012 11:37

Re: libVLC crashes on iOS 6

Postby stani » 21 Sep 2012 17:25

Thanks four your quick answer. Did you already file a radar? Or can you explain that Bug so I can file a radar?

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 22 Sep 2012 14:13

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

kobby
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2012 04:57

Re: libVLC crashes on iOS 6

Postby kobby » 28 Sep 2012 05:28

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!!!

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 28 Sep 2012 10:26

No, I don't have a patch for this.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

kobby
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2012 04:57

Re: libVLC crashes on iOS 6

Postby kobby » 28 Sep 2012 10:50

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!!!

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 28 Sep 2012 11:02

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

kobby
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2012 04:57

Re: libVLC crashes on iOS 6

Postby kobby » 28 Sep 2012 11:12

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!!!

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 28 Sep 2012 11:17

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Ivann
New Cone
New Cone
Posts: 1
Joined: 17 Oct 2012 23:49

Re: libVLC crashes on iOS 6

Postby Ivann » 18 Oct 2012 09:12

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.

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 18 Oct 2012 10:29

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

amds123
New Cone
New Cone
Posts: 3
Joined: 30 Oct 2012 09:36

Re: libVLC crashes on iOS 6

Postby amds123 » 30 Oct 2012 10:02

I have the same issue for this.How can fix this problem ? thank very much!

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: libVLC crashes on iOS 6

Postby dongyafeiying » 20 Nov 2012 09:27

I have a suggest,do not use the pause method,only use the stop method.

PATT
New Cone
New Cone
Posts: 5
Joined: 30 Dec 2012 11:19

Re: libVLC crashes on iOS 6

Postby PATT » 30 Dec 2012 11:33

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..

GordonMing
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2013 03:05

Re: libVLC crashes on iOS 6

Postby GordonMing » 24 Jan 2013 03:31

I have the same problems.What can I do to fix this ?

fkuehne
Developer
Developer
Posts: 7260
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libVLC crashes on iOS 6

Postby fkuehne » 28 Jan 2013 18:51

Follow the guidance provided by PATT.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests