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.

App crashes when mounting `<UserLocation />` (RCTMGLLocationModule.start got 0 arguments, expected 1)

See original GitHub issue

Describe the bug App crashes when mounting <UserLocation />

To Reproduce Use <UserLocation /> component as a child of <MapView /> component(“@react-native-mapbox-gl/maps”: “7.0.9”)

Expected behavior Expected to show a dot on the device location

Screenshots 스크린샷 2020-01-16 오후 5 25 39

Versions (please complete the following information):

  • Platfrom: Android
  • Device: Emulator Nexus 5X API 29 x86 (1080 × 1920: 420dpi) | | 3.9 GB
  • OS: Android 10.0 (Google APIs) | x86
  • SDK Version 28
  • React Native Version “react-native”: “0.61.5”

Additional context

RCTMGLLocationModule.start got 0 arguments, expected 1

It raises the error saying it hasn’t passed 1 argument required. And I am guessing the missing argument is minDisplacement, which has been recently added to RCTMGLLocationModule.java.

https://github.com/react-native-mapbox-gl/maps/pull/546/files#diff-44868fc4ad781b211fd026ed6a88bd38L73-R75

Are they related? When using 7.0.8, it works fine.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kristfalcommented, Jan 24, 2020

Sounds like you have a mismatch between JS and native code. Make sure to clean build and verify that both JS and native code is updated.

0reactions
kristfalcommented, Jan 25, 2020

Good. It was a partial upgrade issue then. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes when mounting <UserLocation ... - GitHub
RCTMGLLocationModule.start got 0 arguments, expected 1. It raises the error saying it hasn't passed 1 argument required.
Read more >
App crashing immediately on start up after upgrading to iOS12.
Running fine in simulator but crashes in device. No crash logs recorded. In line error shown after launching the app Thread 1: EXC_BAD_ACCESS...
Read more >
Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Flutter app crashes on start - Found interface com.google ...
Suddenly the Flutter app started crashing on open. It was working earlier. Sharing the runtime crash log - Fatal Exception: java.lang.
Read more >
Office Applications crash or cannot start - Microsoft Learn
Right-click ShownFirstRunOptin, and then click Modify. In the Value data box, type 1, and then click OK. On the File menu, click Exit...
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