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

In Game: [Windows] MP4 video playback is affected by game_set_speed() and can cause freezes/crashes at certain values #8451

Closed
shichen85 opened this issue Nov 18, 2024 — with GM Bug Reporter · 9 comments
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@shichen85
Copy link

Description

Might be related to what's going on in #8450, but this is for the Windows export.

We are noticing that the MP4 video we have is freezing in the latest runtime 2024.1100.0.708.

Steps To Reproduce

  1. Run the project for Windows VM under the gamepipe_test config
  2. Start a new save, select any difficulty, and it will play the opening cutscene, which is the included file opening.mp4
  3. Export built with runtime 2024.800.0.642 plays fine, but with runtime 2024.1100.0.708, the video plays with choppy start and then freezes.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.687 Runtime v2024.1100.0.708

Which operating system(s) are you seeing the problem on?

Windows 10.0.22000.0

238197fb-3246-4a62-9b44-5cec6f9d898f

@gm-bug-reporter gm-bug-reporter bot added runner-bug In-game bugs with the "GameMaker Studio 2" runtimes project This issue has a sample project attached labels Nov 18, 2024
@shichen85
Copy link
Author

https://github.com/user-attachments/assets/b42eba1e-b0ed-4a87-95f3-46f3ecf81079
This video shows that the playback starts freezing at the 00:12 mark

@stuckie stuckie moved this from Triage to Backlog in Team Workload Nov 19, 2024
@jackerley
Copy link

Hi @shichen85 I can't reproduce this, it plays just fine in Windows VM and YYC for me. What are the machine specs that you are running it on?

@shichen85
Copy link
Author

@jackerley Hello, I have the issue on the following two Windows machines:

Processor:	Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz   3.60 GHz
Installed RAM:	32.0 GB
System type:	64-bit operating system, x64-based processor
Graphics Card: Nvidia GeForce GTX 1050 Ti
Driver Version: 561.09
Processor:    Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz   2.80 GHz
Installed RAM:    32.0 GB (31.9 GB usable)
System type:    64-bit operating system, x64-based processor
Graphics Card: Nvidia GeForce GTX 1070 with Max-Q Design
Driver Version: 566.14

On the 2.80GHz machine, I am also noticing that the first few seconds of the MP4 video is played with stuttering. In the following recording, you can see that 00:01 - 00:08 plays with stuttering, but 00:09 onwards plays with normal speed, until it freezes at 00:21 :

Crashlands_2_-_2024-11-19_9-45-01_AM.mp4

@shichen85
Copy link
Author

shichen85 commented Nov 19, 2024

Running the YYC through Visual Studio, I can see that shortly before the freeze, the Output logs shows the following message:
Exception thrown at 0x00007FF9E81D2BDC (KernelBase.dll) in Crashlands2.exe: WinRT originate error - 0xC00D4A3E : 'The sample allocator is currently empty, due to outstanding requests.'.

The full log is attached. video_debug.txt

Running the minimal project from #8450 in YYC, which was able to play the mp4 without freeze, does not display this error message, which suggests the error message is related to the freeze.

@shichen85
Copy link
Author

shichen85 commented Nov 20, 2024

On coworkers' machines, the video plays with decreased speed but does not freeze. Their specs are:

Processor	AMD Ryzen 7 5800H with Radeon Graphics            3.20 GHz
Installed RAM	16.0 GB (13.9 GB usable)
System type	64-bit operating system, x64-based processor
CPU: AMD Ryzen 9 5900X 12-Core Processor 3.70 GHz
Ram available: 21.8 GB
Graphics type and speed: NVIDIA GeForce RTX 3080 1260 MHz
Graphics driver version: 32.0.15.6094 (driver date is 8/14/2024) with DirectX version 12 (FL 12.1)
2024-11-20.09-13-11.-.Trim.mp4

@shichen85
Copy link
Author

This is from another coworker:

Windows 11 64-bit
GPU: Nvidia RTX 3080
Driver 565.9
CPU: 12 Gen Intel Core i7 12700KF
RAM: 64gb Installed, 45.9gb available

For them, running the project from the IDE for Windows VM run also plays video with decreased speed, but it does not freeze. For YYC run, the video plays at normal speed when the game window is focused, but if it is in the background, it plays with decreased speed.

@BscotchSeth
Copy link

@jackerley We've found the reason for different people getting different results! Video playback seems tied to the frame rate the game is running at. We got the following results on my 144hz monitor, while using game_set_speed() to control the game's FPS:

  • 20 FPS: Video crashes the game.
  • 30 FPS: Video crashes the game.
  • 60 FPS: It runs largely smoothly with the occasional small stutter.
  • 144 FPS: It stutters constantly and runs slower, but doesn't crash.

@jackerley
Copy link

Thanks @BscotchSeth that helps a lot. I have some changes that I was working on and it's nice to be able to confirm they fix this issue under these circumstances.

@jackerley jackerley added this to the 2024.11 milestone Nov 25, 2024
@stuckie stuckie moved this from Backlog to Done in Team Workload Nov 26, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Nov 26, 2024
@github-project-automation github-project-automation bot moved this from Ready for QA to Done in Team Workload Nov 28, 2024
@YYDan YYDan changed the title In Game: [Windows] MP4 video playback freezes In Game: [Windows] MP4 video playback is affected by game_set_speed() and can cause freezes/crashes at certain values Nov 28, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Dec 3, 2024
@mgeddesGM
Copy link

verified as of IDE v2024.1100.0.703 Runtime v2024.1100.0.719

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Verified
Development

No branches or pull requests

4 participants