`Invalid view returned from registry, expecting EXVideo, got: (null)`

See original GitHub issue

Summary

After moving from expo unimodules to expo modules and updating my expo-av package from 9.1.2 to 12.0.2, I keep getting an intermittent Invalid view returned from registry, expecting EXVideo, got: (null) error:

<Video
  isLooping
  shouldPlay
  resizeMode={'cover'}
  useNativeControls={false}
  source={{
    url: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
  }}
/>

I also upgraded a bunch of other packages including react-native. I did not get these errors prior to upgrading my packages. The only other issue I could find #3115 but it didn’t have a resolution.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

46.0.1

Environment

expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.16.0 - /usr/local/bin/node
      Yarn: 1.22.18 - ~/.yarn/bin/yarn
      npm: 8.11.0 - /usr/local/bin/npm
      Watchman: 2022.07.04.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
      Android SDK:
        API Levels: 31
        Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0
        System Images: android-30 | Google Play Intel x86 Atom, android-31 | Intel x86 Atom_64, android-31 | Google APIs Intel x86 Atom_64
    IDEs:
      Android Studio: 2021.2 AI-212.5712.43.2112.8609683
      Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
    npmPackages:
      expo: 46.0.1 => 46.0.1 
      react: ^18.2.0 => 18.2.0 
      react-dom: ^18.2.0 => 18.2.0 
      react-native: ^0.69.3 => 0.69.3 
    npmGlobalPackages:
      expo-cli: 6.0.0
    Expo Workflow: bare

Reproducible demo

I couldn’t set the versions to my package versions so the error isn’t showing up

https://snack.expo.dev/@kris_lau/hazardous-stroopwafel

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tsapetacommented, Aug 4, 2022

The fix for this issue is now available in version 12.0.3 🙂

1reaction
barthapcommented, Aug 3, 2022

Thank you!

OK, I got it, reproduced, know what’s wrong and will fix it today.

I made a very basic mistake 🙈 - the unloadAsync() is asynchronous and try-catch isn’t working, because componentWillUnmount isn’t async function. Replacing try { unloadAsync() } catch { } with Promise-like unloadAsync().catch(() => {}) solves this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid view returned from registry, expecting EXVideo, got: (null)
This issue persists on standalone non-detached iOS app. Environment Production. Steps to Reproduce Since it's a production issue, ...
Read more >
GStreamer: ChangeLog | Fossies
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers.
Read more >
Empirical Evidence from Hotel Industry in Sri Lanka ...
This study examines whether there is a relation between education index and government health expenditures for Turkey between 1980 and 2012 using the ......
Read more >
and statistics in economy and education - ResearchGate
Lately, cloud computing has arrived as a novel IT paradigm that promises to ... IT Platforms: Vision, Hype, and Reality for Delivering Computing...
Read more >
ADHD in Children. Or is it Snoring?-Part I
Snoring may be a sign of obstructive sleep disorder, where the breathing passage is blocked and less air/oxygen gets to the body.
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