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

[iOS Swift] Crash of other process detected, session restart required #5969

Closed
Ramesik opened this issue Oct 30, 2018 · 1 comment
Closed

Comments

@Ramesik
Copy link

Ramesik commented Oct 30, 2018

Bugs: On realm write i got RLMException, reason: Crash of other process detected, session restart required

Actual Results

Stack trace:

Thread 1 Queue : com.apple.main-thread (serial)
#0 0x0000000101ea6738 in void realm::SharedGroup::promote_to_write<(anonymous namespace)::KVOTransactLogObserver>((anonymous namespace)::KVOTransactLogObserver*) group_shared.hpp:983
#1 0x0000000101ea6650 in void realm::_impl::SharedGroupFriend::promote_to_write<(anonymous namespace)::KVOTransactLogObserver>(realm::SharedGroup&, (anonymous namespace)::KVOTransactLogObserver*) group_shared.hpp:1146
#2 0x0000000101ea6624 in void realm::LangBindHelper::promote_to_write<(anonymous namespace)::KVOTransactLogObserver>(realm::SharedGroup&, (anonymous namespace)::KVOTransactLogObserver&&) lang_bind_helper.hpp:347
#3 0x0000000101ea63c0 in auto realm::_impl::transaction::begin(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_deleterealm::SharedGroup > const&, realm::BindingContext*, realm::_impl::NotifierPackage&)::$_2::operator()<(anonymous namespace)::KVOTransactLogObserver>((anonymous namespace)::KVOTransactLogObserver&&) const transact_log_handler.cpp:839
#4 0x0000000101e85614 in void (anonymous namespace)::advance_with_notifications<realm::_impl::transaction::begin(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_deleterealm::SharedGroup > const&, realm::BindingContext*, realm::_impl::NotifierPackage&)::$_2>(realm::BindingContext*, std::__1::unique_ptr<realm::SharedGroup, std::__1::default_deleterealm::SharedGroup > const&, realm::_impl::transaction::begin(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_deleterealm::SharedGroup > const&, realm::BindingContext*, realm::_impl::NotifierPackage&)::$_2&&, realm::_impl::NotifierPackage&) transact_log_handler.cpp:800
#5 0x0000000101e8501c in realm::_impl::transaction::begin(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_deleterealm::SharedGroup > const&, realm::BindingContext*, realm::impl::NotifierPackage&) transact_log_handler.cpp:838
#6 0x0000000101be9158 in realm::impl::RealmCoordinator::promote_to_write(realm::Realm&) realm_coordinator.cpp:855
#7 0x0000000101dff8e0 in realm::Realm::begin_transaction() shared_realm.cpp:662
#8 0x0000000101d7f018 in ::-RLMRealm beginWriteTransaction RLMRealm.mm:572
#9 0x00000001026cbf64 in Realm.beginWrite() Realm.swift:184
#10 0x00000001026cbddc in Realm.write(
:) Realm.swift:153
#11 0x00000001010009a8 in PreviewFlow.add(image:croppedImage:rectangle:identifier:completion:) PreviewFlow.swift:115
#12 0x0000000100fbcd84 in CameraViewController.photoOutput(
:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:) CameraViewController.swift:951
#13 0x0000000100fbbc5c in closure #1 in CameraViewController.captureImage() CameraViewController.swift:781
#14 0x0000000100fbbd04 in thunk for @escaping @callee_guaranteed (@guaranteed CMSampleBufferRef?, @guaranteed Error?) -> () ()
#15 0x00000001aef151dc in -[AVCaptureStillImageOutput handleNotificationForRequest:withPayload:imageIsEV0:] ()
#16 0x00000001aef15a74 in -[AVCaptureStillImageOutput handleNotification:payload:] ()
#17 0x00000001a8cfc888 in CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK ()
#18 0x00000001a8cfc16c in __CFRunLoopDoBlocks ()
#19 0x00000001a8cf7470 in __CFRunLoopRun ()
#20 0x00000001a8cf6844 in CFRunLoopRunSpecific ()
#21 0x00000001aafa5be8 in GSEventRunModal ()
#22 0x00000001d664431c in UIApplicationMain ()
#23 0x0000000101006c78 in main
#24 0x00000001a87ac020 in start ()

KVOTransactLogObserver

obs (anonymous namespace)::KVOTransactLogObserver * 0x16ee61608 0x000000016ee61608
(anonymous namespace)::TransactLogObserver (anonymous namespace)::TransactLogObserver
(anonymous namespace)::TransactLogValidationMixin (anonymous namespace)::TransactLogValidationMixin
m_current_table size_t 0
m_info realm::_impl::TransactionChangeInfo & 0x000000016ee61638
table_modifications_needed std::__1::vector<bool, std::__1::allocator > size=0
table_moves_needed std::__1::vector<bool, std::__1::allocator > size=0
lists std::__1::vector<realm::_impl::ListChangeInfo, std::__1::allocatorrealm::_impl::ListChangeInfo > size=0
tables std::__1::vector<realm::_impl::CollectionChangeBuilder, std::__1::allocatorrealm::_impl::CollectionChangeBuilder > size=0
column_indices std::__1::vector<std::__1::vector<unsigned long, std::__1::allocator >, std::__1::allocator<std::__1::vector<unsigned long, std::__1::allocator > > > size=0
table_indices std::__1::vector<unsigned long, std::__1::allocator > size=0
track_all bool false
schema_changed bool false
m_active_list realm::_impl::CollectionChangeBuilder * NULL 0x0000000000000000
m_active_table realm::_impl::CollectionChangeBuilder * NULL 0x0000000000000000
m_active_descriptor realm::_impl::CollectionChangeBuilder * NULL 0x0000000000000000
m_need_move_info bool false
m_is_top_level_table bool true
m_adapter (anonymous namespace)::KVOAdapter
realm::_impl::TransactionChangeInfo realm::_impl::TransactionChangeInfo
m_context (anonymous namespace)::RLMNotificationHelper * 0x2824b1d20 0x00000002824b1d20
m_observers std::__1::vector<ObserverState, std::__1::allocator > & size=0 0x000000016ee617d0
m_invalidated std::__1::vector<void *, std::__1::allocator<void *> > size=0
m_lists std::__1::vector<(anonymous namespace)::KVOAdapter::ListInfo, std::__1::allocator<(anonymous namespace)::KVOAdapter::ListInfo> > size=0
m_version realm::VersionID
m_notifiers realm::_impl::NotifierPackage & 0x000000016ee61b60
m_version realm::util::Optionalrealm::VersionID
realm::_impl::OptionalStorage<realm::VersionID, true> realm::_impl::OptionalStorage<realm::VersionID, true>
realm::_impl::OptionalStorage<realm::VersionID, true>::(anonymous union)
m_value realm::VersionID
version realm::VersionID::version_type 6155541504
index uint_fast32_t 1860574440
m_null_state char '\0'
m_engaged bool false
m_notifiers std::__1::vector<std::__1::shared_ptrrealm::_impl::CollectionNotifier, std::__1::allocator<std::__1::shared_ptrrealm::_impl::CollectionNotifier > > size=1
[0] std::__1::shared_ptrrealm::_impl::CollectionNotifier std::__1::shared_ptrrealm::_impl::CollectionNotifier::element_type @ 0x000000011fe46078 strong=5 weak=1
_ptr realm::_impl::ResultsNotifier * 0x11fe46078 0x000000011fe46078
realm::_impl::CollectionNotifier realm::_impl::CollectionNotifier
m_target_results realm::Results * 0x11fe45e08 0x000000011fe45e08
m_query_handover std::__1::unique_ptr<Handoverrealm::Query, std::__1::default_delete<Handoverrealm::Query > >
m_query std::__1::unique_ptr<realm::Query, std::__1::default_deleterealm::Query >
m_ordering_handover HandoverPatch
m_descriptor_ordering realm::DescriptorOrdering
m_target_is_in_table_order bool true
m_tv realm::TableView
m_tv_handover std::__1::unique_ptr<Handoverrealm::TableView, std::__1::default_delete<Handoverrealm::TableView > >
m_tv_to_deliver std::__1::unique_ptr<Handoverrealm::TableView, std::__1::default_delete<Handoverrealm::TableView > >
m_last_seen_version uint_fast64_t 0
m_previous_rows std::__1::vector<unsigned long, std::__1::allocator > size=67
m_changes realm::_impl::CollectionChangeBuilder
m_info realm::_impl::TransactionChangeInfo * 0x2815a8dc0 0x00000002815a8dc0
m_coordinator realm::_impl::RealmCoordinator * 0x11fd47688 0x000000011fd47688
m_error std::exception_ptr
m_sg realm::SharedGroup & 0x00000001200c2e00

SharedGroup

(realm::SharedGroup &) sg = 0x00000001200c2e00: {
m_free_space = 0
m_used_space = 0
m_group = {
m_alloc = {
realm::Allocator = {
m_baseline = 114688
m_replication = 0x0000000281396470
m_debug_watch = 0
m_table_versioning_counter = {
std::__1::__atomic_base<unsigned long long, true> = {
std::__1::__atomic_base<unsigned long long, false> = (_a = 0)
}
}
m_latest_observed_counter = {
std::__1::__atomic_base<unsigned long long, true> = {
std::__1::__atomic_base<unsigned long long, false> = (_a = 0)
}
}
}
m_block_map = size=0 {
_tree = {
_begin_node = 0x00000001200c2e50
_pair1 = {
std::__1::__compressed_pair_elem<std::__1::__tree_end_node<std::__1::__tree_node_base<void *> *>, 0, false> = {
_value = {
_left = 0x0000000000000000
}
}
}
_pair3 = {
std::__1::__compressed_pair_elem<unsigned long, 0, false> = (_value = 0)
}
}
}
m_file_mappings = ptr = 0x2813961c8 strong=3 weak=2 {
_ptr = 0x00000002813961c8
_cntrl = 0x00000002813961b0
}
m_local_mappings = {
_ptr = {
std::__1::__compressed_pair_elem<std::__1::shared_ptr<const realm::util::File::Map > *, 0, false> = {
_value = 0x0000000000000000
}
}
}
m_num_local_mappings = 0
m_data = 0x0000000106d80000 ""
m_initial_chunk_size = 114688
m_initial_section_size = 16384
m_section_shifts = 14
m_section_bases = {
_ptr = {
std::__1::__compressed_pair_elem<unsigned long *, 0, false> = {
_value = 0x00000001200b7e00
}
}
}
m_num_section_bases = 384
m_attach_mode = attach_SharedFile
m_free_space_state = free_space_Clean
m_slabs = size=0 {
std::__1::__vector_base<realm::SlabAlloc::Slab, std::__1::allocatorrealm::SlabAlloc::Slab > = {
_begin = 0x0000000000000000
_end = 0x0000000000000000
_end_cap = {
std::__1::__compressed_pair_elem<realm::SlabAlloc::Slab *, 0, false> = {
_value = 0x0000000000000000
}
}
}
}
m_free_read_only = size=0 {
std::__1::__vector_base<realm::SlabAlloc::Chunk, std::__1::allocatorrealm::SlabAlloc::Chunk > = {
_begin = 0x0000000000000000
_end = 0x0000000000000000
_end_cap = {
std::__1::__compressed_pair_elem<realm::SlabAlloc::Chunk *, 0, false> = {
_value = 0x0000000000000000
}
}
}
}
m_debug_out = false
cache = {
[0] = (ref = 0, addr = 0x0000000000000000, version = 0)
[1] = (ref = 65536, addr = "AAAA\f", version = 7)
[2] = (ref = 2568, addr = "AAAA", version = 3)
[3] = (ref = 0, addr = 0x0000000000000000, version = 0)
[4] = (ref = 0, addr = 0x0000000000000000, version = 0)
[5] = (ref = 0, addr = 0x0000000000000000, version = 0)
[6] = (ref = 0, addr = 0x0000000000000000, version = 0)
[7] = (ref = 0, addr = 0x0000000000000000, version = 0)
[8] = (ref = 0, addr = 0x0000000000000000, version = 0)
[9] = (ref = 4376, addr = "AAAAE", version = 3)
[10] = (ref = 2560, addr = "AAAA", version = 3)
[11] = (ref = 2816, addr = "AAAAE", version = 3)
[12] = (ref = 3072, addr = "AAAAD", version = 3)
[13] = (ref = 0, addr = 0x0000000000000000, version = 0)
[14] = (ref = 0, addr = 0x0000000000000000, version = 0)
[15] = (ref = 0, addr = 0x0000000000000000, version = 0)
[16] = (ref = 63720, addr = "AAAA\x04", version = 7)
[17] = (ref = 0, addr = 0x0000000000000000, version = 0)
[18] = (ref = 2584, addr = "AAAA", version = 3)
[19] = (ref = 0, addr = 0x0000000000000000, version = 0)
[20] = (ref = 0, addr = 0x0000000000000000, version = 0)
[21] = (ref = 0, addr = 0x0000000000000000, version = 0)
[22] = (ref = 0, addr = 0x0000000000000000, version = 0)
[23] = (ref = 0, addr = 0x0000000000000000, version = 0)
[24] = (ref = 84304, addr = "AAAAF", version = 7)
[25] = (ref = 4360, addr = "AAAA\x04", version = 3)
[26] = (ref = 2576, addr = "AAAA", version = 3)
[27] = (ref = 2832, addr = "AAAA\x03", version = 3)
[28] = (ref = 3088, addr = "AAAAE", version = 3)
[29] = (ref = 0, addr = 0x0000000000000000, version = 0)
[30] = (ref = 0, addr = 0x0000000000000000, version = 0)
[31] = (ref = 0, addr = 0x0000000000000000, version = 0)
[32] = (ref = 2088, addr = "AAAAC", version = 3)
[33] = (ref = 0, addr = 0x0000000000000000, version = 0)
[34] = (ref = 544, addr = "AAAA\x06", version = 3)
[35] = (ref = 0, addr = 0x0000000000000000, version = 0)
[36] = (ref = 0, addr = 0x0000000000000000, version = 0)
[37] = (ref = 0, addr = 0x0000000000000000, version = 0)
[38] = (ref = 0, addr = 0x0000000000000000, version = 0)
[39] = (ref = 0, addr = 0x0000000000000000, version = 0)
[40] = (ref = 0, addr = 0x0000000000000000, version = 0)
[41] = (ref = 10496, addr = "AAAAF", version = 7)
[42] = (ref = 2592, addr = "AAAA@", version = 3)
[43] = (ref = 2848, addr = "AAAA\f", version = 3)
[44] = (ref = 3104, addr = "AAAA\b", version = 3)
[45] = (ref = 5432, addr = "AAAAE", version = 7)
[46] = (ref = 0, addr = 0x0000000000000000, version = 0)
[47] = (ref = 0, addr = 0x0000000000000000, version = 0)
[48] = (ref = 2104, addr = "AAAAE", version = 3)
[49] = (ref = 0, addr = 0x0000000000000000, version = 0)
[50] = (ref = 0, addr = 0x0000000000000000, version = 0)
[51] = (ref = 90704, addr = "AAAA\f", version = 7)
[52] = (ref = 0, addr = 0x0000000000000000, version = 0)
[53] = (ref = 66608, addr = "AAAA\f", version = 7)
[54] = (ref = 0, addr = 0x0000000000000000, version = 0)
[55] = (ref = 0, addr = 0x0000000000000000, version = 0)
[56] = (ref = 0, addr = 0x0000000000000000, version = 0)
[57] = (ref = 10512, addr = "AAAAF", version = 7)
[58] = (ref = 29256, addr = "AAAAE", version = 7)
[59] = (ref = 0, addr = 0x0000000000000000, version = 0)
[60] = (ref = 70952, addr = "AAAA\x11", version = 7)
[61] = (ref = 0, addr = 0x0000000000000000, version = 0)
[62] = (ref = 0, addr = 0x0000000000000000, version = 0)
[63] = (ref = 1848, addr = "AAAAC", version = 7)
[64] = (ref = 2120, addr = "AAAA\b", version = 3)
[65] = (ref = 0, addr = 0x0000000000000000, version = 0)
[66] = (ref = 92968, addr = "AAAAf", version = 7)
[67] = (ref = 2888, addr = "AAAAD", version = 3)
[68] = (ref = 3144, addr = "AAAA@", version = 3)
[69] = (ref = 0, addr = 0x0000000000000000, version = 0)
[70] = (ref = 0, addr = 0x0000000000000000, version = 0)
[71] = (ref = 0, addr = 0x0000000000000000, version = 0)
[72] = (ref = 0, addr = 0x0000000000000000, version = 0)
[73] = (ref = 0, addr = 0x0000000000000000, version = 0)
[74] = (ref = 584, addr = "AAAAe", version = 3)
[75] = (ref = 58280, addr = "AAAA\x06", version = 7)
[76] = (ref = 3136, addr = "AAAA", version = 3)
[77] = (ref = 0, addr = 0x0000000000000000, version = 0)
[78] = (ref = 0, addr = 0x0000000000000000, version = 0)
[79] = (ref = 0, addr = 0x0000000000000000, version = 0)
[80] = (ref = 2136, addr = "AAAAe", version = 3)
[81] = (ref = 0, addr = 0x0000000000000000, version = 0)
[82] = (ref = 0, addr = 0x0000000000000000, version = 0)
[83] = (ref = 848, addr = "AAAAF", version = 7)
[84] = (ref = 0, addr = 0x0000000000000000, version = 0)
[85] = (ref = 0, addr = 0x0000000000000000, version = 0)
[86] = (ref = 0, addr = 0x0000000000000000, version = 0)
[87] = (ref = 8008, addr = "AAAAF", version = 7)
[88] = (ref = 0, addr = 0x0000000000000000, version = 0)
[89] = (ref = 4424, addr = "AAAA\r", version = 3)
[90] = (ref = 2640, addr = "AAAAE", version = 3)
[91] = (ref = 0, addr = 0x0000000000000000, version = 0)
[92] = (ref = 1112, addr = "AAAAC", version = 7)
[93] = (ref = 5448, addr = "AAAA\x05", version = 7)
[94] = (ref = 0, addr = 0x0000000000000000, version = 0)
[95] = (ref = 0, addr = 0x0000000000000000, version = 0)
[96] = (ref = 2152, addr = "AAAA@", version = 3)
[97] = (ref = 352, addr = "AAAA\x02", version = 3)
[98] = (ref = 4720, addr = "AAAA\x01", version = 7)
[99] = (ref = 2920, addr = "AAAA\b", version = 3)
[100] = (ref = 0, addr = 0x0000000000000000, version = 0)
[101] = (ref = 0, addr = 0x0000000000000000, version = 0)
[102] = (ref = 0, addr = 0x0000000000000000, version = 0)
[103] = (ref = 0, addr = 0x0000000000000000, version = 0)
[104] = (ref = 0, addr = 0x0000000000000000, version = 0)
[105] = (ref = 0, addr = 0x0000000000000000, version = 0)
[106] = (ref = 2656, addr = "AAAA\x03", version = 3)
[107] = (ref = 103160, addr = "AAAA\f", version = 7)
[108] = (ref = 3168, addr = "AAAAE", version = 3)
[109] = (ref = 0, addr = 0x0000000000000000, version = 0)
[110] = (ref = 0, addr = 0x0000000000000000, version = 0)
[111] = (ref = 0, addr = 0x0000000000000000, version = 0)
[112] = (ref = 0, addr = 0x0000000000000000, version = 0)
[113] = (ref = 368, addr = "AAAA\r", version = 3)
[114] = (ref = 23080, addr = "AAAAF", version = 7)
[115] = (ref = 2936, addr = "AAAAe", version = 3)
[116] = (ref = 0, addr = 0x0000000000000000, version = 0)
[117] = (ref = 0, addr = 0x0000000000000000, version = 0)
[118] = (ref = 0, addr = 0x0000000000000000, version = 0)
[119] = (ref = 0, addr = 0x0000000000000000, version = 0)
[120] = (ref = 2160, addr = "AAAAE", version = 3)
[121] = (ref = 0, addr = 0x0000000000000000, version = 0)
[122] = (ref = 2672, addr = "AAAA\r", version = 3)
[123] = (ref = 0, addr = 0x0000000000000000, version = 0)
[124] = (ref = 0, addr = 0x0000000000000000, version = 0)
[125] = (ref = 0, addr = 0x0000000000000000, version = 0)
[126] = (ref = 0, addr = 0x0000000000000000, version = 0)
[127] = (ref = 22312, addr = "AAAAE", version = 7)
[128] = (ref = 0, addr = 0x0000000000000000, version = 0)
[129] = (ref = 4496, addr = "AAAA", version = 3)
[130] = (ref = 0, addr = 0x0000000000000000, version = 0)
[131] = (ref = 45872, addr = "AAAA\x11", version = 7)
[132] = (ref = 0, addr = 0x0000000000000000, version = 0)
[133] = (ref = 0, addr = 0x0000000000000000, version = 0)
[134] = (ref = 0, addr = 0x0000000000000000, version = 0)
[135] = (ref = 0, addr = 0x0000000000000000, version = 0)
[136] = (ref = 2176, addr = "AAAAE", version = 3)
[137] = (ref = 4504, addr = "AAAAE", version = 3)
[138] = (ref = 0, addr = 0x0000000000000000, version = 0)
[139] = (ref = 0, addr = 0x0000000000000000, version = 0)
[140] = (ref = 0, addr = 0x0000000000000000, version = 0)
[141] = (ref = 0, addr = 0x0000000000000000, version = 0)
[142] = (ref = 0, addr = 0x0000000000000000, version = 0)
[143] = (ref = 0, addr = 0x0000000000000000, version = 0)
[144] = (ref = 0, addr = 0x0000000000000000, version = 0)
[145] = (ref = 4480, addr = "AAAAE", version = 3)
[146] = (ref = 4736, addr = "AAAAE", version = 7)
[147] = (ref = 2968, addr = "AAAA@", version = 3)
[148] = (ref = 0, addr = 0x0000000000000000, version = 0)
[149] = (ref = 0, addr = 0x0000000000000000, version = 0)
[150] = (ref = 0, addr = 0x0000000000000000, version = 0)
[151] = (ref = 0, addr = 0x0000000000000000, version = 0)
[152] = (ref = 2192, addr = "AAAA\x03", version = 3)
[153] = (ref = 408, addr = "AAAA\x01", version = 3)
[154] = (ref = 0, addr = 0x0000000000000000, version = 0)
[155] = (ref = 54088, addr = "AAAA\f", version = 7)
[156] = (ref = 0, addr = 0x0000000000000000, version = 0)
[157] = (ref = 26104, addr = "AAAA\x11", version = 7)
[158] = (ref = 0, addr = 0x0000000000000000, version = 0)
[159] = (ref = 0, addr = 0x0000000000000000, version = 0)
[160] = (ref = 0, addr = 0x0000000000000000, version = 0)
[161] = (ref = 2472, addr = "AAAA\x04", version = 3)
[162] = (ref = 2728, addr = "AAAAC", version = 3)
[163] = (ref = 0, addr = 0x0000000000000000, version = 0)
[164] = (ref = 0, addr = 0x0000000000000000, version = 0)
[165] = (ref = 0, addr = 0x0000000000000000, version = 0)
[166] = (ref = 7864, addr = "AAAA\x05", version = 7)
[167] = (ref = 0, addr = 0x0000000000000000, version = 0)
[168] = (ref = 2208, addr = "AAAA\x0e", version = 3)
[169] = (ref = 4536, addr = "AAAA\x03", version = 7)
[170] = (ref = 21240, addr = "AAAA\f", version = 7)
[171] = (ref = 2976, addr = "AAAAE", version = 3)
[172] = (ref = 23792, addr = "AAAAF", version = 7)
[173] = (ref = 0, addr = 0x0000000000000000, version = 0)
[174] = (ref = 0, addr = 0x0000000000000000, version = 0)
[175] = (ref = 0, addr = 0x0000000000000000, version = 0)
[176] = (ref = 0, addr = 0x0000000000000000, version = 0)
[177] = (ref = 0, addr = 0x0000000000000000, version = 0)
[178] = (ref = 2744, addr = "AAAAE", version = 3)
[179] = (ref = 3000, addr = "AAAAE", version = 3)
[180] = (ref = 0, addr = 0x0000000000000000, version = 0)
[181] = (ref = 0, addr = 0x0000000000000000, version = 0)
[182] = (ref = 0, addr = 0x0000000000000000, version = 0)
[183] = (ref = 0, addr = 0x0000000000000000, version = 0)
[184] = (ref = 0, addr = 0x0000000000000000, version = 0)
[185] = (ref = 440, addr = "AAAA\x04", version = 3)
[186] = (ref = 0, addr = 0x0000000000000000, version = 0)
[187] = (ref = 35632, addr = "AAAA\f", version = 7)
[188] = (ref = 0, addr = 0x0000000000000000, version = 0)
[189] = (ref = 7584, addr = "AAAAe", version = 7)
[190] = (ref = 0, addr = 0x0000000000000000, version = 0)
[191] = (ref = 0, addr = 0x0000000000000000, version = 0)
[192] = (ref = 49152, addr = "AAAA\x11", version = 7)
[193] = (ref = 0, addr = 0x0000000000000000, version = 0)
[194] = (ref = 2760, addr = "AAAA", version = 3)
[195] = (ref = 3016, addr = "AAAA\x03", version = 3)
[196] = (ref = 0, addr = 0x0000000000000000, version = 0)
[197] = (ref = 0, addr = 0x0000000000000000, version = 0)
[198] = (ref = 0, addr = 0x0000000000000000, version = 0)
[199] = (ref = 0, addr = 0x0000000000000000, version = 0)
[200] = (ref = 0, addr = 0x0000000000000000, version = 0)
[201] = (ref = 29112, addr = "AAAA\x05", version = 7)
[202] = (ref = 4824, addr = "AAAA\x0f", version = 7)
[203] = (ref = 0, addr = 0x0000000000000000, version = 0)
[204] = (ref = 0, addr = 0x0000000000000000, version = 0)
[205] = (ref = 0, addr = 0x0000000000000000, version = 0)
[206] = (ref = 0, addr = 0x0000000000000000, version = 0)
[207] = (ref = 0, addr = 0x0000000000000000, version = 0)
[208] = (ref = 0, addr = 0x0000000000000000, version = 0)
[209] = (ref = 0, addr = 0x0000000000000000, version = 0)
[210] = (ref = 2776, addr = "AAAAe", version = 3)
[211] = (ref = 3032, addr = "AAAA\f", version = 3)
[212] = (ref = 0, addr = 0x0000000000000000, version = 0)
[213] = (ref = 0, addr = 0x0000000000000000, version = 0)
[214] = (ref = 0, addr = 0x0000000000000000, version = 0)
[215] = (ref = 0, addr = 0x0000000000000000, version = 0)
[216] = (ref = 10480, addr = "AAAAF", version = 7)
[217] = (ref = 4552, addr = "AAAA\r", version = 7)
[218] = (ref = 4808, addr = "AAAA\x03", version = 7)
[219] = (ref = 0, addr = 0x0000000000000000, version = 0)
[220] = (ref = 0, addr = 0x0000000000000000, version = 0)
[221] = (ref = 0, addr = 0x0000000000000000, version = 0)
[222] = (ref = 106304, addr = "AAAA\x11", version = 7)
[223] = (ref = 0, addr = 0x0000000000000000, version = 0)
[224] = (ref = 0, addr = 0x0000000000000000, version = 0)
[225] = (ref = 2536, addr = "AAAA", version = 3)
[226] = (ref = 2792, addr = "AAAA@", version = 3)
[227] = (ref = 0, addr = 0x0000000000000000, version = 0)
[228] = (ref = 85416, addr = "AAAA\f", version = 7)
[229] = (ref = 0, addr = 0x0000000000000000, version = 0)
[230] = (ref = 0, addr = 0x0000000000000000, version = 0)
[231] = (ref = 91776, addr = "AAAA\x05", version = 7)
[232] = (ref = 0, addr = 0x0000000000000000, version = 0)
[233] = (ref = 2528, addr = "AAAA", version = 3)
[234] = (ref = 0, addr = 0x0000000000000000, version = 0)
[235] = (ref = 0, addr = 0x0000000000000000, version = 0)
[236] = (ref = 0, addr = 0x0000000000000000, version = 0)
[237] = (ref = 0, addr = 0x0000000000000000, version = 0)
[238] = (ref = 0, addr = 0x0000000000000000, version = 0)
[239] = (ref = 36704, addr = "AAAA\x06", version = 7)
[240] = (ref = 0, addr = 0x0000000000000000, version = 0)
[241] = (ref = 2552, addr = "AAAA", version = 3)
[242] = (ref = 0, addr = 0x0000000000000000, version = 0)
[243] = (ref = 0, addr = 0x0000000000000000, version = 0)
[244] = (ref = 0, addr = 0x0000000000000000, version = 0)
[245] = (ref = 105576, addr = "AAAAF", version = 7)
[246] = (ref = 0, addr = 0x0000000000000000, version = 0)
[247] = (ref = 28568, addr = "AAAA\f", version = 7)
[248] = (ref = 0, addr = 0x0000000000000000, version = 0)
[249] = (ref = 2544, addr = "AAAA", version = 3)
[250] = (ref = 2800, addr = "AAAAE", version = 3)
[251] = (ref = 3056, addr = "AAAA\x04", version = 3)
[252] = (ref = 0, addr = 0x0000000000000000, version = 0)
[253] = (ref = 0, addr = 0x0000000000000000, version = 0)
[254] = (ref = 0, addr = 0x0000000000000000, version = 0)
[255] = (ref = 110160, addr = "AAAAF", version = 7)
}
version = 7
}
m_file_format_version = 9
m_top = {
m_getter = 34 16 ec 01 01 00 00 00 00 00 00 00 00 00 00 00
m_vtable = 0x00000001021a34c0
m_data = 0x0000000106d9ae58 "\x18"
m_lbound = -2147483648
m_ubound = 2147483647
m_size = 10
m_capacity = 10
m_alloc = 0x00000001200c2e18
m_ref = 110160
m_parent = 0x0000000000000000
m_ndx_in_parent = 0
m_width = ' '
m_is_inner_bptree_node = false
m_has_refs = true
m_context_flag = false
}
m_tables = {
realm::Array = {
m_getter = 1c 16 ec 01 01 00 00 00 00 00 00 00 00 00 00 00
m_vtable = 0x00000001021a3448
m_data = 0x0000000106d87250 "\xb0\x02(\x11\xa8\x11(Z\x10)\x80\bP\n"
m_lbound = -32768
m_ubound = 32767
m_size = 10
m_capacity = 10
m_alloc = 0x00000001200c2e18
m_ref = 29256
m_parent = 0x00000001200c4700
m_ndx_in_parent = 1
m_width = '\x10'
m_is_inner_bptree_node = false
m_has_refs = true
m_context_flag = false
}
}
m_table_names = {
realm::Array = {
m_getter = 34 16 ec 01 01 00 00 00 00 00 00 00 00 00 00 00
m_vtable = 0x00000001021a34c0
m_data = 0x0000000106d80020 "pk"
m_lbound = -2147483648
m_ubound = 2147483647
m_size = 10
m_capacity = 10
m_alloc = 0x00000001200c2e18
m_ref = 24
m_parent = 0x00000001200c4700
m_ndx_in_parent = 0
m_width = ' '
m_is_inner_bptree_node = false
m_has_refs = false
m_context_flag = false
}
m_nullable = false
}
m_table_accessors = size=10 {
std::__1::__vector_base<realm::Table *, std::__1::allocator<realm::Table *> > = {
_begin = 0x000000028078abc0
_end = 0x000000028078ac10
_end_cap = {
std::__1::__compressed_pair_elem<realm::Table **, 0, false> = {
_value = 0x000000028078ac10
}
}
}
}
m_attached = true
m_is_shared = true
m_notify_handler = {
_buf = (__lx = "")
_f = 0x0000000000000000
}
m_schema_change_handler = {
_buf = (__lx = "\x18\xaa\x18\x02\x01")
_f = 0x00000001200c4890
}
m_metrics = nullptr {
_ptr = 0x0000000000000000
_cntrl = 0x0000000000000000
}
m_total_rows = 0
}
m_read_lock = (m_version = 136, m_reader_idx = 0, m_top_ref = 110160, m_file_size = 114688)
m_local_max_entry = 32
m_file = {
m_fd = 18
m_encryption_key = {
_ptr = {
std::__1::__compressed_pair_elem<const char *, 0, false> = (_value = 0x0000000000000000)
}
}
}
m_file_map = {
realm::util::File::MapBase = {
m_addr = 0x0000000106d78000
m_size = 1184
m_fd = 18
m_encrypted_mapping = 0x0000000000000000
}
}
m_reader_map = {
realm::util::File::MapBase = {
m_addr = 0x0000000106d7c000
m_size = 1184
m_fd = 18
m_encrypted_mapping = 0x0000000000000000
}
}
m_wait_for_change_enabled = true
m_lockfile_path = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.lock"
m_lockfile_prefix = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.management/access_control"
m_db_path = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm"
m_coordination_dir = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.management"
m_key = 0x0000000000000000
m_transact_stage = transact_Reading
m_writemutex = {
m_filename = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.management/access_control.write.mx"
m_fileuid = (device = 16777220, inode = 1794705)
m_lock_info = std::__1::shared_ptrrealm::util::InterprocessMutex::LockInfo::element_type @ 0x0000000280f98168 strong=3 weak=2 {
_ptr = 0x0000000280f98168
_cntrl = 0x0000000280f98150
}
}
m_controlmutex = {
m_filename = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.management/access_control.control.mx"
m_fileuid = (device = 16777220, inode = 1794706)
m_lock_info = std::__1::shared_ptrrealm::util::InterprocessMutex::LockInfo::element_type @ 0x0000000280f981d8 strong=3 weak=2 {
_ptr = 0x0000000280f981d8
_cntrl = 0x0000000280f981c0
}
}
m_new_commit_available = {
m_shared_part = 0x0000000106d78068
m_resource_path = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.management/access_control.new_commit.cv"
m_fd_read = 22
m_fd_write = -1
}
m_pick_next_writer = {
m_shared_part = 0x0000000106d78078
m_resource_path = "/var/mobile/Containers/Data/Application/2A7905E8-AE93-4A9A-AEAE-94CB86284486/Documents/default.realm.management/access_control.pick_writer.cv"
m_fd_read = 24
m_fd_write = -1
}
m_upgrade_callback = {
_buf = (__lx = "8\xa8\x18\x02\x01")
_f = 0x00000001200c4a78
}
m_metrics = nullptr {
_ptr = 0x0000000000000000
_cntrl = 0x0000000000000000
}
}

Steps to Reproduce

Actually I do nothing extraordinary. Default Realm used without special settings.
At first run everything works correctly. If close app and open again very often got exception on first write transaction. It appears on beginWriteTransaction. All transactions performs on maim thread.

Version of Realm and Tooling

Realm framework version: 3.11.1

Realm Object Server version: -

Xcode version: 10.0 (10A255)

iOS/OSX version: 12.0.1

Dependency manager + version: cocoapods-1.6.0.beta.2

@realm-probot
Copy link

realm-probot bot commented Oct 31, 2018

Hey - looks like you forgot to add a T:* label - could you please add one?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 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

2 participants