OpenRCT2 / OpenRCT2/OpenRCT2

Game freezes with 100% CPU usage with particular sv6 file

Open
#16,304 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

broken save investigate
Dominant language
C++
Stars
16.2k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
80

Description

With a specific sv6 file, the game will run for about 15 seconds, then it will freeze. The game itself will not draw any new graphics, but sounds from the game will still play. When this occurs, a single openrct2 thread will run at 100% CPU usage.

Running openrct2 with --verbose doesn't write any lines of text when this freeze happens. What's interesting is that the console will respond to keyboard input, but issuing any command with a newline makes the console freeze, too.

I wish I had more information to give about this, but the game seems to be quiet about this particular problem.

This is on Arch Linux, using the openrct2 package in community, and as mentioned below, the openrct2-git package built from a PKGBUILD from the AUR.

Steps to reproduce

  1. Obtain OpenRCT2 version 0.3.5.1 for x86_64 Linux.
  2. Download this save file: Gravity Gardens 5.sv6.zip
  3. Open the save file with OpenRCT2.
  4. Let the game run.
  5. Observe that the game freezes after ~15 seconds of the game running with this save.

While step 1 calls for 0.3.5.1, I am also able to reproduce this problem from the git sources (f65e12fc78e65d7f605af94348b623c7fe64b4b4 from the time of this writing).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the freeze by opening the linked Gravity Gardens 5.sv6 save with OpenRCT2 0.3.5.1 or commit f65e12fc78e65d7f605af94348b623c7fe64b4b4, then let the game run for about 15 seconds. No source file or test is identified, so trace the single thread reaching 100% CPU while graphics and console commands stop responding; done means this save no longer freezes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.