{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/729","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/729/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/729/events","html_url":"https://github.com/google/ExoPlayer/issues/729","id":102187779,"number":729,"title":"Buffer is inaccessible and IllegalStateException","user":{"login":"ppamorim","id":5521682,"avatar_url":"https://avatars.githubusercontent.com/u/5521682?v=3","gravatar_id":"","url":"https://api.github.com/users/ppamorim","html_url":"https://github.com/ppamorim","followers_url":"https://api.github.com/users/ppamorim/followers","following_url":"https://api.github.com/users/ppamorim/following{/other_user}","gists_url":"https://api.github.com/users/ppamorim/gists{/gist_id}","starred_url":"https://api.github.com/users/ppamorim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppamorim/subscriptions","organizations_url":"https://api.github.com/users/ppamorim/orgs","repos_url":"https://api.github.com/users/ppamorim/repos","events_url":"https://api.github.com/users/ppamorim/events{/privacy}","received_events_url":"https://api.github.com/users/ppamorim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/need%20more%20info","name":"need more info","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-20T17:23:42Z","updated_at":"2015-08-20T17:39:29Z","closed_at":null,"body":"Hi everyone.\r\nThe logcat says:\r\n\r\n    java.lang.IllegalStateException: buffer is inaccessible\r\n            at java.nio.DirectByteBuffer.checkIsAccessible(DirectByteBuffer.java:551)\r\n            at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:352)\r\n            at com.google.android.exoplayer.extractor.RollingSampleBuffer.readData(RollingSampleBuffer.java:287)\r\n            at com.google.android.exoplayer.extractor.RollingSampleBuffer.readSample(RollingSampleBuffer.java:193)\r\n            at com.google.android.exoplayer.extractor.DefaultTrackOutput.getSample(DefaultTrackOutput.java:142)\r\n            at com.google.android.exoplayer.hls.HlsExtractorWrapper.getSample(HlsExtractorWrapper.java:186)\r\n            at com.google.android.exoplayer.hls.HlsSampleSource.readData(HlsSampleSource.java:298)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.feedInputBuffer(MediaCodecTrackRenderer.java:607)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:502)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:417)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:205)\r\n            at android.os.Handler.dispatchMessage(Handler.java:98)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.os.HandlerThread.run(HandlerThread.java:61)\r\n            at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n\r\nAnd:\r\n\r\n    java.lang.IllegalStateException\r\n            at android.media.MediaCodec.native_stop(Native Method)\r\n            at android.media.MediaCodec.stop(MediaCodec.java:631)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.releaseCodec(MediaCodecTrackRenderer.java:439)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.onDisabled(MediaCodecTrackRenderer.java:409)\r\n            at com.google.android.exoplayer.MediaCodecVideoTrackRenderer.onDisabled(MediaCodecVideoTrackRenderer.java:328)\r\n            at com.google.android.exoplayer.TrackRenderer.disable(TrackRenderer.java:219)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.stopAndDisable(ExoPlayerImplInternal.java:538)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.resetInternal(ExoPlayerImplInternal.java:525)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.stopInternal(ExoPlayerImplInternal.java:502)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:239)\r\n            at android.os.Handler.dispatchMessage(Handler.java:98)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.os.HandlerThread.run(HandlerThread.java:61)\r\n            at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n\r\nUsing the last version of the ExoPlayer, happens at LG G2, S4 and Moto E.\r\nIf you want to test, start a new HLS stream with this address: http://i2.vejoaovivo.com.br:1935/1dia/d6b1c9f0-3708-11e5-9a60-35a00edea567.stream/playlist.m3u8\r\n\r\nI don't know if it's a problem with my the stream or the library, but happens with HLS stream. Why this don't have any handle?\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/133089930","html_url":"https://github.com/google/ExoPlayer/issues/729#issuecomment-133089930","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/729","id":133089930,"user":{"login":"ppamorim","id":5521682,"avatar_url":"https://avatars.githubusercontent.com/u/5521682?v=3","gravatar_id":"","url":"https://api.github.com/users/ppamorim","html_url":"https://github.com/ppamorim","followers_url":"https://api.github.com/users/ppamorim/followers","following_url":"https://api.github.com/users/ppamorim/following{/other_user}","gists_url":"https://api.github.com/users/ppamorim/gists{/gist_id}","starred_url":"https://api.github.com/users/ppamorim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppamorim/subscriptions","organizations_url":"https://api.github.com/users/ppamorim/orgs","repos_url":"https://api.github.com/users/ppamorim/repos","events_url":"https://api.github.com/users/ppamorim/events{/privacy}","received_events_url":"https://api.github.com/users/ppamorim/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T17:39:29Z","updated_at":"2015-08-20T17:39:29Z","body":"@ojw28 Infos added"}}