Saturday, August 13, 2022
HomeiOS DevelopmentIOS crash when closing a modal in expo managed challenge

IOS crash when closing a modal in expo managed challenge


Expo managed challenge on ios

When my app begins, there’s a modal displaying up with a button to entry the app with none account. The crashs occur when clicking on this button. The proper beahvior is to shut the modal.

After I check in a improvement construct and in testflight it really works wonderful however when it’s reviewed it crashes. I did not handle to breed the problem on an iPad or an iPhone. Right here is among the crash experiences that I acquired :

"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"kind":"EXC_CRASH","sign":"SIGABRT"},
  "ktriageinfo" : "VM - Fault hit reminiscence shortagenVM - Fault hit reminiscence shortagenVM - Fault hit reminiscence shortagenVM - Fault hit reminiscence shortagenVM - Fault hit reminiscence shortagen",
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "lastExceptionBacktrace" : [{"imageOffset":601372,"symbol":"__exceptionPreprocess","symbolLocation":216,"imageIndex":5},{"imageOffset":85732,"symbol":"objc_exception_throw","symbolLocation":56,"imageIndex":4},{"imageOffset":941832,"symbol":"__CFDictionaryCreateGeneric","symbolLocation":0,"imageIndex":5},{"imageOffset":4919592,"symbol":"-[UIView(Hierarchy) _associatedViewControllerForwardsAppearanceCallbacks:performHierarchyCheck:isRoot:]","symbolLocation":284,"imageIndex":7},{"imageOffset":4109060,"image":"-[UIView(Hierarchy) _willMoveToWindow:withAncestorView:]","symbolLocation":244,"imageIndex":7},{"imageOffset":1545712,"image":"-[UIView(Internal) _addSubview:positioned:relativeTo:]","symbolLocation":432,"imageIndex":7},{"imageOffset":2486960,"image":"-[UITransitionView transition:fromView:toView:removeFromView:]","symbolLocation":1336,"imageIndex":7},{"imageOffset":2880572,"image":"-[UIViewControllerBuiltinTransitionViewAnimator animateTransition:]","symbolLocation":1496,"imageIndex":7},{"imageOffset":4759516,"image":"___UIViewControllerTransitioningRunCustomTransition_block_invoke_2","symbolLocation":72,"imageIndex":7},{"imageOffset":2917644,"image":"+[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:]","symbolLocation":104,"imageIndex":7},{"imageOffset":3387600,"image":"___UIViewControllerTransitioningRunCustomTransition_block_invoke.641","symbolLocation":176,"imageIndex":7},{"imageOffset":3939216,"image":"+[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:]","symbolLocation":172,"imageIndex":7},{"imageOffset":2511492,"image":"_UIViewControllerTransitioningRunCustomTransition","symbolLocation":572,"imageIndex":7},{"imageOffset":8979416,"image":"__56-[UIPresentationController runTransitionForCurrentState]_block_invoke.401","symbolLocation":2152,"imageIndex":7},{"imageOffset":3195456,"image":"-[_UIAfterCACommitBlock run]","symbolLocation":64,"imageIndex":7},{"imageOffset":2258800,"image":"-[_UIAfterCACommitQueue flush]","symbolLocation":200,"imageIndex":7},{"imageOffset":1400496,"image":"_runAfterCACommitDeferredBlocks","symbolLocation":640,"imageIndex":7},{"imageOffset":1402236,"image":"_cleanUpAfterCAFlushAndRunDeferredBlocks","symbolLocation":128,"imageIndex":7},{"imageOffset":1402696,"image":"_afterCACommitHandler","symbolLocation":56,"imageIndex":7},{"imageOffset":256060,"image":"__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__","symbolLocation":32,"imageIndex":5},{"imageOffset":64116,"image":"__CFRunLoopDoObservers","symbolLocation":616,"imageIndex":5},{"imageOffset":45052,"image":"__CFRunLoopRun","symbolLocation":1012,"imageIndex":5},{"imageOffset":123472,"image":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":5},{"imageOffset":6536,"image":"GSEventRunModal","symbolLocation":160,"imageIndex":6},{"imageOffset":5134996,"image":"-[UIApplication _run]","symbolLocation":1080,"imageIndex":7},{"imageOffset":2617300,"image":"UIApplicationMain","symbolLocation":336,"imageIndex":7},{"imageOffset":21672,"imageIndex":8},{"imageOffset":99536,"image":"begin","symbolLocation":444,"imageIndex":9}],

I’ve difficulties in understanding this report. I understood that it’s a language exception however could not discover something extra. https://developer.apple.com/documentation/xcode/addressing-language-exception-crashes

<Modal
        animationType="fade"
        clear={false}
        seen={!this.props.estConnecte}>
        <View model={types.accueilView}>
          <ImageBackground resizeMode="cowl" model={{flex:1, justifyContent: 'flex-end', padding:50}} supply={require('../property/splash.png')}>

          <Button1 onPress={() => this.displayLogin()} title = {"Se connecter"} styleSup = {{shade: COLORS.iconesView}}/>
          <Button1 onPress={() => this.creerCompte()} title = {"Créer un compte"} styleSup = {{shade: COLORS.iconesView}}/>
          <Button1 onPress={() => this.accesSansCompte()} title = {"Accès sans compte"} styleSup = {{shade: COLORS.iconesView}}/>
          <View model={{flex:0.1}}/>
          </ImageBackground>
        </View>
        <Login/>
        <Signin/>
      </Modal>

The perform this.accesSansCompte() solely modifications the state of this.props.estConnecte.

I’ve tried so as to add a timeout earlier than closing the modal with none success. Any concept is vastly appreciated ! Thanks in your time !

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular