Page 1 of 1

Libvlc Crash

Posted: 29 Jul 2017 18:34
by pecana
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

Re: Libvlc Crash

Posted: 29 Jul 2017 20:23
by Rémi Denis-Courmont
You're destroying a media player that's actively used by at least one thread. That's undefined behaviour.

Re: Libvlc Crash

Posted: 31 Jul 2017 17:49
by pecana
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

Re: Libvlc Crash

Posted: 31 Jul 2017 18:15
by Rémi Denis-Courmont
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.