Skip to content
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

[BUG]: TVOS Crash after Ad playback #4354

Open
matthewcaminiti opened this issue Dec 31, 2024 · 1 comment
Open

[BUG]: TVOS Crash after Ad playback #4354

matthewcaminiti opened this issue Dec 31, 2024 · 1 comment
Labels
Accepted Issue is confirmed and accepted by maintainers team bug Platform: tvos

Comments

@matthewcaminiti
Copy link

Version

^6.8.2

What platforms are you having the problem on?

Apple tvOS

System Version

MacOS 15.2, TVOS 17.4

On what device are you experiencing the issue?

Simulator

Architecture

Old architecture

What happened?

After playing an ad on Apple TV the application will crash after the ad has completed playing and some inconsistent amount of time with the following error:

[UIKitCore] Unsupported layout off the main thread for react_native_video.RCTVideo with nearest ancestor view controller,
RNSScreen
[CoreFoundation] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Modifications to
the layout engine must not be performed from a background thread after it has been accessed from the main thread.'
*** First throw call stack:
(
0   CoreFoundation                      0x00000001808109fc __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x000000018005ee74 objc_exception_throw + 56
2   CoreAutoLayout                      0x00000001b15de4f8 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints] + 0
3   CoreAutoLayout                      0x00000001b15de258 -[NSISEngine _optimizeWithoutRebuilding] + 68
4   CoreAutoLayout                      0x00000001b15dde70 -[NSISEngine optimize] + 92
5   CoreAutoLayout                      0x00000001b15d94cc -[NSISEngine performPendingChangeNotifications] + 100
6   UIKitCore                           0x00000001c50cc284 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2200
7   QuartzCore                  <…>

Reproduction Link

repository link

Reproduction

Step to reproduce this bug are:

  1. Have Video element with an ad uri and an ad tag URL (MediaFile types included are video/mp4, application/x-mpegURL, and application/dash+xml (ad playback + audio work fine))
  2. Resume playback and let ad play to completion.
  3. Regardless if player paused or source changes, wait some time (usually like 0-15 seconds) for crash

I can submit more details about our Vast tag if need be.

Cheers.

Copy link

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

There is a newer version of the library available. You are using version ^6.8.2, while the latest stable version is 6.8.2. Please update to the latest version and check if the issue still exists.

Note: If the issue still exists, please update the issue report with the latest information.

@freeboub freeboub added Platform: tvos Accepted Issue is confirmed and accepted by maintainers team labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue is confirmed and accepted by maintainers team bug Platform: tvos
Projects
None yet
Development

No branches or pull requests

2 participants