I am developing an application which has many services. When I stop the intent service, all threads and service should be stopped but the UI is hung and the following errors
Profile your app - I found the cause of my similar problem that way.
Android Studio: Tools -> Android -> Android Device Monitor
Select your app and it the top (left) select:
Start method profiling
and after some time stop it the see the result.