-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Exception thrown while executing UI block" error on 0.73.0 version of react native #3418
Comments
Hey @Milutin-P, just created 0.73 app with CleanShot.2023-12-13.at.08.45.08.mp4Cloud you provide your repro code ? |
@KrzysztofMoch |
same issue |
I came across this issue when upgrading to RN 0.73. It happened with v5.2.1 of react-native-video too, and I hoped that updating to the latest beta of v6 would solve it but sadly not. |
@gavrichards I've encountered the same issue. <TouchableWithoutFeedback
onPress={() => {
setPaused(!isPaused);
setShowThumbnail(false);
}}
>
<Video
source={{
uri: video.url,
}}
controls
paused={isPaused}
onEnd={() => function()}
playWhenInactive={false}
playInBackground={false}
preventsDisplaySleepDuringVideoPlayback={true}
fullscreenAutorotate={true}
poster={video.poster}
resizeMode='stretch'
/>
</TouchableWithoutFeedback> @KrzysztofMoch does this information provide sufficient details? |
I can finally confirm that the cause of the issue was nesting |
Yes but there's a legitimate use for that, and it worked fine before RN 0.73. |
I found this issue which may be related facebook/react-native#29889 |
That's an issue from 2020 referring to React Native 0.63.2. |
Also facing this issue. I'm not quite sure as to why this occurs, but if I have the video component implemented in a class component the occurrences of this bug are far reduced vs. a functional component.... |
I also hit this issue. I needed a |
Yes, I can confirm this weird behaviour, but I have no Idea why is this happening... I will try to look into react-native code |
I can confirm switching from |
Hey, got the same error, I've tried to get to the root of the problem but didn't found why it's happening, the main thing is that somehow something is invoking the function @KrzysztofMoch @freeboub Unless you want to get to the root of the problem, If you want to unblock the release due to that, a workaround would be to just set a function named
I've tried that and worked, if you want I can create a PR with the workaround |
I have applied workaround - will be available in |
Thanks! @KrzysztofMoch |
"Exception thrown while executing UI block" error on 0.73.0 version of react native
Platform
Which player are you experiencing the problem on:
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:
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:And after dismissing the error and tapping aging on the pressable element that navigates to a screen:
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.
The text was updated successfully, but these errors were encountered: