-
Notifications
You must be signed in to change notification settings - Fork 152
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
My app crashes when scene phase is changing from background to active #6536
Comments
Hello, thanks for reporting this! #6531 looks similar to this. It might be the same cause. For now it's a bit unclear what causes this. If you can provide some details about your app or some code snippets for repro we'd be grateful! Thanks. |
@itamargilvybe Hi - two quick questions: 1) Is the realm file encrypted? and 2) Is this happening in a multi-process or single-process scenario ? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Related to #6399 |
Also matching #6593. Allocator crash while updating history compartment. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
@itamargilvybe is this still an issue for you? You say that it happens whenever the app is in the background for more than a couple of minutes and that it happens i development. This suggests that the issue is somewhat reproducible. It that correct? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
SDK and version
SDK : ? (Cocoa, Java, etc)
Version: ?
Observations
Whenever the app is in the background for longer than a couple minutes
Dev
No
N/A
Crash log / stacktrace
/Users/my_user/Library/Developer/Xcode/DerivedData/MyApp-gbvuzjdvdwgbtcancxdqluieaupj/SourcePackages/checkouts/realm-core/src/realm/alloc_slab.cpp:531: [realm-core-13.4.1] Assertion failed: ref + size <= next->first with (ref, size, next->first, next->second, get_file_path_for_assertions()) = [8605384, 56, 8605384, 56, "/var/mobile/Containers/Data/Application/E9A6E439-3363-415F-84BF-9027C2F511CF/Documents/mongodb-realm/dev-nafjk/640f925a7b9822764c3247fa/flx_sync_default.realm"]
0 User 0x00000001058265f0 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1 User 0x0000000105826844 _ZN5realm4util19terminate_with_infoEPKcS2_lS2_OSt16initializer_listINS0_9PrintableEE + 276
2 User 0x0000000104feccfc ZN5realm4util19terminate_with_infoIJRmS2_RKmS2_NSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEvPKciSD_SD_DpOT + 240
3 User 0x0000000104fec414 _ZN5realm9SlabAlloc7do_freeEmPc + 1436
4 User 0x0000000105010e78 _ZN5realm9Allocator5free_EmPKc + 180
5 User 0x000000010519a9d4 _ZN5realm4Node16do_copy_on_writeEm + 332
6 User 0x0000000105007e28 _ZN5realm4Node13copy_on_writeEv + 48
7 User 0x00000001050090fc _ZN5realm5Array3setEmx + 224
8 User 0x0000000104d00e54 _ZN5realm5Array16update_child_refEmm + 40
9 User 0x0000000105031998 _ZN5realm4Node13update_parentEv + 72
10 User 0x000000010519a9c0 _ZN5realm4Node16do_copy_on_writeEm + 312
11 User 0x0000000105007e28 _ZN5realm4Node13copy_on_writeEv + 48
12 User 0x00000001050090fc _ZN5realm5Array3setEmx + 224
13 User 0x0000000104d00e54 _ZN5realm5Array16update_child_refEmm + 40
14 User 0x0000000105031998 _ZN5realm4Node13update_parentEv + 72
15 User 0x000000010519a9c0 _ZN5realm4Node16do_copy_on_writeEm + 312
16 User 0x000000010519a684 _ZN5realm4Node5allocEmm + 212
17 User 0x0000000105008ef4 _ZN5realm5Array5allocEmm + 240
18 User 0x00000001050094d4 _ZN5realm5Array6insertEmx + 360
19 User 0x00000001050388c0 _ZN5realm13ArrayBigBlobs6insertEmNS_10BinaryDataEb + 428
20 User 0x000000010503576c _ZN5realm11ArrayBinary6insertEmNS_10BinaryDataE + 168
21 User 0x0000000105108f18 _ZZN5realm9BPlusTreeINS_10BinaryDataEE6insertEmS1_ENKUlPNS_13BPlusTreeNodeEmE_clES4_m + 68
22 User 0x0000000105108ec8 _ZZN5realm4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEC1IRZNS_9BPlusTreeINS_10BinaryDataEE6insertEmS8_EUlS3_mE_EEOT_ENKUlPvS3_mE_clESE_S3_m + 44
23 User 0x0000000105108e90 _ZZN5realm4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEC1IRZNS_9BPlusTreeINS_10BinaryDataEE6insertEmS8_EUlS3_mE_EEOT_ENUlPvS3_mE_8__invokeESE_S3_m + 44
24 User 0x0000000105059fec _ZNK5realm4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEclES3_m + 48
25 User 0x0000000105059e78 _ZN5realm13BPlusTreeLeaf13bptree_insertEmRNS_13BPlusTreeNode5StateENS_4util11FunctionRefIFmPS1_mEEE + 188
26 User 0x000000010505cc7c _ZN5realm13BPlusTreeBase13bptree_insertEmNS_4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEE + 160
27 User 0x0000000105108db8 ZN5realm9BPlusTreeINS_10BinaryDataEE6insertEmS1 + 84
28 User 0x0000000105108cc4 ZN5realm9BPlusTreeINS_10BinaryDataEE3addES1 + 52
29 User 0x00000001056a8f3c ZN5realm4sync13ClientHistory13add_changesetENS_10BinaryDataES2 + 132
30 User 0x00000001056a8eac _ZN5realm4sync17ClientReplication17prepare_changesetEPKcmy + 172
31 User 0x0000000105586274 _ZN5realm11Replication14prepare_commitEy + 96
32 User 0x000000010509ea44 _ZN5realm2DB9do_commitERNS_11TransactionEb + 308
33 User 0x00000001057c98bc _ZN5realm11Transaction27commit_and_continue_as_readEb + 264
34 User 0x00000001052714dc ZN5realm5_impl16RealmCoordinator12commit_writeERNS_5RealmEb + 216
35 User 0x00000001053b02b4 ZN5realm5Realm24async_commit_transactionEONS_4util14UniqueFunctionIFvSt13exception_ptrEEEb + 756
36 User 0x0000000104f64920 -[RLMRealm commitAsyncWriteTransaction:allowGrouping:] + 144
37 User 0x000000010624b61c $s10RealmSwift0A0V16commitAsyncWrite13allowGrouping_s6UInt32VSb_ys5Error_pSgcSgtF + 428
38 User 0x000000010624b3d4 $s10RealmSwift0A0V10writeAsync_10onCompletes6UInt32Vyyc_ys5Error_pSgcSgtFyycfU + 132
39 User 0x000000010624b7a8 $s10RealmSwift0A0V15beginAsyncWriteys6UInt32VyycFyycfU + 64
40 User 0x000000010617f17c $sIeg_IeyB_TR + 48
41 User 0x0000000104f72adc ZN5realm4util14UniqueFunctionIFvvEE17call_regular_voidIU8__strongU13block_pointerS2_EEvNSt3__117integral_constantIbLb1EEERT + 32
42 User 0x0000000104f72a40 _ZN5realm4util14UniqueFunctionIFvvEE12SpecificImplIU8__strongU13block_pointerS2_E4callEv + 28
43 User 0x000000010509cd98 _ZNK5realm4util14UniqueFunctionIFvvEEclEv + 100
44 User 0x00000001053af34c _ZN5realm5Realm10run_writesEv + 304
45 User 0x0000000105299380 ZN5realm5Realm8Internal10run_writesERS0 + 24
46 User 0x000000010529935c _ZZZN5realm5_impl16RealmCoordinator25async_request_write_mutexERNS_5RealmEEN3$_8clEvENKUlvE_clEv + 28
47 User 0x0000000105299334 _ZN5realm4util14UniqueFunctionIFvvEE17call_regular_voidIZZNS_5_impl16RealmCoordinator25async_request_write_mutexERNS_5RealmEEN3$8clEvEUlvE_EEvNSt3__117integral_constantIbLb1EEERT + 24
48 User 0x0000000105299294 _ZN5realm4util14UniqueFunctionIFvvEE12SpecificImplIZZNS_5_impl16RealmCoordinator25async_request_write_mutexERNS_5RealmEEN3$_8clEvEUlvE_E4callEv + 28
49 User 0x000000010509cd98 _ZNK5realm4util14UniqueFunctionIFvvEEclEv + 100
50 User 0x00000001054a8668 ___ZN5realm4util22DispatchQueueScheduler6invokeEONS0_14UniqueFunctionIFvvEEE_block_invoke + 52
51 libdispatch.dylib 0x000000010c07853c _dispatch_call_block_and_release + 32
52 libdispatch.dylib 0x000000010c079ff0 _dispatch_client_callout + 20
53 libdispatch.dylib 0x000000010c0820a0 _dispatch_lane_serial_drain + 988
54 libdispatch.dylib 0x000000010c082dc8 _dispatch_lane_invoke + 420
55 libdispatch.dylib 0x000000010c08fcac _dispatch_workloop_worker_thread + 740
56 libsystem_pthread.dylib 0x0000000217bb4df8 _pthread_wqthread + 288
57 libsystem_pthread.dylib 0x0000000217bb4b98 start_wqthread + 8!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose2023-04-25 11:16:05.318798+0300 User[96409:16033344] /Users/kama/Library/Developer/Xcode/DerivedData/VybeTogether-gbvuzjdvdwgbtcancxdqluieaupj/SourcePackages/checkouts/realm-core/src/realm/alloc_slab.cpp:531: [realm-core-13.4.1] Assertion failed: ref + size <= next->first with (ref, size, next->first, next->second, get_file_path_for_assertions()) = [8605384, 56, 8605384, 56, "/var/mobile/Containers/Data/Application/E9A6E439-3363-415F-84BF-9027C2F511CF/Documents/mongodb-realm/dev-nafjk/640f925a7b9822764c3247fa/flx_sync_default.realm"]
0 User 0x00000001058265f0 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1 User 0x0000000105826844 _ZN5realm4util19terminate_with_infoEPKcS2_lS2_OSt16initializer_listINS0_9PrintableEE + 276
2 User 0x0000000104feccfc ZN5realm4util19terminate_with_infoIJRmS2_RKmS2_NSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEvPKciSD_SD_DpOT + 240
3 User 0x0000000104fec414 _ZN5realm9SlabAlloc7do_freeEmPc + 1436
4 User 0x0000000105010e78 _ZN5realm9Allocator5free_EmPKc + 180
5 User 0x000000010519a9d4 _ZN5realm4Node16do_copy_on_writeEm + 332
6 User 0x0000000105007e28 _ZN5realm4Node13copy_on_writeEv + 48
7 User 0x00000001050090fc _ZN5realm5Array3setEmx + 224
8 User 0x0000000104d00e54 _ZN5realm5Array16update_child_refEmm + 40
9 User 0x0000000105031998 _ZN5realm4Node13update_parentEv + 72
10 User 0x000000010519a9c0 _ZN5realm4Node16do_copy_on_writeEm + 312
11 User 0x0000000105007e28 _ZN5realm4Node13copy_on_writeEv + 48
12 User 0x00000001050090fc _ZN5realm5Array3setEmx + 224
13 User 0x0000000104d00e54 _ZN5realm5Array16update_child_refEmm + 40
14 User 0x0000000105031998 _ZN5realm4Node13update_parentEv + 72
15 User 0x000000010519a9c0 _ZN5realm4Node16do_copy_on_writeEm + 312
16 User 0x000000010519a684 _ZN5realm4Node5allocEmm + 212
17 User 0x0000000105008ef4 _ZN5realm5Array5allocEmm + 240
18 User 0x00000001050094d4 _ZN5realm5Array6insertEmx + 360
19 User 0x00000001050388c0 _ZN5realm13ArrayBigBlobs6insertEmNS_10BinaryDataEb + 428
20 User 0x000000010503576c _ZN5realm11ArrayBinary6insertEmNS_10BinaryDataE + 168
21 User 0x0000000105108f18 _ZZN5realm9BPlusTreeINS_10BinaryDataEE6insertEmS1_ENKUlPNS_13BPlusTreeNodeEmE_clES4_m + 68
22 User 0x0000000105108ec8 _ZZN5realm4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEC1IRZNS_9BPlusTreeINS_10BinaryDataEE6insertEmS8_EUlS3_mE_EEOT_ENKUlPvS3_mE_clESE_S3_m + 44
23 User 0x0000000105108e90 _ZZN5realm4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEC1IRZNS_9BPlusTreeINS_10BinaryDataEE6insertEmS8_EUlS3_mE_EEOT_ENUlPvS3_mE_8__invokeESE_S3_m + 44
24 User 0x0000000105059fec _ZNK5realm4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEclES3_m + 48
25 User 0x0000000105059e78 _ZN5realm13BPlusTreeLeaf13bptree_insertEmRNS_13BPlusTreeNode5StateENS_4util11FunctionRefIFmPS1_mEEE + 188
26 User 0x000000010505cc7c _ZN5realm13BPlusTreeBase13bptree_insertEmNS_4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEE + 160
27 User 0x0000000105108db8 ZN5realm9BPlusTreeINS_10BinaryDataEE6insertEmS1 + 84
28 User 0x0000000105108cc4 ZN5realm9BPlusTreeINS_10BinaryDataEE3addES1 + 52
29 User 0x00000001056a8f3c ZN5realm4sync13ClientHistory13add_changesetENS_10BinaryDataES2 + 132
30 User 0x00000001056a8eac _ZN5realm4sync17ClientReplication17prepare_changesetEPKcmy + 172
31 User 0x0000000105586274 _ZN5realm11Replication14prepare_commitEy + 96
32 User 0x000000010509ea44 _ZN5realm2DB9do_commitERNS_11TransactionEb + 308
33 User 0x00000001057c98bc _ZN5realm11Transaction27commit_and_continue_as_readEb + 264
34 User 0x00000001052714dc ZN5realm5_impl16RealmCoordinator12commit_writeERNS_5RealmEb + 216
35 User 0x00000001053b02b4 ZN5realm5Realm24async_commit_transactionEONS_4util14UniqueFunctionIFvSt13exception_ptrEEEb + 756
36 User 0x0000000104f64920 -[RLMRealm commitAsyncWriteTransaction:allowGrouping:] + 144
37 User 0x000000010624b61c $s10RealmSwift0A0V16commitAsyncWrite13allowGrouping_s6UInt32VSb_ys5Error_pSgcSgtF + 428
38 User 0x000000010624b3d4 $s10RealmSwift0A0V10writeAsync_10onCompletes6UInt32Vyyc_ys5Error_pSgcSgtFyycfU + 132
39 User 0x000000010624b7a8 $s10RealmSwift0A0V15beginAsyncWriteys6UInt32VyycFyycfU + 64
40 User 0x000000010617f17c $sIeg_IeyB_TR + 48
41 User 0x0000000104f72adc ZN5realm4util14UniqueFunctionIFvvEE17call_regular_voidIU8__strongU13block_pointerS2_EEvNSt3__117integral_constantIbLb1EEERT + 32
42 User 0x0000000104f72a40 _ZN5realm4util14UniqueFunctionIFvvEE12SpecificImplIU8__strongU13block_pointerS2_E4callEv + 28
43 User 0x000000010509cd98 _ZNK5realm4util14UniqueFunctionIFvvEEclEv + 100
44 User 0x00000001053af34c _ZN5realm5Realm10run_writesEv + 304
45 User 0x0000000105299380 ZN5realm5Realm8Internal10run_writesERS0 + 24
46 User 0x000000010529935c _ZZZN5realm5_impl16RealmCoordinator25async_request_write_mutexERNS_5RealmEEN3$_8clEvENKUlvE_clEv + 28
47 User 0x0000000105299334 _ZN5realm4util14UniqueFunctionIFvvEE17call_regular_voidIZZNS_5_impl16RealmCoordinator25async_request_write_mutexERNS_5RealmEEN3$8clEvEUlvE_EEvNSt3__117integral_constantIbLb1EEERT + 24
48 User 0x0000000105299294 _ZN5realm4util14UniqueFunctionIFvvEE12SpecificImplIZZNS_5_impl16RealmCoordinator25async_request_write_mutexERNS_5RealmEEN3$_8clEvEUlvE_E4callEv + 28
49 User 0x000000010509cd98 _ZNK5realm4util14UniqueFunctionIFvvEEclEv + 100
50 User 0x00000001054a8668 ___ZN5realm4util22DispatchQueueScheduler6invokeEONS0_14UniqueFunctionIFvvEEE_block_invoke + 52
51 libdispatch.dylib 0x000000010c07853c _dispatch_call_block_and_release + 32
52 libdispatch.dylib 0x000000010c079ff0 _dispatch_client_callout + 20
53 libdispatch.dylib 0x000000010c0820a0 _dispatch_lane_serial_drain + 988
54 libdispatch.dylib 0x000000010c082dc8 _dispatch_lane_invoke + 420
55 libdispatch.dylib 0x000000010c08fcac _dispatch_workloop_worker_thread + 740
56 libsystem_pthread.dylib 0x0000000217bb4df8 _pthread_wqthread + 288
57 libsystem_pthread.dylib 0x0000000217bb4b98 start_wqthread + 8!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose
(Recorded stack frame)
Steps & Code to Reproduce
The text was updated successfully, but these errors were encountered: