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 instantly crashes in v0.53.3 on iOS due to a low-level RedBox error

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS High Sierra 10.13.3 Node: 9.5.0 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed) react: 16.2.0 => 16.2.0 react-native: 0.53.3 => 0.53.3

Steps to Reproduce

I’m not entirely sure, as there’s a chance it might have to do with XCode, Objective-C, or something else low-level. After upgrading to v0.53.3, my app instantly crashes the minute it loads. I removed my ios directory, ejected the project and re-linked all my dependencies and received the same error. Running react-native log-ios outputs an Objective-C runtime error that I’m not quite sure how to interpret (see below).

Expected Behavior

I imagined there would be some RedBox errors after upgrading, but the app now crashes before it can even display those errors due to a runtime issue.

Actual Behavior

The app crashes. Running react-native log-ios I see the following output:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView heightAnchor]: unrecognized selector sent to instance 0x7fde20865400'
	*** First throw call stack:
	(
		0   CoreFoundation                      0x000000010b8ccf35 __exceptionPreprocess + 165
		1   libobjc.A.dylib                     0x000000010aa28bb7 objc_exception_throw + 45
		2   CoreFoundation                      0x000000010b8d404d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
		3   CoreFoundation                      0x000000010b82c27c ___forwarding___ + 988
		4   CoreFoundation                      0x000000010b82be18 _CF_forwarding_prep_0 + 120
		5   MyApp                               0x0000000109e6bd2c -[RCTRedBoxExtraDataViewController init] + 2524
		6   MyApp                               0x0000000109ed11f6 __55-[RCTRedBox showErrorMessage:withParsedStack:isUpdate:]_block_invoke + 70
		7   libdispatch.dylib                   0x000000010e6b0af6 _dispatch_call_block_and_release + 12
		8   libdispatch.dylib                   0x000000010e6caaf4 _dispatch_client_callout + 8
		9   libdispatch.dylib                   0x000000010e6b6265 _dispatch_main_queue_callback_4CF + 490
		10  CoreFoundation                      0x000000010b834fe9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
		11  CoreFoundation                      0x000000010b7f7eeb __CFRunLoopRun + 2043
		12  CoreFoundation                      0x000000010b7f7486 CFRunLoopRunSpecific + 470
		13  GraphicsServices                    0x000000010fb549f0 GSEventRunModal + 161
		14  UIKit                               0x000000010d2c5420 UIApplicationMain + 1282
		15  MyApp                               0x0000000109d93caf main + 111
		16  libdyld.dylib                       0x000000010e6fa145 start + 1
		17  ???                                 0x0000000000000001 0x0 + 1
	)

Checking RCTRedBoxExtraDataViewController.m, I saw the “heightAnchor” calls the error is referencing. That said, I’m not exactly sure how to approach this issue or why it might be happening in the first place. If I had any clue what kind of RedBox error it might be trying to throw or what is causing that error I’d have a better shot of replicating it, but right now I’m rather in the dark.

Any idea what could trip up the RedBox system like that? Is there another way to view what error it’s trying to throw so I can at least better understand why the error is causing the app to crash? Any help is appreciated. Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

1reaction
poisoncommented, Apr 25, 2018

I’m experiencing the same issue

-[UITableView heightAnchor]: unrecognized selector sent to instance 0x15099600 *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UITableView heightAnchor]: unrecognized selector sent to instance 0x15099600’

Ran from Xcode (not the command-line) on iOS 8.1.2, iPhone 5

0reactions
stale[bot]commented, Oct 8, 2018

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an app on your iPhone or iPad stops responding, closes ...
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won't open · Close and reopen the app · Restart...
Read more >
The mobile app on iOS crashes - what can I do?
My Dropbox App Crashs within seconds of opening it. Latest iOS version and App updates installed. No specific files related. Problem appears only...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Sometimes app-crashing is not caused by your phone, but rather the app itself. An internal error, or bug, may have brought the app...
Read more >
What do I do if the Dropbox iOS app crashes?
If the Dropbox mobile app freezes or crashes for some reason, try these troubleshooting steps. If the Dropbox desktop application crashes, visit this ......
Read more >
Documents app quits unexpectedly
If the app crashes because of processing a lot of data via Indexing, try disabling the toggle: Documents settings > File Manager >...
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