MediaPlayer.stop abnormal behaviour

VLC for Android and Chrome OS specific usage questions
Nikolay
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Sep 2018 15:46

MediaPlayer.stop abnormal behaviour

Postby Nikolay » 10 Mar 2019 14:42

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://'

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: MediaPlayer.stop abnormal behaviour

Postby Jean-Baptiste Kempf » 10 Mar 2019 19:06

Are you releasing all the callbacks correctly?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Nikolay
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Sep 2018 15:46

Re: MediaPlayer.stop abnormal behaviour

Postby Nikolay » 11 Mar 2019 10:34

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.

Dekans
Developer
Developer
Posts: 487
Joined: 12 Dec 2014 14:09
VLC version: master
Operating System: Linux

Re: MediaPlayer.stop abnormal behaviour

Postby Dekans » 12 Mar 2019 17:00

That's more a LibVLC issue.

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

Nikolay
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Sep 2018 15:46

Re: MediaPlayer.stop abnormal behaviour

Postby Nikolay » 12 Mar 2019 17:12

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: MediaPlayer.stop abnormal behaviour

Postby Jean-Baptiste Kempf » 13 Mar 2019 09:52

You should GDB to see what is blocking/crashing.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 8 guests