Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sending message to a Handler on a dead thread #6

Open
TaifRaoof opened this issue Apr 21, 2018 · 4 comments
Open

sending message to a Handler on a dead thread #6

TaifRaoof opened this issue Apr 21, 2018 · 4 comments

Comments

@TaifRaoof
Copy link

TaifRaoof commented Apr 21, 2018

radio not work and this message appear

Handler (android.os.Handler) {38681ae} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:643)
at android.os.Handler.sendMessageAtTime(Handler.java:612)
at android.os.Handler.sendMessageDelayed(Handler.java:582)
at android.os.Handler.sendMessage(Handler.java:519)
at android.os.Message.sendToTarget(Message.java:416)
at com.google.android.exoplayer2.ExoPlayerImplInternal.prepare(ExoPlayerImplInternal.java:174)
at com.google.android.exoplayer2.ExoPlayerImpl.prepare(ExoPlayerImpl.java:162)
at com.google.android.exoplayer2.ExoPlayerImpl.prepare(ExoPlayerImpl.java:130)
at com.google.android.exoplayer2.SimpleExoPlayer.prepare(SimpleExoPlayer.java:617)
at com.example.example.radio.RadioService.play(RadioService.java:393)
at com.example.example.radio.RadioService.playOrPause(RadioService.java:443)
at com.example.example.radio.RadioManager.playOrPause(RadioManager.java:40)
at com.example.example.activities.MainActivity.playTrigger_click(MainActivity.java:723)

@gonpuga
Copy link

gonpuga commented Jan 31, 2019

Add instance=null; in RadioManager.onUnbind() method.

@marcorealtime
Copy link

Thank so much. I almost lost my head loking a soluction

@harikrushn1412
Copy link

Screen Shot 2023-02-23 at 11 20 20 AM

i am facing this issue when i try to stop the radio and try to start new radio that time showing this issue and radio not starting.
anyone having solution for this?

@harikrushn1412
Copy link

Add instance=null; in RadioManager.onUnbind() method.

i am not able to find this method in new package.
can you help me for this point.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants