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

5.3.0 - App crash in migrate_indexes()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      <!--- What do you want to achieve? -->
      Seems after migration from the Realm version 4.4.0 to 5.3.0 some users of the app started caught crash at launching the app.

      • I need your help to figure out how this crash can be fixed.
      • Can I rollback to the previous version 4.4.0 without any problems for user which successfully migrated to the Realm version 5.3.0?

      Expected Results

      <!--- What did you expect to happen? -->
      I expect to get migration from version 4.4.0 to the latest version without crash.

      Actual Results

      <!--- What happened instead?
      e.g. the stack trace of a crash
      -->

      Thread 0#0	(null) in __pthread_kill ()
      #1	(null) in pthread_kill ()
      #2	(null) in abort ()
      #3	(null) in please_report_this_error_to_help_at_realm_dot_io ()
      #4	(null) in realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) ()
      #5	(null) in realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) ()
      #6	0x0000000106597684 in void realm::util::terminate<unsigned long long, unsigned long long>(char const*, char const*, long, unsigned long long, unsigned long long) ()
      #7	(null) in realm::Array::move(unsigned long, unsigned long, unsigned long) ()
      #8	(null) in realm::Table::migrate_indexes(realm::ColKey, realm::util::FunctionRef<void ()>) ()
      #9	(null) in realm::Transaction::upgrade_file_format(int) ()
      #10	(null) in realm::DB::upgrade_file_format(bool, int, int, int) ()
      #11	(null) in realm::DB::do_open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, realm::DBOptions) ()
      #12	(null) in realm::DB::open(realm::Replication&, realm::DBOptions) ()
      #13	(null) in realm::DB::create(realm::Replication&, realm::DBOptions) ()
      #14	(null) in realm::_impl::RealmCoordinator::open_db() ()
      #15	(null) in realm::_impl::RealmCoordinator::do_get_realm(realm::Realm::Config, std::__1::shared_ptr<realm::Realm>&, realm::util::Optional<realm::VersionID>, realm::util::CheckedUniqueLock&) ()
      #16	(null) in realm::_impl::RealmCoordinator::get_realm(realm::Realm::Config, realm::util::Optional<realm::VersionID>) ()
      #17	0x000000010668ac54 in realm::Realm::get_shared_realm(realm::Realm::Config) at /Users/ivanov/Main/Projects/Projects - FaceIT/Steps/Steps/steps source 2/Pods/Realm/Realm/ObjectStore/src/shared_realm.cpp:144
      #18	0x000000010665a278 in +[RLMRealm realmWithConfiguration:queue:error:] at /Users/ivanov/Main/Projects/Projects - FaceIT/Steps/Steps/steps source 2/Pods/Realm/Realm/RLMRealm.mm:504
      #19	(null) in Realm.init(queue:) ()
      #20	(null) in specialized static Database.me(realm:) ()
      #21	(null) in specialized AppDelegate.configureMixpanel() ()
      #22	(null) in AppDelegate.application(_:didFinishLaunchingWithOptions:) ()
      #23	(null) in @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) ()
      #24	(null) in -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] ()
      #25	(null) in -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] ()
      #26	(null) in -[UIApplication _runWithMainScene:transitionContext:completion:] ()
      #27	(null) in -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] ()
      #28	(null) in _UIScenePerformActionsWithLifecycleActionMask ()
      #29	(null) in __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke ()
      #30	(null) in -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] ()
      #31	(null) in -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] ()
      #32	(null) in -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] ()
      #33	(null) in __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... ()
      #34	(null) in +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] ()
      #35	(null) in _UISceneSettingsDiffActionPerformChangesWithTransitionContext ()
      #36	(null) in __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... ()
      #37	(null) in _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext ()
      #38	(null) in -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] ()
      #39	(null) in __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke ()
      #40	(null) in -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] ()
      #41	(null) in -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] ()
      #42	(null) in -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] ()
      #43	(null) in -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] ()
      #44	(null) in -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] ()
      #45	(null) in __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 ()
      #46	(null) in -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] ()
      #47	(null) in __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke ()
      #48	(null) in _dispatch_client_callout ()
      #49	(null) in _dispatch_block_invoke_direct ()
      #50	(null) in __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ ()
      #51	(null) in -[FBSSerialQueue _queue_performNextIfPossible] ()
      #52	(null) in -[FBSSerialQueue _performNextFromRunLoopSource] ()
      #53	(null) in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
      #54	(null) in __CFRunLoopDoSource0 ()
      #55	(null) in __CFRunLoopDoSources0 ()
      #56	(null) in __CFRunLoopRun ()
      #57	(null) in CFRunLoopRunSpecific ()
      #58	(null) in GSEventRunModal ()
      #59	(null) in UIApplicationMain ()
      #60	0x00000001045f0ea8 in main at /Users/ivanov/Main/Projects/Projects - FaceIT/Steps/Steps/steps source 2/Steps/Sources/ViewControllers/Main/Step/Step Creation/Main Controller/STCreateStepMainViewController.swift:38
      #61	(null) in start ()
      
      

      Steps for others to Reproduce

      <!--- What are steps OTHERS can follow to reproduce this issue? -->
      I can't to reproduce this crash.

      Code Sample

      <!---
      Provide a code sample or test case that highlights the issue.
      If relevant, include your model definitions.
      For larger code samples, links to external gists/repositories are preferred.
      Alternatively share confidentially via mail to help@realm.io.
      Full Xcode projects that we can compile ourselves are ideal!
      -->
      I am not sure what the part of code I should provide. If you know, ask me.

      Version of Realm and Tooling

      <!---
      In the CONTRIBUTING guidelines, you will find a script,
      which will help determining some of these versions.
      -->
      Realm framework version: ?
      Was 4.4.0 became 5.3.0

      ProductName: Mac OS X
      ProductVersion: 10.15.4
      BuildVersion: 19E266

      /Applications/Xcode.app/Contents/Developer
      Xcode 11.5
      Build version 11E608c

      /Users/ivanov/.rbenv/shims/pod
      1.9.3
      Realm (5.3.0)
      RealmSwift (5.3.0)

            Assignee:
            eric.mossman@mongodb.com Eric Mossman (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: