You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
android.app.ServiceConnectionLeaked: Service com.goebl.myworkouts.service.AntPlusPluginService has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$2@2bee8520 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:936)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:830)
at android.app.ContextImpl.bindService(ContextImpl.java:1117)
at android.content.ContextWrapper.bindService(ContextWrapper.java:370)
at com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc.bindAndRequest(AntPluginPcc.java:646)
at com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc.requestAccess_Helper_SubMain(AntPluginPcc.java:557)
at com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc.requestAccess_Helper_Main(AntPluginPcc.java:530)
at com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc.requestAccess_Helper_AsyncSearchByDevNumber(AntPluginPcc.java:405)
at com.dsi.ant.plugins.antplus.pcc.AntPlusEnvironmentPcc.requestAccess(AntPlusEnvironmentPcc.java:238)
at com.goebl.myworkouts.service.AntPlusPluginService.resetEnvironmentPcc(AntPlusPluginService.java:400)
at com.goebl.myworkouts.service.AntPlusPluginService.startStopPlugins(AntPlusPluginService.java:181)
at com.goebl.myworkouts.service.DataCollectorService$1.onServiceConnected(DataCollectorService.java:206)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1068)
Service com.dsi.ant.plugins.antplus.bikespdcad.CombinedBikeSpdCadService has leaked
ServiceConnection com.dsi.ant.plugins.antplus.common.AntPluginService$3@2bc51dd0 that was originally bound here
android.app.ServiceConnectionLeaked: Service com.dsi.ant.plugins.antplus.bikespdcad.CombinedBikeSpdCadService has leaked
ServiceConnection com.dsi.ant.plugins.antplus.common.AntPluginService$3@2bc51dd0 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:936)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:830)
at android.app.ContextImpl.bindService(ContextImpl.java:1117)
at android.content.ContextWrapper.bindService(ContextWrapper.java:370)
at com.dsi.ant.AntService.bindService(AntService.java:206)
at com.dsi.ant.plugins.antplus.common.AntPluginService.connectArsAndRepost(AntPluginService.java:369)
at com.dsi.ant.plugins.antplus.common.AntPluginService.access$1(AntPluginService.java:296)
at com.dsi.ant.plugins.antplus.common.AntPluginService$RequestAccessHandler.handleMessage(AntPluginService.java:268)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)[/color]
Dynastream Developer
This is a known limitation of the current plugins. There is no way to work around it right now besides waiting for the result and calling releasePcc.
However, we have introduced a new feature that returns an object when you request access that can be used to close the PCC cleanly at any time, even before the result is received. This feature should show up in the next library release.
blackramlabs.com
Dynastream Developer
Dynastream Developer
blackramlabs.com