Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: KBeaconService has leaked IntentReceiver #12

Open
pravingws opened this issue Feb 21, 2024 · 0 comments
Open

Exception: KBeaconService has leaked IntentReceiver #12

pravingws opened this issue Feb 21, 2024 · 0 comments

Comments

@pravingws
Copy link

pravingws commented Feb 21, 2024

Getting this error in KBeaconsMgr.java library class file :

mBeaconMgr = KBeaconsMgr.sharedBeaconManager(this)

04:33:20.155 ActivityThread           E  Service com.wrkspot.employee.widget.bluetooth.KBeaconService has leaked IntentReceiver com.kkmcn.kbeaconlib2.KBeaconsMgr$1@c9f3397 that was originally registered here. Are you missing a call to unregisterReceiver()?
                                         android.app.IntentReceiverLeaked: Service com.wrkspot.employee.widget.bluetooth.KBeaconService has leaked IntentReceiver com.kkmcn.kbeaconlib2.KBeaconsMgr$1@c9f3397 that was originally registered here. Are you missing a call to unregisterReceiver()?
                                         	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1875)
                                         	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1594)
                                         	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1827)
                                         	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1793)
                                         	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1781)
                                         	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:743)
                                         	at com.kkmcn.kbeaconlib2.KBeaconsMgr.initialize(KBeaconsMgr.java:148)
                                         	at com.kkmcn.kbeaconlib2.KBeaconsMgr.sharedBeaconManager(KBeaconsMgr.java:103)
                                         	at com.wrkspot.employee.widget.bluetooth.KBeaconService.onCreate(KBeaconService.kt:117)
                                         	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4940)
                                         	at android.app.ActivityThread.access$1800(ActivityThread.java:310)
                                         	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2300)
                                         	at android.os.Handler.dispatchMessage(Handler.java:106)
                                         	at android.os.Looper.loopOnce(Looper.java:226)
                                         	at android.os.Looper.loop(Looper.java:313)
                                         	at android.app.ActivityThread.main(ActivityThread.java:8663)
                                         	at java.lang.reflect.Method.invoke(Native Method)
                                         	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
                                         	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant