realm / realm-browser-osx

DEPRECATED - Realm Browser for Mac OS X has been replaced by realm-studio which is cross platform.
https://realm.io
502 stars 54 forks source link

Crash on connection #275

Closed gritzko closed 7 years ago

gritzko commented 7 years ago

This crash happens intermittently; most of the time it just hangs up. Happens on opening a RealmTasks realm on a demo server.

Console:

2017-02-07 14:28:48.563214 Realm Browser[51169:1573411] [User Defaults] Failed to read values in CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null)): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access, detaching from cfprefsd
2017-02-07 14:28:48.834284 Realm Browser[51169:1573411] [User Defaults] attempt to set 1 for key in HockeySDKCrashReportActivated in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:28:48.834452 Realm Browser[51169:1573411] [User Defaults] attempt to set 0 for key in HockeySDKAutomaticallySendCrashReports in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:28:48.995060 Realm Browser[51169:1573411] [HockeySDK] WARNING: Detecting crashes is NOT enabled due to running the app with a debugger attached.
2017-02-07 14:28:48.997238 Realm Browser[51169:1573411] [User Defaults] attempt to set 1 for key in BITApplicationWasLaunched in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:28:49.002480 Realm Browser[51169:1573411] [User Defaults] attempt to set 250 for key in NSInitialToolTipDelay in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:28:54.348579 Realm Browser[51169:1573411] [User Defaults] attempt to set 1486474134.348475 for key in BITApplicationDidEnterBackgroundTime in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:28:57.317401 Realm Browser[51169:1573411] [User Defaults] attempt to set 1 for key in BITApplicationWasLaunched in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:29:05.294822 Realm Browser[51169:1573411] [User Defaults] attempt to set 1486474145.294704 for key in BITApplicationDidEnterBackgroundTime in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:29:11.127824 Realm Browser[51169:1573411] [User Defaults] attempt to set 1 for key in BITApplicationWasLaunched in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:29:13.414425 Realm Browser[51169:1573467] 0x600000143180 Copy matching assets reply: XPC_TYPE_DICTIONARY  <dictionary: 0x600000143180> { count = 2, transaction: 0, voucher = 0x0, contents =
    "Assets" => <data: 0x600000468700>: { length = 3797 bytes, contents = 0x62706c6973743030d4000100020003000400050006017101... }
    "Result" => <int64: 0x60000003ede0>: 0
}
2017-02-07 14:29:13.415706 Realm Browser[51169:1573467] 0x600000143700 Copy assets attributes reply: XPC_TYPE_DICTIONARY  <dictionary: 0x600000143700> { count = 2, transaction: 0, voucher = 0x0, contents =
    "Attributes" => <data: 0x600000468700>: { length = 302 bytes, contents = 0x62706c6973743030d40102030405061a1b58247665727369... }
    "Result" => <int64: 0x60000003ee60>: 0
}
2017-02-07 14:29:13.417357 Realm Browser[51169:1573467] 0x608000145cd0 Copy assets attributes reply: XPC_TYPE_DICTIONARY  <dictionary: 0x608000145cd0> { count = 2, transaction: 0, voucher = 0x0, contents =
    "Attributes" => <data: 0x608000263e00>: { length = 506 bytes, contents = 0x62706c6973743030d4010203040506232458247665727369... }
    "Result" => <int64: 0x608000030c40>: 0
}
2017-02-07 14:29:13.418486 Realm Browser[51169:1573467] 0x600000143700 Copy assets attributes reply: XPC_TYPE_DICTIONARY  <dictionary: 0x600000143700> { count = 2, transaction: 0, voucher = 0x0, contents =
    "Attributes" => <data: 0x600000468700>: { length = 302 bytes, contents = 0x62706c6973743030d40102030405061a1b58247665727369... }
    "Result" => <int64: 0x60000003ee60>: 0
}
2017-02-07 14:29:13.419563 Realm Browser[51169:1573467] 0x6000001430d0 Copy assets attributes reply: XPC_TYPE_DICTIONARY  <dictionary: 0x6000001430d0> { count = 2, transaction: 0, voucher = 0x0, contents =
    "Attributes" => <data: 0x6000004692c0>: { length = 506 bytes, contents = 0x62706c6973743030d4010203040506232458247665727369... }
    "Result" => <int64: 0x60000003eda0>: 0
}
2017-02-07 14:29:15.125259 Realm Browser[51169:1573469] [HockeySDK] __32-[BITPersistence persistBundle:]_block_invoke/65 ERROR: Error writing bundle to /Users/gritzko/Library/Containers/io.realm.realmbrowser/Data/Library/Application Support/io.realm.realmbrowser/com.microsoft.HockeyApp/Telemetry/hockey-app-bundle-ECEBF351-F47A-440B-8B4E-DF5234C570E5
2017-02-07 14:29:20.327527 Realm Browser[51169:1573411] [User Defaults] attempt to set <62706c69 73743030 d4010203 04050616 17582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07080f10 55246e75 6c6cd309 0a0b0c0d 0e574e53 2e626173 65562463 6c617373 5b4e532e 72656c61 74697665 80008003 80025f10 2b726561 6c6d3a2f 2f64656d 6f2e7379 6e632e72 65616c6d 6c61622e 6e65742f 7e2f7265 616c6d74 61736b73 d2111213 145a2463 6c617373 6e616d65 5824636c 61737365 73554e53 55524ca2 1315584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11819 54726f6f 74800108 111a232d 32373c42 49515864 66686a98 9da8b1b7 bac3d5d8 dd000000 00000001 01000000 00000000 1a000000 00000000 00000000 00000000 df> for key in URL in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
2017-02-07 14:29:20.352233 Realm Browser[51169:1573411] NSToolbarItem (<NSToolbarItem: 0x600000122760>) had to adjust the size of <NSSegmentedControl: 0x6000001868d0> from {67, 22} to the expected size of {69, 21}. Make sure that this toolbar item view has a valid frame/min/max size. This is an app bug, please do not file a bug against AppKit or NSToolbar! Break on _NSToolbarAdjustedBorderedControlSizeBreakpoint
2017-02-07 14:29:20.354650 Realm Browser[51169:1573411] NSToolbarItem (<NSToolbarItem: 0x608000123700>) had to adjust the size of <NSSearchField: 0x101431860> from {89, 19} to the expected size of {91, 21}. Make sure that this toolbar item view has a valid frame/min/max size. This is an app bug, please do not file a bug against AppKit or NSToolbar! Break on _NSToolbarAdjustedBorderedControlSizeBreakpoint
2017-02-07 14:29:20.815199 Realm Browser[51169:1573411] [User Defaults] attempt to set (
    "0.000000, 0.000000, 236.000000, 476.000000, NO, NO",
    "237.000000, 0.000000, 741.000000, 476.000000, NO, NO"
) for key in NSSplitView Subview Frames OutlineWidthForRealm:(null) in non-persistent preferences domain CFPrefsPlistSource<0x6080000e0400> (Domain: io.realm.realmbrowser, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null))
libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: Cannot retrieve an existing user specifying a different auth server.
(lldb) 

Stack trace:

#0  0x00007fff918dedd6 in __pthread_kill ()
#1  0x0000000100e12a1c in pthread_kill ()
#2  0x00007fff91844420 in abort ()
#3  0x00007fff9039f85a in abort_message ()
#4  0x00007fff903c4c37 in default_terminate_handler() ()
#5  0x00007fff90ecef33 in _objc_terminate() ()
#6  0x00007fff903c1d69 in std::__terminate(void (*)()) ()
#7  0x00007fff903c1de3 in std::terminate() ()
#8  0x00007fff90eced11 in objc_terminate ()
#9  0x0000000100d97f70 in _dispatch_client_callout ()
#10 0x0000000100dafa59 in _dispatch_queue_serial_drain ()
#11 0x0000000100da1489 in _dispatch_queue_invoke ()
#12 0x0000000100d9a1d7 in _dispatch_root_queue_drain ()
#13 0x0000000100d99ee8 in _dispatch_worker_thread3 ()
#14 0x0000000100e0f89a in _pthread_wqthread ()
#15 0x0000000100e0f375 in start_wqthread ()
Enqueued from com.apple.NSURLSession-work (Thread 10)Queue : com.apple.NSURLSession-work (serial)
#0  0x0000000100dae5e4 in _dispatch_queue_push ()
#1  0x00007fff7dc51530 in __NSOQSchedule ()
#2  0x00007fff7dc87ba7 in __addOperations ()
#3  0x00007fff7b3e2e28 in -[__NSCFLocalSessionTask _task_onqueue_didFinish] ()
#4  0x00007fff7b3e2c77 in -[__NSCFLocalSessionTask connection:didFinishLoadingWithError:] ()
#5  0x00007fff7b3e2bbf in __51-[__NSCFURLLocalSessionConnection _task_sendFinish]_block_invoke ()
#6  0x00007fff7b3e2b3e in -[__NSCFURLLocalSessionConnection _task_sendFinish] ()
#7  0x0000000100da16e5 in _dispatch_call_block_and_release ()
#8  0x0000000100d97f5c in _dispatch_client_callout ()
#9  0x0000000100dafa59 in _dispatch_queue_serial_drain ()
#10 0x0000000100da1489 in _dispatch_queue_invoke ()
#11 0x0000000100d9a1d7 in _dispatch_root_queue_drain ()
#12 0x0000000100d99ee8 in _dispatch_worker_thread3 ()
#13 0x0000000100e0f89a in _pthread_wqthread ()
#14 0x0000000100e0f375 in start_wqthread ()
Enqueued from com.apple.NSURLSession-work (Thread 10)Queue : com.apple.NSURLSession-work (serial)
#0  0x0000000100dae5e4 in _dispatch_queue_push ()
#1  0x00007fff7b3d3651 in -[__NSCFURLSessionConnection withWorkQueueAsync:] ()
#2  0x00007fff7b3dfea7 in -[__NSCFURLLocalSessionConnection afterDelegateWithTick:] ()
#3  0x00007fff7b3e194c in __50-[__NSCFURLLocalSessionConnection _tick_finishing]_block_invoke_2 ()
#4  0x00007fff7b3e184b in -[__NSCFLocalSessionTask connection:willCacheResponse:responseCallback:] ()
#5  0x00007fff7b3e1785 in __50-[__NSCFURLLocalSessionConnection _tick_finishing]_block_invoke ()
#6  0x00007fff7b3e12a2 in -[__NSCFURLLocalSessionConnection _tick_finishing] ()
#7  0x0000000100da16e5 in _dispatch_call_block_and_release ()
#8  0x0000000100d97f5c in _dispatch_client_callout ()
#9  0x0000000100dafa59 in _dispatch_queue_serial_drain ()
#10 0x0000000100da1489 in _dispatch_queue_invoke ()
#11 0x0000000100d9a1d7 in _dispatch_root_queue_drain ()
#12 0x0000000100d99ee8 in _dispatch_worker_thread3 ()
#13 0x0000000100e0f89a in _pthread_wqthread ()
#14 0x0000000100e0f375 in start_wqthread ()
Enqueued from com.apple.NSURLSession-work (Thread 10)Queue : com.apple.NSURLSession-work (serial)
#0  0x0000000100dae5e4 in _dispatch_queue_push ()
#1  0x00007fff7b3d3651 in -[__NSCFURLSessionConnection withWorkQueueAsync:] ()
#2  0x00007fff7b3dfea7 in -[__NSCFURLLocalSessionConnection afterDelegateWithTick:] ()
#3  0x00007fff7b3e1000 in __48-[__NSCFURLLocalSessionConnection _tick_running]_block_invoke_2 ()
#4  0x00007fff7b3e0d2a in -[__NSCFLocalSessionTask connection:didReceiveData:completion:] ()
#5  0x00007fff7b3e0c55 in __48-[__NSCFURLLocalSessionConnection _tick_running]_block_invoke ()
#6  0x00007fff7b3e0b55 in -[__NSCFURLLocalSessionConnection _tick_running] ()
#7  0x0000000100da16e5 in _dispatch_call_block_and_release ()
#8  0x0000000100d97f5c in _dispatch_client_callout ()
#9  0x0000000100dafa59 in _dispatch_queue_serial_drain ()
#10 0x0000000100da1489 in _dispatch_queue_invoke ()
#11 0x0000000100d9a1d7 in _dispatch_root_queue_drain ()
#12 0x0000000100d99ee8 in _dispatch_worker_thread3 ()
#13 0x0000000100e0f89a in _pthread_wqthread ()
#14 0x0000000100e0f375 in start_wqthread ()
Enqueued from com.apple.NSURLSession-work (Thread 10)Queue : com.apple.NSURLSession-work (serial)
#0  0x0000000100dae5e4 in _dispatch_queue_push ()
#1  0x00007fff7b3d3651 in -[__NSCFURLSessionConnection withWorkQueueAsync:] ()
#2  0x00007fff7b3dfea7 in -[__NSCFURLLocalSessionConnection afterDelegateWithTick:] ()
#3  0x00007fff7b3dfe4b in __61-[__NSCFURLLocalSessionConnection _didReceiveResponse:sniff:]_block_invoke_2 ()
#4  0x00007fff7b48c58e in __67-[__NSCFLocalSessionTask connection:didReceiveResponse:completion:]_block_invoke_2 ()
#5  0x00007fff7b3dfc28 in -[__NSCFLocalDataTask _onqueue_didReceiveResponse:completion:] ()
#6  0x00007fff7b48c547 in __67-[__NSCFLocalSessionTask connection:didReceiveResponse:completion:]_block_invoke ()
#7  0x00007fff7b3df9e4 in -[__NSCFLocalSessionTask connection:didReceiveResponse:completion:] ()
#8  0x00007fff7b3df815 in __61-[__NSCFURLLocalSessionConnection _didReceiveResponse:sniff:]_block_invoke ()
#9  0x00007fff7b3defdb in -[__NSCFURLLocalSessionConnection _didReceiveResponse:sniff:] ()
#10 0x00007fff7b3edf51 in ___ZN19URLConnectionLoader26protocolDidReceiveResponseEP14_CFURLResponse_block_invoke ()
#11 0x00007fff7b3deb6d in ___ZN25SessionConnectionLoadable21withLoaderClientAsyncEU13block_pointerFvP21LoaderClientInterfaceE_block_invoke ()
#12 0x0000000100da16e5 in _dispatch_call_block_and_release ()
#13 0x0000000100d97f5c in _dispatch_client_callout ()
#14 0x0000000100dafa59 in _dispatch_queue_serial_drain ()
#15 0x0000000100da1489 in _dispatch_queue_invoke ()
#16 0x0000000100d9a1d7 in _dispatch_root_queue_drain ()
#17 0x0000000100d99ee8 in _dispatch_worker_thread3 ()
#18 0x0000000100e0f89a in _pthread_wqthread ()
#19 0x0000000100e0f375 in start_wqthread ()
Enqueued from com.apple.NSURLSession-work (Thread 10)Queue : com.apple.NSURLSession-work (serial)
#0  0x0000000100dae5e4 in _dispatch_queue_push ()
#1  0x00007fff7b3d3651 in -[__NSCFURLSessionConnection withWorkQueueAsync:] ()
#2  0x00007fff7b3deb49 in SessionConnectionLoadable::withLoaderClientAsync(void (LoaderClientInterface*) block_pointer) ()
#3  0x00007fff7b3ed719 in URLConnectionLoader::protocolDidReceiveResponse(_CFURLResponse*) ()
#4  0x00007fff7b3ed63a in ___ZN27URLConnectionLoader_Classic26protocolDidReceiveResponseEP14_CFURLResponse_block_invoke ()
#5  0x00007fff7b3d8aa3 in ___ZNK25URLConnectionInstanceData18withWorkQueueAsyncEU13block_pointerFvvE_block_invoke ()
#6  0x0000000100da16e5 in _dispatch_call_block_and_release ()
#7  0x0000000100d97f5c in _dispatch_client_callout ()
#8  0x0000000100dafa59 in _dispatch_queue_serial_drain ()
#9  0x0000000100da1489 in _dispatch_queue_invoke ()
#10 0x0000000100d9a1d7 in _dispatch_root_queue_drain ()
#11 0x0000000100d99ee8 in _dispatch_worker_thread3 ()
#12 0x0000000100e0f89a in _pthread_wqthread ()
#13 0x0000000100e0f375 in start_wqthread ()
Enqueued from com.apple.root.default-qos.overcommit (Thread 9)Queue : com.apple.root.default-qos.overcommit (serial)
#0  0x0000000100dae5e4 in _dispatch_queue_push ()
#1  0x00007fff7b3d8a88 in URLConnectionInstanceData::withWorkQueueAsync(void () block_pointer) const ()
#2  0x00007fff7b3ed5db in URLConnectionLoader_Classic::protocolDidReceiveResponse(_CFURLResponse*) ()
#3  0x00007fff7b4399b4 in HTTPProtocol::checkAndSendDidReceiveResponse() ()
#4  0x00007fff7b438ca7 in HTTPProtocol::performHeaderReadPostProcessing(__CFHTTPMessage*, unsigned char) ()
#5  0x00007fff7b4388e0 in HTTPProtocol::performHeaderRead(__CFHTTPMessage*) ()
#6  0x00007fff7b4384a8 in HTTPProtocol::handleStreamEvent(__CFHTTPMessage*, dispatch_data_s*, CFStreamError const*) ()
#7  0x00007fff7b5fdf7b in ___ZN15HTTPTransaction22_onqueue_invokeHandlerEv_block_invoke.64 ()
#8  0x0000000100d97f5c in _dispatch_client_callout ()
#9  0x0000000100dada4f in _dispatch_block_invoke_direct ()
#10 0x00007fff7b3ebec4 in RunloopBlockContext::_invoke_block(void const*, void*) ()
#11 0x00007fff7c21a674 in CFArrayApplyFunction ()
#12 0x00007fff7b3ebdbd in RunloopBlockContext::perform() ()
#13 0x00007fff7b3ebc54 in MultiplexerSource::perform() ()
#14 0x00007fff7b3eba76 in MultiplexerSource::_perform(void*) ()
#15 0x00007fff7c277981 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#16 0x00007fff7c258a7d in __CFRunLoopDoSources0 ()
#17 0x00007fff7c257f76 in __CFRunLoopRun ()
#18 0x00007fff7c257974 in CFRunLoopRunSpecific ()
#19 0x00007fff7b3c7680 in +[NSURLConnection(Loader) _resourceLoadLoop:] ()
#20 0x00007fff7dc7cc6d in __NSThread__start__ ()
#21 0x0000000100e0fc50 in _pthread_body ()
#22 0x0000000100e0fb9c in _pthread_start ()
#23 0x0000000100e0f385 in thread_start ()
stel commented 7 years ago

libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: Cannot retrieve an existing user specifying a different auth server.

This issue is tracked here: https://github.com/realm/realm-object-store/issues/296.