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.

[Video][iOS] Video component crashing on multiple video load when not using useNativeControls

See original GitHub issue

Environment

Expo CLI 2.14.0 environment info: System: OS: macOS 10.14.4 Shell: 5.3 - /bin/zsh Binaries: Node: 11.1.0 - /usr/local/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Xcode: 10.2/10E125 - /usr/bin/xcodebuild npmPackages: expo: ^32.0.0 => 32.0.6 react: 16.5.0 => 16.5.0 react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1 npmGlobalPackages: expo-cli: 2.14.0

App target is iOS (iPad).

Steps to Reproduce

When loading video files multiple times in a short period of time the app crashes. It might look like an uncommon use case, but my app is basically loading video files on touch events and it crashes after 10-30 touches depending on the device.

I’ve made a simplified snack: https://snack.expo.io/@mrbananas/dGVzdC

Click multiple times on “Load Video” and it will crash. Click on “Toggle Controls” first and it won’t crash if you hit “Load Video” multiple times.

It’s hard to crash it in the simulator, but on an iPhone or iPad it’s easy to reproduce. My older iPad crashes much faster than my new iPhone.

Expected Behavior

Not crashing with useNativeControls set to false or omitted.

Actual Behavior

The app is crashing when loading video files in a short period of time not using useNativeControls.

Reproducible Demo

https://snack.expo.io/@mrbananas/dGVzdC

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
krisbaum74commented, Dec 21, 2020

i have a timer set to change video source every 5 seconds, this crashes after around 10-20 plays on iOS. It does not crash on Android. I believe this is still a bug.

0reactions
IjzerenHeincommented, Jul 30, 2020

Closing this as expo-av@8.4.0 contains stability fixes that should fix these crashes. Feel free to reopen with additional reproduction info if the problem still exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-video - multiple videos causing app crash
On iOS I started seeing the app crash with the error Message from debugger: Terminated due to memory issue in Xcode. I see...
Read more >
Video - Expo Documentation
The Video component from expo-av displays a video inline with the other UI elements in your app. Much of Video and Audio have...
Read more >
Crash When Exporting Video with Text Overlay
I am putting together a simple video editor app for iOS. The videos are exported with a "watermark" in the form of a...
Read more >
150 Videos causing PsychoPy to crash - Builder
It usually gets through one video and then crashes, but gets through the 10 practice with no issues. I'm thinking that 150 videos...
Read more >
8 Easy Ways to Fix YouTube Keeps Crashing on Android and ...
The YouTube mobile app is probably the best way to watch your favorite videos on YouTube. Not just that it allows you to...
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