{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/2311","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2311/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2311/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2311/events","html_url":"https://github.com/realm/realm-cocoa/issues/2311","id":97869771,"number":2311,"title":"Realm crashes at init_from_ref with please_report_this message","user":{"login":"cmittendorf","id":119649,"avatar_url":"https://avatars.githubusercontent.com/u/119649?v=3","gravatar_id":"","url":"https://api.github.com/users/cmittendorf","html_url":"https://github.com/cmittendorf","followers_url":"https://api.github.com/users/cmittendorf/followers","following_url":"https://api.github.com/users/cmittendorf/following{/other_user}","gists_url":"https://api.github.com/users/cmittendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/cmittendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmittendorf/subscriptions","organizations_url":"https://api.github.com/users/cmittendorf/orgs","repos_url":"https://api.github.com/users/cmittendorf/repos","events_url":"https://api.github.com/users/cmittendorf/events{/privacy}","received_events_url":"https://api.github.com/users/cmittendorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-29T06:27:21Z","updated_at":"2015-08-10T17:47:09Z","closed_at":null,"body":"Hi!\r\n\r\nWe've got a Mac application written using Swift and SwiftRealm/Realm version 0.9.32. It's a Finder extension and it crashes when accessing the Realm database in it's group container folder.\r\n\r\n    Crashed Thread:        0  Dispatch queue: com.apple.main-thread\r\n\r\n    Exception Type:        EXC_CRASH (SIGABRT)\r\n    Exception Codes:       0x0000000000000000, 0x0000000000000000\r\n\r\n    Application Specific Information:\r\n    abort() called\r\n\r\n    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n    0   libsystem_kernel.dylib        \t0x00007fff80f0a286 __pthread_kill + 10\r\n    1   libsystem_c.dylib             \t0x00007fff83dfeb53 abort + 129\r\n    2   io.Realm.Realm                \t0x0000000105ddfcb9 please_report_this_error_to_help_at_realm_dot_io + 9\r\n    3   io.Realm.Realm                \t0x0000000105ddfe78 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 328\r\n    4   io.Realm.Realm                \t0x0000000105dee456 void realm::util::terminate<unsigned long, int>(char const*, char const*, long, unsigned long, int) + 518\r\n    5   io.Realm.Realm                \t0x0000000105e8dafd realm::Group::init_from_ref(unsigned long) + 749\r\n    6   io.Realm.Realm                \t0x0000000105e9b326 realm::SharedGroup::begin_read(realm::SharedGroup::VersionID) + 182\r\n    7   io.Realm.Realm                \t0x0000000105dcb8d1 -[RLMRealm getOrCreateGroup] + 65\r\n    8   io.Realm.Realm                \t0x0000000105da511e RLMTableForObjectClass(RLMRealm*, NSString*) + 106\r\n    9   io.Realm.Realm                \t0x0000000105da5af6 -[RLMObjectSchema table] + 61\r\n    10  io.Realm.Realm                \t0x0000000105daae21 RLMGetObjects + 182\r\n    11  io.Realm.RealmSwift           \t0x00000001057ebf2b _TFC10RealmSwift5Realm7objectsfS0_U__FMQ_GCS_7ResultsQ__ + 139\r\n    12  de.freenet.Sync               \t0x000000010531c10a _TFFFC4Sync24RealmFileSyncStatusStoreg14statusProducerGV13ReactiveCocoa14SignalProducerGVSs10DictionaryCSo5NSURLOS_14FileSyncStatus_OS1_7NoError_U_FTGVSs6SinkOfGOS1_5EventGS3_S4_S5__S6___CS1_19CompositeDisposable_T_U_FTO10RealmSwift12NotificationCS10_5Realm_T_ + 842 (FileSyncStatusStore.swift:100)\r\n    13  io.Realm.RealmSwift           \t0x00000001057f6402 _TFF10RealmSwift41rlmNotificationBlockFromNotificationBlockFFT12notificationOS_12Notification5realmCS_5Realm_T_bTGSQSS_GSQCSo8RLMRealm__T_U_FTGSQSS_GSQS2___T_ + 530\r\n    14  io.Realm.RealmSwift           \t0x00000001057f3f6d _TPA__TFF10RealmSwift41rlmNotificationBlockFromNotificationBlockFFT12notificationOS_12Notification5realmCS_5Realm_T_bTGSQSS_GSQCSo8RLMRealm__T_U_FTGSQSS_GSQS2___T_ + 93\r\n    15  io.Realm.Realm                \t0x0000000105dcd679 -[RLMRealm sendNotifications:] + 317\r\n    16  io.Realm.Realm                \t0x0000000105dce08f -[RLMRealm handleExternalCommit] + 150\r\n    17  io.Realm.Realm                \t0x0000000105d933a6 -[RLMNotifier listen]::$_0::__invoke(void*) + 38\r\n    18  com.apple.CoreFoundation      \t0x00007fff84864a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n    19  com.apple.CoreFoundation      \t0x00007fff84856b8d __CFRunLoopDoSources0 + 269\r\n    20  com.apple.CoreFoundation      \t0x00007fff848561bf __CFRunLoopRun + 927\r\n    21  com.apple.CoreFoundation      \t0x00007fff84855bd8 CFRunLoopRunSpecific + 296\r\n    22  com.apple.HIToolbox           \t0x00007fff8aa7c56f RunCurrentEventLoopInMode + 235\r\n    23  com.apple.HIToolbox           \t0x00007fff8aa7c2ea ReceiveNextEventCommon + 431\r\n    24  com.apple.HIToolbox           \t0x00007fff8aa7c12b _BlockUntilNextEventMatchingListInModeWithFilter + 71\r\n    25  com.apple.AppKit              \t0x00007fff885308ab _DPSNextEvent + 978\r\n    26  com.apple.AppKit              \t0x00007fff8852fe58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346\r\n    27  com.apple.AppKit              \t0x00007fff88525af3 -[NSApplication run] + 594\r\n    28  com.apple.AppKit              \t0x00007fff884a2244 NSApplicationMain + 1832\r\n    29  libxpc.dylib                  \t0x00007fff8d7f5958 _xpc_objc_main + 793\r\n    30  libxpc.dylib                  \t0x00007fff8d7f7060 xpc_main + 490\r\n    31  com.apple.Foundation          \t0x00007fff8e07af0a -[NSXPCListener resume] + 163\r\n    32  com.apple.pluginkit.framework \t0x00007fff84c89476 -[PKService run] + 493\r\n    33  com.apple.pluginkit.framework \t0x00007fff84c89157 +[PKService main] + 55\r\n    34  com.apple.pluginkit.framework \t0x00007fff84c894b8 +[PKService _defaultRun:arguments:] + 17\r\n    35  libextension.dylib            \t0x00007fff8febf3f3 NSExtensionMain + 51\r\n    36  libdyld.dylib                 \t0x00007fff8dace5c9 start + 1\r\n\r\n\r\nThe code in line 100 of FileSyncStatusStore.swift is:\r\n\r\n    let statusObjects = realm.objects(FileStatus).filter(\"filePath in %@\", paths)\r\n\r\nWhat could we do wrong here?"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/129546501","html_url":"https://github.com/realm/realm-cocoa/issues/2311#issuecomment-129546501","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2311","id":129546501,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T17:47:09Z","updated_at":"2015-08-10T17:47:09Z","body":"I'm going to close this issue out for now, since we were unable to reproduce the issue with the project you sent us. If there are any other tips you might have for reproducing it, we'll reopen. Thanks so much for bearing with us!"}}