Why I am Getting Error 'Channel is unrecoverably broken and will be disposed!'

uncle Lem picture uncle Lem · Sep 17, 2012 · Viewed 110.1k times · Source

When I try to launch my AndEngine Activity, I get this error:

ERROR/InputDispatcher(21374): channel '4122e148 my.package.AcGame (server)' ~ Channel is unrecoverably broken and will be disposed!

The app doesn't crash, but there's a black screen and the device doesn't react to pressing the 'back' or 'home' buttons.

Does anyone know what the problem is?

Answer

Lou Morda picture Lou Morda · Dec 18, 2012

One of the most common reasons I see that error is when I am trying to display an alert dialog or progress dialog in an activity that is not in the foreground. Like when a background thread that displays a dialog box is running in a paused activity.