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.

v6 iOS: Controls set to true crashes app

See original GitHub issue

Bug

When controls are set to true, app is crashing and we’re getting

react_native_video/RCTVideo.swift:636: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Platform

ayer are you experiencing the problem on:

  • iOS

Environment info

System:
    OS: macOS 12.2.1
    CPU: (8) x64 Apple M1 Pro
    Memory: 286.57 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.2.0 - ~/.asdf/installs/nodejs/16.2.0/bin/node
    Yarn: 1.22.10 - ~/.asdf/installs/nodejs/16.2.0/.npm/bin/yarn
    npm: 7.13.0 - ~/.asdf/installs/nodejs/16.2.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 23, 29, 30, 31
      Build Tools: 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
      System Images: android-29 | Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs ARM 64 v8a, android-30 | Google Play ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: ^0.68.0 => 0.68.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version:

6.0.0-alpha.1

Steps To Reproduce

  1. Fresh install
  2. yarn add react-native-video/react-native-video

Expected behaviour

  1. iOS app should not crash when mounting Video component with controls set to true

Reproducible sample code

      <Video
        paused
        fullscreen
        controls // when removed works fine
        resizeMode="cover"
        source={{ uri: path }}
        onLoad={calculateDimensions}
        style={[styles.video, style]}
      />
      ```

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
jonsherrardcommented, Aug 17, 2022

This has been fixed but not released yet: You can get the code Installing npm install react-native-video@react-native-video/react-native-video#master (direct from git), until 6.0.0-alpha.2 is released: https://www.npmjs.com/package/react-native-video

(Yes that is three react-native-video’s in the install command)

1reaction
freeboubcommented, Aug 1, 2022

@nickfujita can you have a look to this issue please ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes in review but works well in Simulator or real device.
My app crashed for the second time in review but works well in simulator. It crashes on launch in their case and I...
Read more >
Bug - Android 12 App crashes on startup due to error with ...
My unity project uses Google Ad Mob Unity Plugin v6.1.2 which is the latest version. Target api level is 31. The game runs...
Read more >
Amazon Kindle app crashing on iOS devices after v6.64 update
Amazon Kindle app users are reporting an issue where its crashing on iOS devices after the v6.64 update. Here is a workaround.
Read more >
Stack Navigator | React Navigation
Defaults to true when enableFreeze() from react-native-screens package is run at the top of the application. Requires react-native-screens version >=3.16.0.
Read more >
AppsFlyer iOS SDK release notes – Help Center
iOS SDK V6 release notes ; 6.4.0. 2021-09-12. Added API: setSharingFilterForPartners lets you configure which partners the SDK should exclude ...
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