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.

Crash iOS in Debug mode when reload (cmd + R)

See original GitHub issue

Hello!

My application crashes when I use cmd + R / reload in debug mode in the iOS system.

Specifications:

Environment:
  OS: macOS High Sierra 10.13.6
  Node: 8.9.4
  Yarn: 1.3.2
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 10.0 Build version 10A255
  Android Studio: 3.1 AI-173.4907809

Packages: (wanted => installed)
  react: ^16.3.2 => 16.3.2
  react-native: 0.51.0 => 0.51.0

I having the following error:

[info][tid:com.facebook.react.WebSocketModuleQueue][RCTSRWebSocket.m:520] SocketRocket: In debug mode.  Allowing connection to any root cert
SocketRocket: In debug mode.  Allowing connection to any root cert
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bridge is not set. This is probably because you've explicitly synthesized the bridge in RCTKeyboardObserver, even though it's inherited from RCTEventEmitter.'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010a43f29b __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x000000010d8aa735 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010a43f022 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x000000010b3b0c10 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
	4   falafreud                           0x000000010670ae9f -[RCTEventEmitter sendEventWithName:body:] + 415
	5   falafreud                           0x0000000106751945 -[RCTKeyboardObserver keyboardDidChangeFrame:] + 117
	6   CoreFoundation                      0x000000010a37cfbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	7   CoreFoundation                      0x000000010a37c43f _CFXRegistrationPost + 447
	8   CoreFoundation                      0x000000010a37c181 ___CFXNotificationPost_block_invoke + 225
	9   CoreFoundation                      0x000000010a464b42 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
	10  CoreFoundation                      0x000000010a37baa4 _CFXNotificationPost + 964
	11  Foundation                          0x000000010b412788 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	12  UIKitCore                           0x0000000117cda929 -[UIInputWindowController postEndNotifications:withInfo:] + 889
	13  UIKitCore                           0x0000000117cddb09 __77-[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:]_block_invoke.1073 + 84
	14  UIKitCore                           0x0000000117cd4cc7 -[UIInputWindowController performWithSafeTransitionFrames:] + 170
	15  UIKitCore                           0x0000000117cdd8fa __77-[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:]_block_invoke.1066 + 1084
	16  Foundation                          0x000000010b432631 __NSFireDelayedPerform + 436
	17  CoreFoundation                      0x000000010a3a3344 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
	18  CoreFoundation                      0x000000010a3a2f42 __CFRunLoopDoTimer + 1026
	19  CoreFoundation                      0x000000010a3a27aa __CFRunLoopDoTimers + 266
	20  CoreFoundation                      0x000000010a39ce2c __CFRunLoopRun + 2252
	21  CoreFoundation                      0x000000010a39c221 CFRunLoopRunSpecific + 625
	22  GraphicsServices                    0x00000001124191dd GSEventRunModal + 62
	23  UIKitCore                           0x0000000117f2c115 UIApplicationMain + 140
	24  falafreud                           0x00000001065c03b0 main + 112
	25  libdyld.dylib                       0x0000000111300551 start + 1
)
[] nw_socket_handle_socket_event [C47.1:1] Socket SO_ERROR [61: Connection refused]
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Is it happening just with me?

To reproduce: Just do some of the following examples: https://github.com/billmalarky/react-native-queue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
reyalpsirccommented, Feb 4, 2019

It is also happening to me. But in my case it happens when using remote debugger

0reactions
realm-probot[bot]commented, Aug 14, 2019

Hey - looks like you forgot to add a T:* label - could you please add one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash starting app after upgrade to Monterey - Apple Developer
Need some help debugging an issue that only started after upgrading to Monterey. Our application is failing to start resulting in a segmentation...
Read more >
Are these missing libs causing my app to crash?
Ionic iOS app can be debug in the safari , in the safari developer ... the issue the app will be crashed or...
Read more >
HotRestart deploys app but then crashes
Since I created an ios project from File New Xamrain Forms Project I deployed my app to the phone the app icon does...
Read more >
Build and run your app - Android Developers
Disable this behavior to use Apply Code Changes alongside Crashlytics with your debug builds. Code that directly references content in an ...
Read more >
[Solved]-app reload of iOS React Native project (in simulator) started ...
Coding example for the question app reload of iOS React Native project (in simulator) ... In your Xcode simulator go to Debug >...
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