java.lang.IllegalStateException: Handler (android.os.Handler) {7e88c7c} sending message to a Handler on a dead thread


Samebug tips

You can solve this by using an actual Service instead of an IntentService


,
via Stack Overflow by Mitodina

Solutions on the web

Solution icon of github
via GitHub by killingdjef
, 8 months ago
Handler (android.os.Handler) {7e88c7c} sending message to a Handler on a dead thread

Solution icon of github
via GitHub by marekSeda
, 11 months ago
Handler (android.os.Handler) {609d304} sending message to a Handler on a dead thread

Solution icon of github
Handler (android.os.Handler) {18b2b23b} sending message to a Handler on a dead thread

Solution icon of github
Handler (android.os.Handler) {3d9a3f45} sending message to a Handler on a dead thread

Solution icon of stackoverflow
via Stack Overflow by Kolchuga
, 1 year ago
Handler (android.os.Handler) {d856ff1} sending message to a Handler on a dead thread

Solution icon of stackoverflow
Handler (android.os.Handler) {febe2b0} sending message to a Handler on a dead thread

Solution icon of stackoverflow
Handler (android.os.Handler) {f95f6fe} sending message to a Handler on a dead thread

Solution icon of stackoverflow
Handler (android.os.Handler) {7b2f7ab} sending message to a Handler on a dead thread

Solution icon of github
via GitHub by PhatJo
, 1 year ago
Handler (android.os.Handler) {5a4e1a0} sending message to a Handler on a dead thread

Solution icon of github
Handler (android.os.Handler) {2482f5a9} sending message to a Handler on a dead thread

Stack trace

java.lang.IllegalStateException: Handler (android.os.Handler) {7e88c7c} sending message to a Handler on a dead thread
	at android.os.MessageQueue.enqueueMessage(MessageQueue.java:574)
	at android.os.Handler.enqueueMessage(Handler.java:631)
	at android.os.Handler.sendMessageAtTime(Handler.java:600)
	at android.os.Handler.sendMessageDelayed(Handler.java:570)
	at android.os.Handler.post(Handler.java:326)
	at android.hardware.camera2.dispatch.HandlerDispatcher.dispatch(HandlerDispatcher.java:61)
	at android.hardware.camera2.dispatch.MethodNameInvoker.invoke(MethodNameInvoker.java:88)
	at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.onClosed(CallbackProxies.java:177)
	at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:387)
	at android.hardware.camera2.impl.CameraCaptureSessionImpl.finalize(CameraCaptureSessionImpl.java:598)
	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:216)
	at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:194)
	at java.lang.Thread.run(Thread.java:818)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 1 week ago
2 times, 5 months ago
19 times, 8 months ago
Once, 10 months ago
Once, 11 months ago
100 more bugmates