{"action":"opened","issue":{"url":"https://api.github.com/repos/vanilla-music/vanilla/issues/364","repository_url":"https://api.github.com/repos/vanilla-music/vanilla","labels_url":"https://api.github.com/repos/vanilla-music/vanilla/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/vanilla-music/vanilla/issues/364/comments","events_url":"https://api.github.com/repos/vanilla-music/vanilla/issues/364/events","html_url":"https://github.com/vanilla-music/vanilla/issues/364","id":157107575,"number":364,"title":"Resiliance against decoding errors","user":{"login":"nvgtx","id":10601076,"avatar_url":"https://avatars.githubusercontent.com/u/10601076?v=3","gravatar_id":"","url":"https://api.github.com/users/nvgtx","html_url":"https://github.com/nvgtx","followers_url":"https://api.github.com/users/nvgtx/followers","following_url":"https://api.github.com/users/nvgtx/following{/other_user}","gists_url":"https://api.github.com/users/nvgtx/gists{/gist_id}","starred_url":"https://api.github.com/users/nvgtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvgtx/subscriptions","organizations_url":"https://api.github.com/users/nvgtx/orgs","repos_url":"https://api.github.com/users/nvgtx/repos","events_url":"https://api.github.com/users/nvgtx/events{/privacy}","received_events_url":"https://api.github.com/users/nvgtx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-27T00:35:07Z","updated_at":"2016-05-27T00:35:07Z","closed_at":null,"body":"For certain flac files playback stops reproducible, the only way to recover is to manually select another track.\r\nThe debug log indicates that an decoding error occured in /system/bin/mediaserver, Vanilla Music reacted to this error by stopping playback without any notification.\r\nWhile it looks like the core problem is in the decoder (and should be fixed too), Vanilla Musics reaction to the error is suboptimal. Instead it would be recommended to select the next track and display a notification regarding the error.\r\n\r\nu0_a171   12077 3158  3298560 255372 fg  SyS_epoll_ 0000000000 S     ch.blinkenlights.android.vanilla\r\nmedia     13386 1     232180 54188 fg  binder_thr 0000000000 S     /system/bin/mediaserver\r\n\r\n05-27 00:39:20.157 12077 12077 V MediaPlayer-JNI: getCurrentPosition: 8052 (msec)\r\n05-27 00:39:20.757 13386 15005 E NuPlayerDecoder: err = -1009\r\n05-27 00:39:20.757 13386 15005 E NuPlayerDecoder: Stream error for OMX.SEC.flac.dec (err=-1009), EOS successfully queued\r\n05-27 00:39:20.757 13386 15000 V NuPlayer: decoder audio kWhatError\r\n05-27 00:39:20.757 13386 15000 E NuPlayer: received error(0xfffffc0f) from audio decoder, flushing(0), now shutting down\r\n05-27 00:39:20.757 13386 15004 I NuPlayerRenderer: onPause\r\n05-27 00:39:20.757 13386 15000 V NuPlayer: performDecoderFlush audio=2, video=0\r\n05-27 00:39:20.757 13386 15004 I MediaClock: setPlaybackRate rate : 0.000000\r\n05-27 00:39:20.757 13386 15000 V NuPlayer: [audio] flushDecoder needShutdown=1\r\n05-27 00:39:20.757 13386 15004 V AudioSink: pause\r\n05-27 00:39:20.757 13386 15000 V NuPlayer: msg : 100, ext1 : 1, ext2 : -1009\r\n05-27 00:39:20.757 13386 15000 D NuPlayerDriver: notifyListener_l(0xf118be00), (100, 1, -1009)\r\n05-27 00:39:20.757 13386 15000 V MediaPlayerService: [19] MEDIA_ERROR() ContextAware send information\r\n05-27 00:39:20.757 13386 15000 V MediaPlayerService: [19] notify (0xecf26140, 100, 1, -1009)\r\n05-27 00:39:20.757 12077 12118 V MediaPlayer: message received msg=300, ext1=0, ext2=0\r\n05-27 00:39:20.757 13386 15005 I NuPlayerRenderer: flush audio, notifyComplete 1\r\n05-27 00:39:20.757 13386 15005 D NuPlayerRenderer: signalTimeDiscontinuity() mHasAudio = 1 , mHasVideo = 0\r\n05-27 00:39:20.757 13386 15004 I NuPlayerRenderer: flushing audio\r\n05-27 00:39:20.757 13386 15006 I ACodec  : [OMX.SEC.flac.dec] signalFlush\r\n05-27 00:39:20.757 13386 15004 I NuPlayerRenderer: onFlush mAudioDrainGeneration : 2\r\n05-27 00:39:20.757 13386 15004 V AudioSink: flush\r\n05-27 00:39:20.757 13386 15004 V AudioSink: stop\r\n05-27 00:39:20.757 13386 15006 I ACodec  : [OMX.SEC.flac.dec] ExecutingState flushing now (codec owns 5/5 input, 0/9 output).\r\n05-27 00:39:20.757 13386 15006 I ACodec  : [OMX.SEC.flac.dec] Now Flushing\r\n05-27 00:39:20.767 13386 15006 I ACodec  : [OMX.SEC.flac.dec] FlushingState onOMXEvent(0,1,0)\r\n05-27 00:39:20.767 13386 15006 I ACodec  : [OMX.SEC.flac.dec] FlushingState onOMXEvent(0,1,1)\r\n05-27 00:39:20.767 13386 15006 I ACodec  : [OMX.SEC.flac.dec] Now Executing\r\n05-27 00:39:20.767 13386 15000 V NuPlayer: decoder audio flush completed\r\n05-27 00:39:20.767 12077 12118 V MediaPlayer: Received SEC_MM_PLAYER_CONTEXT_AWARE\r\n05-27 00:39:20.767 12077 12118 V MediaPlayer: callback application\r\n05-27 00:39:20.767 12077 12118 V MediaPlayer: back from callback\r\n05-27 00:39:20.767 13386 15000 V NuPlayer: renderer audio flush completed.\r\n05-27 00:39:20.767 13386 15000 V NuPlayer: initiating audio decoder shutdown\r\n05-27 00:39:20.767 12077 12077 I MediaPlayer: send context aware event\r\n05-27 00:39:20.767 13386 15006 I ACodec  : [OMX.SEC.flac.dec] Now Executing->Idle\r\n05-27 00:39:20.767 13386 15007 I SEC_BASE_COMP: SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)\r\n05-27 00:39:20.767 13386 15006 I ACodec  : [OMX.SEC.flac.dec] Now Idle->Loaded\r\n05-27 00:39:20.767 12077 13255 V MediaPlayer: message received msg=100, ext1=1, ext2=-1009\r\n05-27 00:39:20.767 13386 15007 I SEC_BASE_COMP: SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)\r\n05-27 00:39:20.767 13386 15006 I ACodec  : [OMX.SEC.flac.dec] Now Loaded\r\n05-27 00:39:20.767 12077 13255 E MediaPlayer: error (1, -1009)\r\n05-27 00:39:20.767 12077 13255 V MediaPlayer: callback application\r\n05-27 00:39:20.767 12077 13255 V MediaPlayer: back from callback\r\n05-27 00:39:20.767 12077 12077 I MediaPlayer: sendBroadcast CONTEXT_AWARE_MUSIC_INFO - type(error) - id (19)\r\n05-27 00:39:20.767 12077 12077 E MediaPlayer: Error (1,-1009)\r\n05-27 00:39:20.767 12077 12077 E VanillaMusic: MediaPlayer error: 1 -1009\r\n\r\n[bugreport_essential.txt](https://github.com/vanilla-music/vanilla/files/285567/bugreport_essential.txt)\r\n"}}
{"actor":{"display_login":"nvgtx"}}