react-native-queue icon indicating copy to clipboard operation
react-native-queue copied to clipboard

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

Open TeruyaHaroldo opened this issue 7 years ago • 1 comments

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?

TeruyaHaroldo avatar Oct 08 '18 19:10 TeruyaHaroldo

We are having a similar issue, has anyone found a solution?

beisert1 avatar Jan 11 '19 14:01 beisert1