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

Assertion failure in Group::attach with core 2.3.0 #2441

Closed
jpsim opened this issue Feb 10, 2017 · 7 comments
Closed

Assertion failure in Group::attach with core 2.3.0 #2441

jpsim opened this issue Feb 10, 2017 · 7 comments

Comments

@jpsim
Copy link
Contributor

jpsim commented Feb 10, 2017

Reported by cocoa user: realm/realm-swift#4476

Incident Identifier: 730E4AE6-0217-4518-8C9A-60F1D90F071C
CrashReporter Key:   22517670-5381-424D-BD8D-FBA16F6D5788
Hardware Model:      iPhone7,2
Process:         MyApp [223]
Path:            /var/containers/Bundle/Application/F4002170-D8AD-46D1-B8D2-FA5EFBF239D0/MyApp.app/MyApp
Identifier:      com.MyApp.MyApp
Version:         2.60.01 (1086)
Code Type:       ARM-64
Parent Process:  ??? [1]

Date/Time:       2016-12-21T18:49:03Z
Launch Time:     2016-12-21T18:49:02Z
OS Version:      iPhone OS 10.1.1 (14B100)
Report Version:  104

Exception Type:  SIGABRT
Exception Codes: #0 at 0x18a902014
Crashed Thread:  0

Thread 0 Crashed:
0   libsystem_kernel.dylib               0x000000018a902014 __pthread_kill + 8
1   libsystem_pthread.dylib              0x000000018a9ca450 pthread_kill + 108
2   libsystem_c.dylib                    0x000000018a8763e0 abort + 136
3   Realm                                0x0000000100e8e4dc please_report_this_error_to_help_at_realm_dot_io + 8
4   Realm                                0x0000000100e8e79c realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 228
5   Realm                                0x0000000100e8e928 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 364
6   Realm                                0x0000000100d5519c void realm::util::terminate<unsigned long long, unsigned long long>(char const*, char const*, long, unsigned long long, unsigned long long) (terminate.hpp:56)
7   Realm                                0x0000000100f37a80 realm::Group::attach(unsigned long, bool) + 612
8   Realm                                0x0000000100f429b8 realm::SharedGroup::do_begin_read(realm::VersionID, bool) + 72
9   Realm                                0x0000000100f41d70 realm::SharedGroup::begin_read(realm::VersionID) + 32
10  Realm                                0x0000000100e167e8 realm::Realm::read_group() (shared_realm.cpp:228)
11  Realm                                0x0000000100e16608 realm::Realm::init(std::__1::shared_ptr<realm::_impl::RealmCoordinator>) (shared_realm.cpp:93)
12  Realm                                0x0000000100d6d08c realm::_impl::RealmCoordinator::get_realm(realm::Realm::Config) (realm_coordinator.cpp:176)
13  Realm                                0x0000000100e17a00 realm::Realm::get_shared_realm(realm::Realm::Config) (shared_realm.cpp:244)
14  Realm                                0x0000000100dfd144 +[RLMRealm realmWithConfiguration:error:] (RLMRealm.mm:293)
15  RealmSwift                           0x00000001012ecbb0 RealmSwift.Realm.__allocating_init (configuration : RealmSwift.Realm.Configuration) throws -> RealmSwift.Realm (Realm.swift:0)
16  MyApp                                0x00000001004ac36c MyApp.Manager.(getRealm in _53F2332CE3FD43C75AF4C0E7DDDA9E94) () -> RealmSwift.Realm? (Manager.swift:707)
17  MyApp                                0x00000001004b4de8 function signature specialization <Arg[0] = Owned To Guaranteed> of Manager.fetchAll (__ObjC.NSDate) -> () (Manager.swift:138)
18  MyApp                                0x00000001004a97b4 @objc MyApp.Manager.fetchAll (__ObjC.NSDate) -> () (Manager.swift:0)
19  MyApp                                0x0000000100217bc0 -[Summary checkAndUpdateBrandsFromDictionary:] (Summary.m:422)
20  MyApp                                0x00000001002173a8 -[Summary fetchedUserStateSummary:error:backgroundFetchCompletionHandler:] (Summary.m:264)
21  MyApp                                0x0000000100216fb0 __85-[Summary refreshWithBackgroundFetchCompletionHandler:isEnteringForeground:]_block_invoke (Summary.m:206)
22  MyApp                                0x00000001000d8590 APICompletionBlock_block_invoke_5 (APIRequest.m:320)
23  libdispatch.dylib                    0x000000018a7bd200 _dispatch_call_block_and_release + 20
24  libdispatch.dylib                    0x000000018a7bd1c0 _dispatch_client_callout + 12
25  libdispatch.dylib                    0x000000018a7c1d6c _dispatch_main_queue_callback_4CF + 996
26  CoreFoundation                       0x000000018b8dff2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
27  CoreFoundation                       0x000000018b8ddb18 __CFRunLoopRun + 1656
28  CoreFoundation                       0x000000018b80c048 CFRunLoopRunSpecific + 440
29  GraphicsServices                     0x000000018d292198 GSEventRunModal + 176
30  UIKit                                0x00000001917f82fc -[UIApplication _run] + 680
31  UIKit                                0x00000001917f3034 UIApplicationMain + 204
32  MyApp                                0x00000001000dd0a0 main (main.m:14)
33  libdyld.dylib                        0x000000018a7f05b8 start + 0
@stel
Copy link
Contributor

stel commented Feb 10, 2017

It seems like there is the same issue in Browser I showed to @rrrlasse .

@rrrlasse
Copy link
Contributor

I can't get anywhere with this bug without .realm file or reproduction.. @stel did you ever get a .realm file?

@stel
Copy link
Contributor

stel commented Feb 17, 2017

@rrrlasse no, I wasn't able to reproduce that

@nquirl-ps
Copy link

I'm experiencing a similar crash that is affecting around 4% of our users. It appears to occur more on lower end devices such as iPhone SE but also occurs on most other devices. I have not been able to reproduce the crash locally but we're seeing it a lot through Crashlytics

Realm 2.9.1

Date: 2017-08-14T13:50:00Z

OS Version: 10.3.3 (14G60)

Device: iPhone 7 Plus

RAM Free: 39.6%

Disk Free: 70%

#0. Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x184b51014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x184c1b264 pthread_kill + 112
2 libsystem_c.dylib 0x184ac59c4 abort + 140
3 Realm 0x100be0328 realm::util::terminate(char const*, char const*, long) + 10
4 Realm 0x100be080c hidden#10793 + 776
5 libsystem_pthread.dylib 0x184c1b264 pthread_kill + 112
6 Realm 0x100be0bbc realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_listrealm::util::Printable&&) + 452
7 Realm 0x100b733ac void realm::util::terminate_with_info<unsigned long&, unsigned long&>(char const*, int, char const*, char const*, unsigned long&&&, unsigned long&&&) + 62
8 Realm 0x100c8bd1c realm::Group::attach(unsigned long, bool) + 172
9 Realm 0x100c96cfc realm::SharedGroup::do_begin_read(realm::VersionID, bool) + 76
10 Realm 0x100c960c8 realm::SharedGroup::begin_read(realm::VersionID) + 36
11 Realm 0x100b4579c realm::Realm::begin_read(realm::VersionID) (_hidden#7994:213)
12 Realm 0x100b44aec realm::Realm::read_group() (_hidden#7994:202)
13 Realm 0x100b44168 realm::Realm::Realm(realm::Realm::Config, std::__1::shared_ptrrealm::_impl::RealmCoordinator) (_hidden#82:4045)
14 Realm 0x100a910d4 hidden#1858 (_hidden#82:4604)
15 Realm 0x100a90f5c hidden#1853 (_hidden#82:4604)
16 Realm 0x100a8d148 realm::_impl::RealmCoordinator::get_realm(realm::Realm::Config) (_hidden#82:4326)
17 Realm 0x100b45a9c realm::Realm::get_shared_realm(realm::Realm::Config) (_hidden#675:148)
18 Realm 0x100b226f8 hidden#6436 (_hidden#6540:365)
19 Realm 0x100b215cc hidden#6421 (_hidden#6540:173)
20 TPS Protect 0x1000c77f0 hidden#6149 (_hidden#6363:63)
21 TPS Protect 0x1000c271c hidden#6047 (_hidden#6363)
22 UIKit 0x18bcf9e48 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 380
23 UIKit 0x18bf0637c -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3452
24 UIKit 0x18bf0be24 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1684
25 UIKit 0x18bf208b0 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3147 + 48
26 UIKit 0x18bf090b8 -[UIApplication workspaceDidEndTransaction:] + 168
27 FrontBoardServices 0x187700884 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 36
28 FrontBoardServices 0x1877006f0 -[FBSSerialQueue _performNext] + 176
29 FrontBoardServices 0x187700aa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
30 CoreFoundation 0x185b0542c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
31 CoreFoundation 0x185b04d9c __CFRunLoopDoSources0 + 540
32 CoreFoundation 0x185b029a8 __CFRunLoopRun + 744
33 CoreFoundation 0x185a32da4 CFRunLoopRunSpecific + 424
34 UIKit 0x18bcf2fc8 -[UIApplication _run] + 652
35 UIKit 0x18bcedc9c UIApplicationMain + 208
36 TPS Protect 0x100082ae4 main (_hidden#1859:22)
37 libdyld.dylib 0x184a4159c start + 4

@finnschiermer
Copy link
Contributor

@nquirl-ps Is there anything you can tell us which could help us reproduce the problem?

@nquirl-ps
Copy link

@finnschiermer - One of our internal testers may have found some information to reproduce this. I'm collecting the info and will send it along once I can get it

@bmunkholm
Copy link
Contributor

old.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants