-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Memory related crash after media upload #20882
Comments
This is potentially an issue in react-native-video. See TheWidlarzGroup/react-native-video#2122. I'm still looking though. |
TheWidlarzGroup/react-native-video#1956 (comment) has exactly the same stacktrace. |
@crazytonyli, great catch! This was the workaround for the linked issue:
|
With Automattic/jetpack#35637, we should see a decrease in this crash in 24.4, as the video block will be replaced with the VideoPress v5 block for dotcom and Jetpack-connected users on the Jetpack app. As explained at Automattic/jetpack#35637 (comment), we were able to reproduce and implement a fix for the crash as part of v5's implementation. We'll still need to look into a fix for the core video block, as self-hosted users may still run into the crash and VideoPress v5 won't run at all in the WordPress app. |
There is a bug with `react-native-video` that causes a crash if a video's `src` is changed quickly after setting it with some other value. Relevant GitHub discussion: wordpress-mobile/WordPress-iOS#20882 (comment) With this commit, we prevent the `src` from being quickly changed by not showing a video if it still has the `file:` protocol.
Description
Parent issue: #20859
This issue requires more investigation. A crash with such a trace could indicate memory issues when observing objects without deinitializing the observer. By looking at app logs, we can see media upload happening and finishing before a
KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED
crash.Sentry issues
https://a8c.sentry.io/issues/3138940981/events/7b69e5ef94aa4e77b71fd6b29af1825b/?project=5716771
https://a8c.sentry.io/issues/3138940981/events/2379e20947804bda80962e97177426f3/?project=5716771
https://a8c.sentry.io/issues/3138940981/events/451fdac6b0bf4a66a1ed3b9ba8abbf9a/?project=5716771
https://a8c.sentry.io/issues/3138940981/events/67f54ca6c0094f4daf1651ea98932c75/?project=5716771
https://a8c.sentry.io/issues/3138940981/events/2fa17114d4e143819ac1500f036d2ab6/?project=5716771
Logs
Stack trace
App Logs
Steps to reproduce the behavior
Haven't reproduced it
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]
The text was updated successfully, but these errors were encountered: