Libvlc Crash

This forum is about all development around libVLC.
pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Libvlc Crash

Postby pecana » 29 Jul 2017 18:34

Hello I am facing some crash on android using libvlc while releasing the MediaPlayer:

Code: Select all

07-29 15:28:22.342 3619 4720 E VLC-std : LibVLC fatal error destroying mutex (16) in thread 4723 at ../../src/android/thread.c:113 in vlc_mutex_destroy 07-29 15:28:22.342 3619 4720 E VLC-std : Error message: Device or resource busy 07-29 15:28:22.342 3619 4720 E VLC-std : ../../src/android/thread.c:113: vlc_mutex_destroy: assertion "!"destroying mutex"" failed --------- beginning of crash 07-29 15:28:22.342 3619 4723 F libc : ../../src/android/thread.c:113: vlc_mutex_destroy: assertion "!"destroying mutex"" failed .......... 07-29 15:28:22.541 3619 4723 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 4723 (pool-3-thread-3)
What could be ?

Thank you

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Libvlc Crash

Postby Rémi Denis-Courmont » 29 Jul 2017 20:23

You're destroying a media player that's actively used by at least one thread. That's undefined behaviour.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Libvlc Crash

Postby pecana » 31 Jul 2017 17:49

You're destroying a media player that's actively used by at least one thread. That's undefined behaviour.
it is happening after calling stop() on MediaPlayer object and then call release() on it

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Libvlc Crash

Postby Rémi Denis-Courmont » 31 Jul 2017 18:15

I'm not saying the UB is in your code. It could be in your code. It could be in VLC. It could be in the OS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests