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.

Constant crash when debugging on localhost (iOS only)

See original GitHub issue

When debugging locally on simulator or device, I constantly get this redbox error:

ExceptionsManager.js:84 Exception thrown while executing UI block:
*** -[__NSArrayM setObject:atIndexedSubscript:]: object cannot be nil

Is this a known issue? I’d be happy to look into it, but I wanted to check if anybody was aware of it so far. It makes debugging very difficult.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:36 (12 by maintainers)

github_iconTop GitHub Comments

11reactions
naftalibedercommented, Mar 19, 2019

Getting somewhere! If I remove the call

[nodesManager operationsBatchDidComplete];

in REAModule.m, the exceptions stop throwing. Looking at the documentation for (void)operationsBatchDidComplete in REANodesManager.m, it doesn’t seem like this call is absolutely necessary, and I’m not noticing any performance issues from the slightly deferred callback.

@kmagiera Would you mind weighing in on this? I can do a PR with the line removed, but it would help to know more about why it’s there and whether there are any conditional checks we could run instead of removing it.

9reactions
yuanfuxcommented, May 26, 2019

Error was confirmed when I was using setValue() inside PanGestureHandler event callback. It seems like calling setValue() on a very frequent manner does cause this issue. Hopefully this can be addressed in a better form than fixing the .m file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

debugging - Safari Web inspector keeps disconnecting
There are a few things to try: 1. Test on the Xcode Simulator: Open the iPhone simulator in Xcode and debug there with...
Read more >
iOS application crashes on start w… | Apple Developer Forums
Hello, We are experiencing a weird crash on iPad when the game starts and we don't know what's causing it. We narrowed down...
Read more >
Tutorial: Using Charles Proxy With Your iOS Development ...
With Charles, you're able to peek into the network requests and responses that your app is making/receiving. This tool will save you so...
Read more >
Debugging React Native apps with Flipper - LogRocket Blog
Learn how to debug your React Native app using Flipper, one of the best and simplest debuggers available today.
Read more >
Fix "Aw, Snap!" page crashes and other page loading errors
If you receive a page loading error: To correct the problem, follow the steps below. You can begin by reloading the page. Computer...
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