Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1666

[CRASH] [SIGABRT] alloc_slab.cpp line 1181 in realm::SlabAlloc::update_reader_view(unsigned long)

      How frequently does the bug occur?

      – select –

      Description

      Hi Team, This issue is occurring in production environment and we are not able to reproduce this in our test environment. As this is Appstore app we are not able to get the database file to analyse. Would really help if some insights are provided. Thank you.

      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
      Incident Identifier: 9D6D06EE-944A-4E9E-844C-5230E0B3C28F
      CrashReporter Key:   0000000000000000000000000000000000000000
      Hardware Model:      iPad12,2
      Process:             AppName
      Identifier:          com.App.AppName
      Version:             1.0.4
      Code Type:           arm64
      
      Date/Time:           2023-06-07T07:26:00+05:30
      Launch Time:         2023-06-07T07:26:00+05:30
      OS Version:          iOS 16.5 (20F66)
      Report Version:      105
      
      Exception Type:  SIGABRT
      Exception Subtype: 
      
      Thread 0 name:
      Thread 0 Crashed:
      0   libsystem_kernel.dylib         	 0x00000001cf38b558 0x1cf384000 + 30040
      1   libsystem_c.dylib              	 0x000000019824b178 0x19822e000 + 119160
      2   libc++abi.dylib                	 0x00000001eff97bf8 0x1eff86000 + 72696
      3   libc++abi.dylib                	 0x00000001eff87428 0x1eff86000 + 5160
      4   libobjc.A.dylib                	 0x0000000189e4deb4 0x189e30000 + 122548
      5   libc++abi.dylib                	 0x00000001eff96fbc 0x1eff86000 + 69564
      6   libc++abi.dylib                	 0x00000001eff96f60 0x1eff86000 + 69472
      7   AppNameData                        	 0x00000001032c38b0 realm::SlabAlloc::update_reader_view(unsigned long) (alloc_slab.cpp:1181)
      8   AppNameData                        	 0x00000001032c2314 realm::SlabAlloc::attach_file(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, realm::SlabAlloc::Config&) (vector:680)
      9   AppNameData                        	 0x00000001032f59a8 realm::DB::open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, realm::DBOptions) (db.cpp:0)
      10  AppNameData                        	 0x00000001032f82a8 realm::DB::open(realm::Replication&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, realm::DBOptions) (vector:485)
      11  AppNameData                        	 0x00000001032fc338 realm::DB::create(std::__1::unique_ptr<realm::Replication, std::__1::default_delete<realm::Replication> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, realm::DBOptions) (vector:485)
      12  AppNameData                        	 0x0000000103397a24 realm::_impl::RealmCoordinator::open_db() (shared_ptr.h:869)
      13  AppNameData                        	 0x00000001033989c8 realm::_impl::RealmCoordinator::do_get_realm(realm::RealmConfig, std::__1::shared_ptr<realm::Realm>&, std::__1::optional<realm::VersionID>, realm::util::CheckedUniqueLock&) (realm_coordinator.cpp:282)
      14  AppNameData                        	 0x0000000103398858 realm::_impl::RealmCoordinator::get_realm(realm::RealmConfig, std::__1::optional<realm::VersionID>) (shared_realm.hpp:93)
      15  AppNameData                        	 0x000000010340aa04 realm::Realm::get_shared_realm(realm::RealmConfig) (shared_realm.hpp:93)
      16  AppNameData                        	 0x00000001031de968 +[RLMRealm realmWithConfiguration:queue:error:] (shared_ptr.h:869)
      17  AppNameData                        	 0x000000010328161c @nonobjc RLMRealm.__allocating_init(configuration:queue:) (<compiler-generated>:0)
      18  AppNameData                        	 0x0000000103281a98 Realm.init(queue:) (Realm.swift:79)
      19  AppNameData                        	 0x0000000102f039e8 RealmStore.fetch<A, B>(byPrimaryKey:) (RealmStore.swift:159)
      20  AppNameData                        	 0x0000000102f04c4c protocol witness for Store.fetch<A, B>(byPrimaryKey:) in conformance RealmStore (<compiler-generated>:0)
      21  AppNameData                        	 0x0000000102f1e8a4 RealmService.fetch<A, B>(byPrimaryKey:) (RealmService.swift:37)
      
      
      Thread 21 name:
      Thread 21:
      0   libsystem_kernel.dylib         	 0x00000001cf385c88 0x1cf384000 + 7304
      1   libsystem_pthread.dylib        	 0x00000001f005b318 0x1f0052000 + 37656
      2   libc++.1.dylib                 	 0x000000019f365f78 0x19f351000 + 85880
      3   AppNameData                        	 0x00000001031de89c +[RLMRealm realmWithConfiguration:queue:error:] (__mutex_base:0)
      4   AppNameData                        	 0x000000010328161c @nonobjc RLMRealm.__allocating_init(configuration:queue:) (<compiler-generated>:0)
      5   AppNameData                        	 0x0000000103281a98 Realm.init(queue:) (Realm.swift:79)
      6   AppNameData                        	 0x0000000102f03428 RealmStore.fetchAll<A>() (RealmStore.swift:140)
      7   AppNameData                        	 0x0000000102f04cfc protocol witness for Store.fetchAll<A>()
      

      Can you reproduce the bug?

      No

      Reproduction Steps

      No response

      Version

      10.10.0

      What Atlas Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      iOS 16.5

      Build environment

      Xcode version: Xcode 14.2
      Dependency manager and version: Swift Package manager

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

              Created:
              Updated:
              Resolved: