Page 1 of 1

MediaPlayer.stop abnormal behaviour

Posted: 10 Mar 2019 14:42
by Nikolay
Sometimes MediaPlayer.stop freezes for ~1.5 secs and all vlc threads are terminated abnormally. I use imem extension. Any idea? Thanks in advance.

Code: Select all

03-10 16:18:04.020 10737 19338 I INJECTOR: [ 491.945] [-656396288] libvlcjni-mediaplayer.c:334 (Java_org_videolan_libvlc_MediaPlayer_nativeStop) MEDIA_PLAYER_STOP 03-10 16:18:04.110 1196 1196 I MiSysSrv: ^[[37m[INFO] Change to Voltage: 105 mv (0x26)^[[m 03-10 16:18:04.362 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:04.362 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:04.362 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:04.362 1234 1234 I sitatvservice: GetHdrStatus: bHdrEnable=0 03-10 16:18:04.778 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:04.778 1234 1234 I sitatvservice: GetHdrStatus: bHdrEnable=0 03-10 16:18:04.778 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:04.778 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.095 4310 4384 D BI_SDK __/null/0/null/Timer-0/bi.com.tcl.bi.net.NetWorkManager$MyTimerTask.run(L:94)3.0.1: Timer on Time 03-10 16:18:05.098 4310 4384 D BI_SDK __/null/0/null/Timer-0/bi.com.tcl.bi.net.NetWorkManager.sendMessageToVolley(L:107)3.0.1sendMessageToVolley() 03-10 16:18:05.285 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.285 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.285 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.285 1234 1234 I sitatvservice: GetHdrStatus: bHdrEnable=0 03-10 16:18:05.418 1732 2203 E WifiStateMachine: handleMessage: E msg.what=131143 03-10 16:18:05.419 1732 2203 E WifiStateMachine: processMsg: DisconnectedState 03-10 16:18:05.420 1732 2203 E WifiStateMachine: startDelayedScan send -> 9049 milli 10000 03-10 16:18:05.433 1732 2203 E WifiStateMachine: [1 552 223 885 433 ms] noteScanstart no scan source uid -2 03-10 16:18:05.446 1732 2203 E WifiStateMachine: handleMessage: X 03-10 16:18:05.656 10737 16712 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[53,tid=16712,Native,Thread*=0xd2ba7800,peer=0x1348a0a0,"android_audiotrack"] 03-10 16:18:05.667 10737 16527 D VLC : [db1a9430/408f] libvlc decoder: killing decoder fourcc `mp4a' 03-10 16:18:05.668 10737 16527 D VLC : [db1a9430/408f] libvlc decoder: removing module "avcodec" 03-10 16:18:05.680 10737 16527 D VLC : [d8de2b30/408f] libvlc audio resampler: removing module "ugly" 03-10 16:18:05.680 10737 16527 D VLC : [d8de2630/408f] libvlc audio filter: removing module "scaletempo" 03-10 16:18:05.680 10737 16527 D VLC : [d8de28b0/408f] libvlc audio converter: removing module "audio_format" 03-10 16:18:05.680 10737 16717 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[54,tid=16717,Native,Thread*=0xdb0ff800,peer=0x136210a0,"android_audiotrack"] 03-10 16:18:05.687 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.687 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.687 1196 1196 I MiSysSrv: Not support now! 42, change to mm_video!!! 03-10 16:18:05.687 1234 1234 I sitatvservice: GetHdrStatus: bHdrEnable=0 03-10 16:18:05.689 10737 16527 D VLC : [d27ebfb0/408f] libvlc volume: removing module "integer_mixer" 03-10 16:18:05.689 10737 16527 D VLC : [f41a9eb0/408f] libvlc generic: keeping audio output 03-10 16:18:05.689 10737 16527 D VLC : [db1a96b0/408f] libvlc packetizer: removing module "mpeg4audio" 03-10 16:18:05.694 10737 16527 D VLC : [d4803a50/408f] libvlc demux: removing module "ts" 03-10 16:18:05.698 10737 16527 D VLC : [ef0f8030/408f] libvlc input: Program doesn't contain anymore ES 03-10 16:18:05.699 10737 16527 D VLC : [d4aa7870/408f] libvlc stream: removing module "record" 03-10 16:18:05.702 10737 16527 D VLC : [d4aa77b0/408f] libvlc stream: removing module "prefetch" 03-10 16:18:05.704 10737 16527 D VLC : [d4aa76f0/408f] libvlc stream: removing module "imem_access" 03-10 16:18:05.708 10737 16527 I INJECTOR: [ 493.628] [-619029248] libvlcjni-media.c:138 (callback_close) CALLBACK_CLOSE 03-10 16:18:05.722 10737 16527 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[52,tid=16527,Native,Thread*=0xdb0f8400,peer=0x1339f2e0,"VlcObject"] 03-10 16:18:05.730 10737 19338 D VLC : [ef0f8030/4b8a] libvlc input: Destroying the input for 'imem://'

Re: MediaPlayer.stop abnormal behaviour

Posted: 10 Mar 2019 19:06
by Jean-Baptiste Kempf
Are you releasing all the callbacks correctly?

Re: MediaPlayer.stop abnormal behaviour

Posted: 11 Mar 2019 10:34
by Nikolay
Are you releasing all the callbacks correctly?
What do you mean? I return 0 in read callback(EOF). But no read callback was called in this case, it stucks for ~1.5 secs and then close callback was called.

Re: MediaPlayer.stop abnormal behaviour

Posted: 12 Mar 2019 17:00
by Dekans
That's more a LibVLC issue.

What were you playing btw? Local file ? Network one?

Re: MediaPlayer.stop abnormal behaviour

Posted: 12 Mar 2019 17:12
by Nikolay
That's more a LibVLC issue.

What were you playing btw? Local file ? Network one?
In-memory file using imem extension. Extremely convenient way to play anything from some memory buffer.

Re: MediaPlayer.stop abnormal behaviour

Posted: 13 Mar 2019 09:52
by Jean-Baptiste Kempf
You should GDB to see what is blocking/crashing.