question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Illegal callback invocation from native module. This callback type only permits a single invocation from native code

See original GitHub issue

Environment

info Fetching system and libraries information...
System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 6.32 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.5.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.4.1 - ~/Projects/project/node_modules/.bin/npm
    Watchman: 2022.02.14.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      Android NDK: 21.4.7075529
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7583922
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.10 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.67.2 => 0.67.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Platforms

Android

Versions

Please add the used versions/branches

Description

I’ve had a Crashlytics crash in the library, here’s the stack trace:

Fatal Exception: java.lang.RuntimeException: Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
       at com.facebook.react.bridge.CallbackImpl.invoke(CallbackImpl.java)
       at com.agontuk.RNFusedLocation.RNFusedLocationModule$1.onLocationChange(RNFusedLocationModule.java)
       at com.agontuk.RNFusedLocation.FusedLocationProvider$1.onLocationAvailability(FusedLocationProvider.java)
       at com.google.android.gms.internal.location.zzau.notifyListener(zzau.java)
       at com.google.android.gms.common.api.internal.ListenerHolder.getListenerKey(ListenerHolder.java)
       at com.google.android.gms.common.api.internal.zacb.run(zacb.java)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:158)
       at android.app.ActivityThread.main(ActivityThread.java:7229)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Reproducible Demo

I don’t have one, sorry

Expected Results

No crash

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Subhimaraabecommented, Jun 6, 2022

@Agontuk can we release the fix to this issue plz

0reactions
DodoSpringLovecommented, Jul 4, 2022

v5.3.0 published in npm. Closing the issue.

Hi. are soure fixed it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crash with error: Illegal callback invocation from native ...
App crash with error: Illegal callback invocation from native module. This callback type only permits a single invocation from native code. #713.
Read more >
React Native callback type only permits a single invocation ...
A ReactNative Promise object, like a JavaScript Promise, can only be called once. If you want to send something multiple times from a...
Read more >
Calling a callback multiple times in a React Native module
This callback type only permits a single invocation from native code.” In React Native, a native module callback can only be called once,...
Read more >
react-native-sound/Help - Gitter
java.lang.RuntimeException: Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
Read more >
Illegal callback invocation from native module ... - Issuehunt
Crash with error Illegal callback invocation from native module. This callback type only permits a single invocation from native code when you cancel ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found