Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TeruyaHaroldo opened this issue Oct 8, 2018 · 1 comment
Open

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

TeruyaHaroldo opened this issue Oct 8, 2018 · 1 comment

Comments

@TeruyaHaroldo
Copy link

TeruyaHaroldo commented Oct 8, 2018

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?

@beisert1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants