question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Modal] 0.11.0-rc Modal error SIGABRT with ScrollView

See original GitHub issue

When there is a ScrollView in a Modal that is set to be animated the app will crash and give a SIGABRT error.

<Modal
  animated={true}
  transparent={this.state.transparent}
  visible={this.state.modalVisible}>
  <View style={[styles.container, modalBackgroundStyle]}>
    <View style={[styles.innerContainer, innerContainerTransparentStyle]}>
      <ScrollView>
        <Text>This modal was presented {this.state.animated ? 'with' : 'without'} animation.</Text>
        <Button
          onPress={this._setModalVisible.bind(this, false)}
          style={styles.modalButton}>
          Close
        </Button>
      </ScrollView>
    </View>
  </View>
</Modal>
2015-08-26 20:59:15.147 [info][tid:com.facebook.React.JavaScript] 'Running application "UIExplorerApp" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF'
2015-08-26 20:59:37.552 UIExplorer[94500:6245902] *** Assertion failure in __33-[RCTUIManager setFrame:forView:]_block_invoke(), /Users/****/Downloads/react-native-0.11-stable/React/Modules/RCTUIManager.m:356
2015-08-26 20:59:37.554 UIExplorer[94500:6245902] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not locate root view with tag #493'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a653c65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000109ac3bb7 objc_exception_throw + 45
    2   CoreFoundation                      0x000000010a653aca +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x00000001096d8a57 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169
    4   UIExplorer                          0x000000010941e627 __33-[RCTUIManager setFrame:forView:]_block_invoke + 359
    5   libdispatch.dylib                   0x000000010db5d186 _dispatch_call_block_and_release + 12
    6   libdispatch.dylib                   0x000000010db7c614 _dispatch_client_callout + 8
    7   libdispatch.dylib                   0x000000010db636a7 _dispatch_queue_drain + 2176
    8   libdispatch.dylib                   0x000000010db62cc0 _dispatch_queue_invoke + 235
    9   libdispatch.dylib                   0x000000010db663b9 _dispatch_root_queue_drain + 1359
    10  libdispatch.dylib                   0x000000010db67b17 _dispatch_worker_thread3 + 111
    11  libsystem_pthread.dylib             0x000000010dee9637 _pthread_wqthread + 729
    12  libsystem_pthread.dylib             0x000000010dee740d start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vaibhawccommented, Jul 18, 2016

0.27, same issue. I am using modal twice in app, it happens in one case only. Not sure if I am doing everything alright. Just telling.

0reactions
brentvatnecommented, Jan 3, 2016

Haven’t heard anything else in a while, if it is still a problem please post here: https://productpains.com/product/react-native/?tab=top - thanks! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swipeable React-native-modal with nested ScrollView
3.1 it has a small issue when you provide swipeDirection prop and it doesn't work. The workaround to this issue is to add...
Read more >
iOS 15 'Drag to Dismiss' Regression | Apple Developer Forums
It seems that iOS 15 has broken modal view controller 'drag to dismiss' under the following configuration: The presented modal contains a nested...
Read more >
Prevent Page Scrolling When a Modal is Open | CSS-Tricks
You open a modal, scroll through it, close it, and wind up somewhere else on the page than you were when you opened...
Read more >
Scrollview in modalview not refreshing content - Telerik
Hi, we want to implement a image gallery with a scrollview within a modalview. We have articles with different images and want to...
Read more >
Modal - Bootstrap
Modals are built with HTML, CSS, and JavaScript. They're positioned over everything else in the document and remove scroll from the <body> so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found