react-native-video: "Exception thrown while executing UI block" error on 0.73.0 version of react native
“Exception thrown while executing UI block” error on 0.73.0 version of react native
Platform
Which player are you experiencing the problem on:
- iOS
Environment info
Library version: 6.0.0-alpha.11, 6.0.0-alpha.7, 6.0.0-alpha.4, 6.0.0-beta.2 Also:
- react-native-screens: 3.27.0 and 3.29.0
- react-native: 0.73.0
Device: iPhone 15, iOS 17
Description
We encountered an issue after upgrading our project from react-native 0.72.7 to 0.73.0. Although react-native-video was functioning correctly on 0.72.7, we started receiving the following errors after tapping on the element that navigates through react-navigation to the screen that has <Video> element:
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke
RCTUIManager.m:1205
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.207
__RCTExecuteOnMainQueue_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0
And after dismissing the error and tapping aging on the pressable element that navigates to a screen:
Exception thrown while executing UI block: 'parentNode' is a required parameter
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke
RCTUIManager.m:1205
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.207
__RCTExecuteOnMainQueue_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0
Interestingly, on the onboarding screen which is presented on the first load of the app, video loaded locally from the assets folder continue to work fine. However, when navigating to a screen that hosts a video from a remote URL, these errors occur. The video does play in the background (as evidenced by the audible sound), but the app is prevented from navigating to the screen with the video player due to these errors.
I would be glad to provide more info, once I get to know what would be useful to know in this situation.
Edit: Android works perfectly fine. No issues there at all.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 16
@gavrichards I’ve encountered the same issue.
@KrzysztofMoch does this information provide sufficient details?
I have applied workaround - will be available in
beta.9Yes, I can confirm this weird behaviour, but I have no Idea why is this happening… I will try to look into react-native code
Yes but there’s a legitimate use for that, and it worked fine before RN 0.73.
Hey @Milutin-P, just created 0.73 app with
@react-navigation/native-stackand I am not able to reproduce issue. I tested it on iOS 17.0https://github.com/react-native-video/react-native-video/assets/83216158/6ff364cc-9d75-4ebb-b2ad-47c4a273b6aa
Cloud you provide your repro code ?