Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-2419

realm::util::File::barrier()

      How frequently does the bug occur?

      Often, many new users affected

      Description

      at calling try realm.write {

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      2   RealmSwift                    	0x00000001052cc5c0 realm::util::File::barrier() + 28 (file.cpp:1130)
      3   RealmSwift                    	0x0000000105058084 realm::GroupCommitter::commit(unsigned long) + 324 (group_writer.cpp:1411)
      4   RealmSwift                    	0x0000000105034aa4 realm::DB::low_level_commit(unsigned long long, realm::Transaction&, bool) + 664 (db.cpp:2580)
      5   RealmSwift                    	0x0000000105034770 realm::DB::do_commit(realm::Transaction&, bool) + 228 (db.cpp:2488)
      6   RealmSwift                    	0x00000001052b3564 realm::Transaction::commit_and_continue_as_read(bool) + 68 (transaction.cpp:272)
      7   RealmSwift                    	0x00000001050e1e08 realm::_impl::RealmCoordinator::commit_write(realm::Realm&, bool) + 100 (realm_coordinator.cpp:778)
      8   RealmSwift                    	0x0000000105123994 realm::Realm::commit_transaction() + 108 (shared_realm.cpp:1072)
      9   RealmSwift                    	0x0000000105403ddc -[RLMRealm commitWriteTransactionWithoutNotifying:error:] + 248 (RLMRealm.mm:631)
      10  RealmSwift                    	0x0000000104f51e70 Realm.commitWrite(withoutNotifying:) + 116 (Realm.swift:332)
      11  RealmSwift                    	0x0000000104f51d8c Realm.write<A>(withoutNotifying:_:) + 224 (Realm.swift:270)
      

      and

      0   libsystem_kernel.dylib        	0x00000001e2d66cd8 __msync + 8 (:-1)
      1   RealmSwift                    	0x0000000103224944 realm::util::msync(int, void*, unsigned long) + 148 (file_mapper.cpp:912)
      2   RealmSwift                    	0x0000000102fa8074 realm::util::File::Map<char>::sync() + 8 (file.hpp:1178)
      3   RealmSwift                    	0x0000000102fa8074 realm::WriteWindowMgr::MapWindow::sync() + 16 (group_writer.cpp:187)
      4   RealmSwift                    	0x0000000102fa8074 realm::WriteWindowMgr::sync_all_mappings() + 76 (group_writer.cpp:340)
      5   RealmSwift                    	0x0000000102f88a74 realm::DB::low_level_commit(unsigned long long, realm::Transaction&, bool) + 616 (db.cpp:2576)
      6   RealmSwift                    	0x0000000102f88770 realm::DB::do_commit(realm::Transaction&, bool) + 228 (db.cpp:2488)
      7   RealmSwift                    	0x0000000103207564 realm::Transaction::commit_and_continue_as_read(bool) + 68 (transaction.cpp:272)
      8   RealmSwift                    	0x0000000103035e08 realm::_impl::RealmCoordinator::commit_write(realm::Realm&, bool) + 100 (realm_coordinator.cpp:778)
      9   RealmSwift                    	0x0000000103077994 realm::Realm::commit_transaction() + 108 (shared_realm.cpp:1072)
      10  RealmSwift                    	0x0000000103357ddc -[RLMRealm commitWriteTransactionWithoutNotifying:error:] + 248 (RLMRealm.mm:631)
      11  RealmSwift                    	0x0000000102ea5e70 Realm.commitWrite(withoutNotifying:) + 116 (Realm.swift:332)
      12  RealmSwift                    	0x0000000102ea5d8c Realm.write<A>(withoutNotifying:_:) + 224 (Realm.swift:270)
      

      ```

      Can you reproduce the bug?

      No

      Reproduction Steps

      No response

      Version

      10.52.0

      What Atlas Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      different versions of iOS

      Build environment

      Xcode 15
      SPM

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: