Git Product home page Git Product logo

Comments (5)

nordved avatar nordved commented on July 16, 2024

I get the same error on my emulator. I also can't reproduce or provoke it, but it happens sometimes.

from react-native-background-geolocation.

JimmyDaddy avatar JimmyDaddy commented on July 16, 2024

I got the same error through my Android users too.
Here is the output:

java.lang.RuntimeException: Unable to destroy activity {com.sxc.songxiaofu.captain/com.sxc.songxiaofu.captain.MainActivity}: java.lang.IllegalArgumentException: Service not registered: com.marianhello.react.BackgroundGeolocationModule$1@422036c0
	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3496)
	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3514)
	at android.app.ActivityThread.access$1400(ActivityThread.java:139)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:136)
	at android.app.ActivityThread.main(ActivityThread.java:5105)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:515)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: Service not registered: com.marianhello.react.BackgroundGeolocationModule$1@422036c0
	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
	at android.app.ContextImpl.unbindService(ContextImpl.java:1652)
	at android.content.ContextWrapper.unbindService(ContextWrapper.java:529)
	at com.marianhello.react.BackgroundGeolocationModule.doUnbindService(BackgroundGeolocationModule.java:502)
	at com.marianhello.react.BackgroundGeolocationModule.onHostDestroy(BackgroundGeolocationModule.java:105)
	at com.facebook.react.bridge.ReactContext.onHostDestroy(ReactContext.java:205)
	at com.facebook.react.XReactInstanceManagerImpl.moveToBeforeCreateLifecycleState(XReactInstanceManagerImpl.java:607)
	at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:539)
	at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:546)
	at com.facebook.react.ReactActivityDelegate.onDestroy(ReactActivityDelegate.java:128)
	at com.facebook.react.ReactActivity.onDestroy(ReactActivity.java:72)
	at android.app.Activity.performDestroy(Activity.java:5403)
	at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1117)
	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3483)
	... 11 more
java.lang.IllegalArgumentException: Service not registered: com.marianhello.react.BackgroundGeolocationModule$1@422036c0
	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
	at android.app.ContextImpl.unbindService(ContextImpl.java:1652)
	at android.content.ContextWrapper.unbindService(ContextWrapper.java:529)
	at com.marianhello.react.BackgroundGeolocationModule.doUnbindService(BackgroundGeolocationModule.java:502)
	at com.marianhello.react.BackgroundGeolocationModule.onHostDestroy(BackgroundGeolocationModule.java:105)
	at com.facebook.react.bridge.ReactContext.onHostDestroy(ReactContext.java:205)
	at com.facebook.react.XReactInstanceManagerImpl.moveToBeforeCreateLifecycleState(XReactInstanceManagerImpl.java:607)
	at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:539)
	at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:546)
	at com.facebook.react.ReactActivityDelegate.onDestroy(ReactActivityDelegate.java:128)
	at com.facebook.react.ReactActivity.onDestroy(ReactActivity.java:72)
	at android.app.Activity.performDestroy(Activity.java:5403)
	at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1117)
	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3483)
	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3514)
	at android.app.ActivityThread.access$1400(ActivityThread.java:139)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:136)
	at android.app.ActivityThread.main(ActivityThread.java:5105)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:515)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
	at dalvik.system.NativeStart.main(Native Method)

from react-native-background-geolocation.

mauron85 avatar mauron85 commented on July 16, 2024

Notice: this issue has been closed because it has been inactive for 228 days. You may reopen this issue if it has been closed in error.

from react-native-background-geolocation.

tjadli avatar tjadli commented on July 16, 2024

I am still getting this error, did anyone find any solution ?
PS: i am on RN49

from react-native-background-geolocation.

thtRajasthaniGuy avatar thtRajasthaniGuy commented on July 16, 2024

same issue

from react-native-background-geolocation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.