android.app.ServiceConnectionLeaked: Activity org.cocos2dx.javascript.AppActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@df3ec64 that was originally bound here

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by BinqiangSun

It's because the service you bind with activity is not stopped when that activity is destroyed. The service remains in the memory causes this exception. To solve this call doBindService() in onCreate() and doUnbindService() in onDestroy()

Solutions on the web

via Stack Overflow by Anand Kulkarni
, 10 months ago
Activity org.cocos2dx.javascript.AppActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@df3ec64 that was originally bound here
via Stack Overflow by Mad Hatter
, 1 year ago
Activity com.madhatter.nat.pronounce.MainActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@28a467b that was originally bound here
via Stack Overflow by Tharindu Irashana
, 1 year ago
Activity com.rts.dcmote.dcmote.Lunch has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@4e0792 that was originally bound here
via GitHub by SPoelloth
, 10 months ago
Activity com.example.mi.parkenamberg.ParkActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@afdadc70 that was originally bound here
via GitHub by bruferrari
, 2 months ago
Activity com.commonsware.cwac.cam2.demo.MainActivity has leaked ServiceConnection android.media.MediaScannerConnection@fcbb8fd that was originally bound here
via Android Enthusiasts by berdario
, 1 year ago
Service com.touchtype.telemetry.TelemetryService has leaked ServiceConnection com.touchtype_fluency.service.FluencyServiceProxy$1@45949788 that was originally bound here
android.app.ServiceConnectionLeaked: Activity org.cocos2dx.javascript.AppActivity has leaked ServiceConnection android.speech.tts.TextToSpeech$Connection@df3ec64 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:1092)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:986)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1303)
at android.app.ContextImpl.bindService(ContextImpl.java:1286)
at android.content.ContextWrapper.bindService(ContextWrapper.java:604)
at android.speech.tts.TextToSpeech.connectToEngine(TextToSpeech.java:800)
at android.speech.tts.TextToSpeech.initTts(TextToSpeech.java:770)
at android.speech.tts.TextToSpeech.(TextToSpeech.java:723)
at android.speech.tts.TextToSpeech.(TextToSpeech.java:702)
at android.speech.tts.TextToSpeech.(TextToSpeech.java:686)
at org.cocos2dx.javascript.AppActivity.initTextToSpeech_aroundBody10(AppActivity.java:709)
at org.cocos2dx.javascript.AppActivity$AjcClosure11.run(AppActivity.java:1)
at org.a.b.b.c.c(JoinPointImpl.java:149)
at c.a.a.a.a(Hugo.java:39)
at org.cocos2dx.javascript.AppActivity.initTextToSpeech(AppActivity.java:709)
at org.cocos2dx.javascript.AppActivity.setup_aroundBody8(AppActivity.java:701)
at org.cocos2dx.javascript.AppActivity$AjcClosure9.run(AppActivity.java:1)
at org.a.b.b.c.c(JoinPointImpl.java:149)
at c.a.a.a.a(Hugo.java:39)
at org.cocos2dx.javascript.AppActivity.setup(AppActivity.java:619)
at org.cocos2dx.javascript.AppActivity.onCreate_aroundBody0(AppActivity.java:178)
at org.cocos2dx.javascript.AppActivity$AjcClosure1.run(AppActivity.java:1)
at org.a.b.b.c.c(JoinPointImpl.java:149)
at c.a.a.a.a(Hugo.java:39)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:146)
at android.app.Activity.performCreate(Activity.java:6245)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)

Users with the same issue

2 times, 4 days ago
Once, 3 weeks ago
67 times, 2 months ago
25 times, 2 months ago
16 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.