Skip to content
Alexis Maiquez Murcia edited this page Dec 4, 2026 · 6 revisions

Fixes of PC's own bugs (GTA_FIXES)

These are bugs the original PC game has itself: the original exe shows them too, or runs the same code that causes them. Each fix is written under #if defined(GTA_FIXES), with PC's original code kept in the #else.

Where they are on:

Build GTA_FIXES
The matching builds (compact and normal exe, the IDE projects' Matching configuration) never: their bytes don't change
The Linux port (and its x86-64 and arm64 builds) on by default; CMake option -DGTASA_FIXES=OFF gives PC's behaviour, bugs included
The IDE projects' Normal configuration (VS2005 Win32; VS2010 and VS2025 Win32 and x64) always on
The clang Windows exe (tools/modern.py --link, also --x64) with --fixes
The non-matching cl 13 build (tools/build.py --nonmatching --fixes, tools/link7.py --nonmatching --fixes) with --fixes

Port adaptations (code that makes a port behave like PC, not a bug of PC's) are on a separate page: Port fixes. The repository's own list is the "Fixes (GTA_FIXES)" table in docs/decompiling.md.

Each entry gives the symptom, the cause in PC's code, what the fix does, where it is, the pull request (PR) and issue, how it was checked, and whether it depends on the frame rate.

Contents


Crashes and hangs

The loading screen draws past its last splash

  • Symptom: a load that takes longer than about 35 seconds crashes on the loading screen.
  • Cause: CLoadingScreen::NewChunkLoaded moves to the next splash screen every 5 seconds (5.5 s for the title) with no end test. After the 7th splash it draws m_aSplashes[7] and on, which is a garbage texture pointer.
  • Fix: the loading screen keeps its last splash until the load ends.
  • Where: CLoadingScreen::NewChunkLoaded, src/Game/FrontEnd/loadingscreen.cpp.
  • PR / issue: #4693 / #4676. This PR also added the GTA_FIXES switch itself.
  • Verified: Linux build with an artificial 700 ms delay per chunk (a 98 s load). With the fix the splash stays at the 7th one to the end, then the game fades in. Without it, a crash in CSprite2d::Draw from CLoadingScreen::RenderSplash.
  • Frame-rate related: no.

The game hangs after loading a save, waiting for an audio bank

  • Symptom: loading a save sometimes never finishes: the game waits for good in CAudioEngine::InitialisePostLoading.
  • Cause: all audio bank requests share one CD stream channel, and CAEBankLoader::readAudioStreams asks for the channel's status again at each request, in slot order. Two requests for the same bank slot can then finish in the wrong order: the loading tune's half overwrites the weapons bank's slot, and nothing asks for the weapons bank again.
  • Fix: the channel's status is read once per pass (and counts as busy once a read starts in that pass), and the requests are served oldest first, so they finish in the order they were made.
  • Where: CAEBankLoader::readAudioStreams, src/Game/Audio/AEPCBankLoader.cpp.
  • PR / issue: #4690 (first under GTA_PORT), #4695 (moved to GTA_FIXES) / #4677.
  • Verified: headless x86-64 Linux build loading the same save: before, 4 of 14 loads hung, always on the weapons bank; after, 24 of 24 loads reached play.
  • Frame-rate related: no (a race between threads).

A line of sight to a point that's not a number hangs the game

  • Symptom: the game stops at 100% CPU for minutes to hours ("not responding"). Seen in the Linux port after 11 and 13 minutes of play.
  • Cause: CWorld::ProcessLineOfSight and CWorld::GetIsLineOfSightClear turn each end of the line into a sector number with an int conversion. For a NaN or a coordinate beyond the int's range that gives 0x80000000, and the walk then visits about 2^31 sectors, testing each one's lists.
  • Fix: a line with an end that is NaN or beyond 100000 units (the map is about ±3000) hits nothing (ProcessLineOfSight) or is blocked (GetIsLineOfSightClear: its callers act on a clear line). Other lines are walked as before. The Linux port also prints where such a line came from (the calling function), which led to the two NaN fixes under Gameplay and AI.
  • Where: CWorld::ProcessLineOfSight, CWorld::GetIsLineOfSightClear, src/Game/Core/World.cpp.
  • PR / issue: #4845 (the "blocked" rule for GetIsLineOfSightClear came with #4862) / #4843.
  • Verified: a test hook that casts a line to a NaN point: with GTASA_FIXES=OFF the port's hang watchdog shows the main thread at 98% CPU in the sector walk, the same profile as the player's hang; with the fix the game goes on.
  • Frame-rate related: no.

Escalators crash the game when the streamer evicts their owner

  • Symptom: a crash near escalators (for example the Commerce escalators in Los Santos), in CEntity::CreateRwObject or in PreRender on freed objects. Speedrunners hit this on PC too.
  • Cause: when the list of entities with a loaded RwObject is full, CStreaming::AddEntity evicts the oldest one. If that entity owns an escalator, deleting its RwObject removes the escalator and deletes every step object, while the world scan is still using them.
  • Fix: the eviction skips an entity that owns an active escalator.
  • Where: CStreaming::AddEntity, src/Game/Renderer/streaming.cpp.
  • PR / issue: #4861 / #4860.
  • Verified: headless Linux build at the Commerce escalators with a smaller entity list: without the fix it crashes once both owners are evicted; with it, it runs clean at three list sizes and no owner is evicted.
  • Frame-rate related: no.

Starting the game while another copy is exiting crashes

  • Symptom: starting the game while a previous copy is still shutting down crashes it at start-up (access violation).
  • Cause: isAlreadyRunning finds the other copy's event but, while that copy is exiting, not its window. It then brings "its" window to the front through RsGlobal.ps, which is still NULL at that point.
  • Fix: it no longer reads RsGlobal.ps. When it finds the event but no window, it retries every 100 ms for up to 5 seconds: if the event goes away the game starts; if a window appears it comes to the front and the game exits, as before; after 5 s the game exits as already running.
  • Where: isAlreadyRunning, src/Game/win/osw.cpp (Windows builds only: the Linux port has no single-instance check).
  • PR / issue: #4909 / #4894.
  • Verified: on Windows 11 with the clang exe, a script holding the event with no window: before, a crash; after, the game waits and starts when the event is released (held 3 s), or exits cleanly after 5 s (held 10 s).
  • Frame-rate related: no.

Closing the window during the intro movies crashes

  • Symptom: closing the game's window during the logo or intro movies ends in a crash (0xC0000005) instead of a clean exit.
  • Cause: WinMain shuts the audio down at every exit, but CAudioEngine::Initialise runs only after the movies. CAudioEngine::Shutdown reports two frontend audio events, and CAEFrontendAudioEntity::AddAudioEvent reads the event volume table through a NULL pointer (at 4dd5a3 in the original exe).
  • Fix: CAudioEngine::Shutdown returns at once while the event volume table hasn't been set up.
  • Where: CAudioEngine::Shutdown, src/Game/Audio/AudioEngine.cpp.
  • PR / issue: #4912 / #4910. The Linux port already avoided this crash in its own WinMain copy by skipping the shutdown before the audio is set up (#4565).
  • Verified: on Windows with a debugger: the original exe, the clang exe and the VS2025 Normal exe all crash at the same place on a close 25 s in. With the fix, closes at 25 s and 70 s exit with code 0; a close at the menu exits cleanly with and without it.
  • Frame-rate related: no.

Gameplay and AI

A ped's arm IK goes NaN, and so do its shots

  • Symptom: an armed ped (or the player) aiming with the arm IK can get a "not a number" arm: its bone matrices are NaN and every shot from that hand fires along a NaN line (which, before the line-of-sight fix above, could hang the game).
  • Cause: RenderWare's RwV3dNormalize uses a square-root table that leaves vectors up to 1.2e-4 off unit length. In IKChain_c::MoveBonesToTarget, a target within about a degree of straight behind a bone gives a dot product below -1, and acos returns NaN. In BoneNode_c::QuatToEuler, a quaternion slightly longer than 1 near 90 degrees of y puts the sine past 1 and its square root at NaN. The bone's quaternion then stays NaN while the IK chain lives.
  • Fix: the dot product is held at -1 (as CPedIK::ExtractYawAndPitchWorld already does) and the sine to [-1, 1].
  • Where: IKChain_c::MoveBonesToTarget (src/Game/Ragdoll/IKChain.cpp), BoneNode_c::QuatToEuler (src/Game/Ragdoll/BoneNode.cpp).
  • PR / issue: #4855 / #4843.
  • Verified: a test hook sweeping the player's pointed arm round a target while firing: without the fixes, all 4 runs went NaN within 17000 frames; with them, 18500 frames with no NaN.
  • Frame-rate related: no.

Armed peds run to a garbage cover point

  • Symptom: an armed ped looking for cover can run off to a point far outside the world, its position and bones ending at infinity or NaN.
  • Cause: CTaskComplexKillPedOnFootArmed ignores the result of CCover::FindCoordinatesCoverPoint. When no cover coordinates are found (a vehicle without two points behind it, or a cover entity that's gone), the coordinates are uninitialised stack memory, and the ped may run there.
  • Fix: the result is tested, as the Android version of the game does.
  • Where: CTaskComplexKillPedOnFootArmed::CreateFirstSubTask and CreateNextSubTask, src/Game/Task/TaskAttack.cpp.
  • PR / issue: #4862 / #4843.
  • Verified: caught live in a debugger (a line of sight from CreateFirstSubTask to coordinates around 7e13). The failed-cover case didn't come up again in the test scenes, so the fix rests on that capture.
  • Frame-rate related: no.

CJ catches fire anywhere when a BMX is near a fire

  • Symptom: CJ suddenly goes up in flames, even when he isn't on a bike and is far from it, when a bike near a fire burns (a burning car or bike, a molotov). He catches fire again each time the flames go out, until he dies.
  • Cause: CFire::ProcessFire checks, 1 frame in 32, for vehicles within 2 m of each fire that aren't burning. A motorbike or car gets a fire of its own. A BMX doesn't: PC sets the player on fire instead (FindPlayerPed()) and bursts a tyre, with no test that he rides that BMX or is anywhere near it. The BMX never gets a fire of its own, so it happens again and again. Any BMX, parked or an NPC's, within 2 m of any fire sets CJ alight anywhere on the map. Android's code is the same.
  • Fix: the BMX sets the player on fire only when he is its rider. The tyre still bursts. A CJ riding a BMX into a fire still burns, and a CJ standing in a fire catches it from the fire itself (PC's own 1.1 m test). Bike explosions are unchanged: a CJ riding a bike that explodes is killed outright, and one near the wreck can still catch fire from the explosion or from the fires around it.
  • Where: CFire::ProcessFire, src/Game/Core/Fire.cpp.
  • PR / issue: #4951 / #4949.
  • Verified: with the scene hook in Grove Street, a fire started 1.5 m from a BMX while CJ stood 32 m away. Without the fix, CJ was set on fire 19-32 frames later by the BMX branch, both in the Linux port and in the PC exe under wine. In the PC run he caught fire three times and died. With the fix he wasn't set on fire in 540 frames (port) or 1120 frames (PC exe with --fixes). Riding the BMX into the fire still set him on fire in both builds.
  • Frame-rate related: no.

Punching and then tipping a stripper freezes CJ

  • Symptom: in a strip club, punch (even at nothing) and then tip a stripper: CJ stands frozen in the fight stance for a few seconds before he turns and throws the money, with no control the whole time. This only happens with the frame limiter off.
  • Cause: the punch leaves the player's fight task (CTaskSimpleFight) idling in the stance, which ends only when the player moves or attacks, or after 2 s of idle (PLAYER_FIGHT_IDLE_PERIOD). The tip's script takes the controls away and gives CJ a task to turn to the stripper. CTaskSimplePlayerOnFoot::MakeAbortable refuses a script command's event while an attack task runs, so the turn waits for the stance, which the player can no longer end. The idle counter adds whole milliseconds a frame: at 600 fps the stance lasts about 3 s, and above 1000 fps it never ends (the countdown fix, #4950, makes it 2 s). At PC's 25/30 fps cap the tip isn't taken in the stance (IS_CHAR_STOPPED is false there), so capped play waits instead.
  • Fix: the player's fight stance also ends at once while the player's controls are disabled, as the idle timeout ends it.
  • Where: CTaskSimpleFight::ProcessPed, src/Game/Task/TaskAttack.cpp.
  • PR / issue: #4954 / #4953.
  • Verified: headless in the Pig Pen with the user's save, a punch and then the tip. The controls were off for 3.75 s with the PC exe under wine at 146 fps, and 3.79-3.85 s in the port at 140-256 fps without the fix (1.6-1.7 s for a tip without the punch). With the fix: 2.19 s, the stance ending 0.5 s after the tip. At 25-30 fps no build took the tip during the stance.
  • Frame-rate related: yes. It only shows with the limiter off, and it lasts longer the higher the frame rate.

Camera

The WASTED camera sinks into the ground

  • Symptom: after dying, the whole WASTED sequence shows one flat colour (the fog colour: gray in rain, brown in the evening, teal at night) instead of the body seen from above. Reproduced with the original exe on real Direct3D 9: 4 of 28 deaths on County General hospital's walkway.
  • Cause: when the body comes to rest with its spine bone level with or just under the ground's collision (on a step or a kerb), CCam::ProcessPedsDeadBaby's line from the spine to the camera 2 m above hits the ground right at its start (the triangle test is two-sided). The camera goes to ground level, and the rise and drift tests keep it there for the whole sequence, looking at what's under the world.
  • Fix: a short line from 0.25 m above the spine down to it looks for a surface over the spine; if there is one, the spine position used for the camera is lifted to 0.1 m above it.
  • Where: CCam::ProcessPedsDeadBaby, src/Game/Core/Camera.cpp.
  • PR / issue: #4926 / #4741.
  • Verified: on Windows with a non-matching build and a camera logger, on the same death on the same steps: before, the camera stays at ground height for all 343 frames; after, it rises as in the other deaths and the body is seen lying on the steps.
  • Frame-rate related: no.

Timing and frame rate

PC's game was written for its frame limiter (about 25-30 fps). Several things are counted per frame, or in whole milliseconds, and change with the frame rate. These fixes keep PC's look at 25 fps and make the rest behave the same at any frame rate.

Rain gets hazier at high frame rates

  • Symptom: rain looks much hazier and denser at high frame rates (at 90 fps far more than at 30).
  • Cause: CWeather::AddRain adds one haze sprite and Rain * 5 drops of 15 + Rain * 2 splash particles every frame, while the particles age by game time. More frames per second means more particles alive at once.
  • Fix: the particles are added once per 2.0 of time step (1/25 s, PC's default limiter rate), with the remainder carried to the next frame, so the limiter's look is kept at every frame rate.
  • Where: CWeather::AddRain, src/Game/Renderer/weather.cpp.
  • PR / issue: #4833 / #4799.
  • Verified: x86-64 Linux build on a real GPU, Grove Street in rain at fixed frame rates (median frame brightness): with the fix 95.5-98.1 from 25 fps to uncapped; without it 101.0 at 25 fps rising to 132.3 at 90 fps.
  • Frame-rate related: yes.

Open car doors don't swing shut at high frame rates

  • Symptom: at high frame rates (for example 100 fps), an open car door doesn't swing shut when the car turns; it bounces off its frame and stays open.
  • Cause: CDoor::Process keeps the door's turn speed in radians per frame, damps it by a fixed factor each frame and latches the door only when it shuts faster than 0.1 radians a frame, while the push it gets goes with the time step. At 100 fps the damping is 4 times stronger per second, and a door has to shut 4 times faster to latch.
  • Fix: the turn speed counts radians per 2.0 of time step (1/25 s); the damping, the angle's step, the start-to-move threshold and the bonnet's drag are scaled by the frame's share of that. At 25 fps nothing changes.
  • Where: CDoor::Process (src/Game/Vehicles/door.cpp), CAutomobile::ProcessSwingingDoor (src/Game/Vehicles/Automobile.cpp).
  • PR / issue: #4852 / #4850.
  • Verified: a test scene turning an Infernus with a door half open, at forced time steps: before, at 1.0 rad/s the door latches in 0.40 s at 25 fps and never at 60 or 100 fps; after, 0.40 s at every rate. The Windows build under wine and the Linux port gave identical logs.
  • Frame-rate related: yes.

Sounds' pitch jumps with the frame limiter off

  • Symptom: with the frame limiter off, peds' voices and other moving sounds warble: their pitch jumps from frame to frame.
  • Cause: CAESound's Doppler speed is the change in distance from the camera between the last two frames divided by the change in the game clock's whole milliseconds. Frames 0-2 ms apart give a speed up to twice too high, or none, so the pitch jumps by up to 1.9 semitones a frame.
  • Fix: the time is the frames' time steps added up, and the reference position is kept at least 40 ms (1/25 s) old. At 25 fps nothing changes.
  • Where: CAESound::SetPosition, src/Game/Audio/AESoundManager.cpp.
  • PR / issue: #4935 / #4923.
  • Verified: a traced 100 s walk at about 160 fps: speech pitch steps (p90) went from 82.4 cents to 3.6 cents, and reversing jumps from 29.9% of steps to 0%. Checked on the audio output too, with a test tone.
  • Frame-rate related: yes.

The frame limiter: uneven frames and a jittering camera

  • Symptom: the follow camera flickers and lags, jumping about 6 cm nearer and farther every frame. With the limiter on the game runs at 25 fps, not 30.
  • Cause: the main loop's limiter compares the time since the game clock's last update with 33 ms, and Idle's minimum frame time wait compares that same time with the previous frame's value, unsigned. Frames alternate between about 1 and 15 ms with the limiter off, and 33 and 47 ms with it on. The follow camera's lag depends on the time step, so it jumps back and forth.
  • Fix: the menu's "Frame Limiter" entry (Display Setup > Advanced) becomes a frame limit to pick: 25, 30, 60, 90, 120, 140 or 300 fps, or uncapped (shown as the game's own "OFF"). Each frame starts 1000 / limit ms after the one before, on a real clock (QueryPerformanceCounter on Windows, CLOCK_MONOTONIC on Linux); Idle no longer waits. Replays and beat-based scenes keep PC's 30 fps at most. gta_sa.set keeps PC's on/off byte (30 is "on"), and the limit is stored as FrameLimit beside PC's registry settings (settings.ini on Linux).
  • Where: Idle (src/Game/Core/Main.cpp); the main loop and psCameraShowRaster (src/Game/win/osw.cpp, port/linux/platform/osw_linux.cpp); the menu entry (src/Game/FrontEnd/Frontend.cpp, src/Game/FrontEnd/Frontend_PC.cpp).
  • PR / issue: #4933, #4939 (the entry shows a number, no new text) / #4932.
  • Verified: per-frame logs of a scripted walk, in the Linux port and in PC's exe under wine: before, frames alternate (0-2 / 12-16 ms) and the camera distance zigzags by 79-114 mm; with a limit of 30, 60 or 140 fps, even frames and 1-2 mm. The menu was stepped through every value with FrameLimit following.
  • Frame-rate related: yes.

The game clock runs slow at high frame rates

  • Symptom: the time of day, script waits and script timers run slow as the frame rate goes up: about 1% at 30 fps, 4% at 60, 10% at 300 and 30% or more uncapped (a game minute takes 1.43 s instead of 1 s).
  • Cause: CTimer::UpdateVariables adds each frame's time to the game clock as whole milliseconds, dropping the fraction; the unclipped and pause-mode clocks do the same through a float sum (which also loses precision after about 4.7 hours of play); and the scripts' TIMERA/TIMERB add the time step's whole milliseconds.
  • Fix: each clock, and the script timers' step, carries its fraction of a millisecond to the next frame. PC's 300 ms clamp and pauses are kept; the time step (and so movement) is unchanged.
  • Where: CTimer::Update, CTimer::UpdateVariables (src/Game/Core/Timer.cpp), CTheScripts::Process (src/Game/Control/script.cpp).
  • PR / issue: #4942 / #4937.
  • Verified: game-clock milliseconds per real second, in the Linux port and in PC's exe under wine, at 30 to uncapped: before 990 down to about 700; after 999-1001 at every rate.
  • Frame-rate related: yes.

Per-frame countdowns run slow at high frame rates

  • Symptom: timers that count per frame run slow as the frame rate goes up: about 1% at 30 fps, 4% at 60, 10% at 300 and 45% at 870 uncapped. Affected: help and zone-name messages, a burning car's time to explode, task, ped and vehicle timers, stats counters, gang war timers, the scripts' onscreen clock, the idle camera.
  • Cause: CTimer::GetTimeElapsedInMilliseconds (and its unclipped variant) gives the frame's time step truncated to whole milliseconds. About a hundred countdowns add or subtract it every frame, so each frame drops its fraction.
  • Fix: CTimer::UpdateVariables works out each frame's whole milliseconds once and carries the fraction to the next frame, so their sum follows the time step. While the collision's sub-steps, a replay or a loaded game have set another step, PC's value of that step is given.
  • Where: CTimer::UpdateVariables (src/Game/Core/Timer.cpp), GetTimeElapsedInMilliseconds and GetTimeElapsedInMillisecondsNonClipped (src/Game/Core/Timer.h), CTaskSimpleIKChain::ProcessPed (src/Game/Task/TaskBasic.cpp).
  • PR / issue: #4950 / #4943.
  • Verified: game ms per real second of the summed value, the idle camera's ticker and a burning car's blow-up timer, in the Linux port and in PC's exe under wine, from 30 fps to uncapped. Before: 990 down to 550. After: 1000 at every rate (the car explodes after 5.00 s).
  • Frame-rate related: yes.

CJ shoves parked cars along at high frame rates

  • Symptom: with the frame limiter off, CJ running into a parked car pushes it away at nearly his own speed: a parked Infernus moves 2.4 m/s at 140 fps and 4.9 m/s uncapped, where at PC's 30 fps it creeps along at 0.27 m/s.
  • Cause: a standing ped gets its walking speed back from its animation every frame, so it hits the car again every frame, and CPhysical::ApplyCollision gives the car an inelastic collision's speed for each hit. At 30 fps the tyres take that speed off again by the next frame. At high frame rates there are more hits and less tyre grip per frame, so the leftover speed adds up.
  • Fix: above about 33 fps, a standing ped's hit gives the car (or object) no more speed than the same hit would give it from rest, which is what every 30 fps hit gives it. CJ's own response, falls and impacts, and peds pushing peds are unchanged; at 30 fps and below nothing changes.
  • Where: CPhysical::ApplyCollision and CPhysical::ApplySoftCollision (PedPushSpeed), src/Game/Core/Physical.cpp.
  • PR / issue: #4959 / #4956.
  • Verified: the scene hook with the pad's stick held forward, CJ running into the side of a parked Infernus at Grove Street for 10 s, headless Linux port. Fastest second of the car: PC 0.27 / 0.63 / 2.4 / 3.6 / 4.9 m/s at 30 / 60 / 140 / 300 fps / uncapped; with the fix 0.27 / 0.26 / 0.26 / 0.38 / 0.56 m/s. Sprinting: PC 5.9 m/s uncapped, fixed 0.54. Walking, and a heavy Patriot, are the same at every rate either way.
  • Frame-rate related: yes.

Audio

A user track at another sample rate stays silent

  • Symptom: in the MP3 player (user tracks), a track at a different sample rate from the one before never plays: the player stays silent on it.
  • Cause: CAEStreamingChannel::Service stops the buffer with a 35 ms smooth fade before switching, and the fade ends after the next track's Play, so it stops the new track.
  • Fix: the fade is cancelled and the buffer (which only holds silence then) is stopped at once.
  • Where: CAEStreamingChannel::Service, src/Game/Audio/AEStreamingChannel.cpp.
  • PR / issue: #4704 / #4696.
  • Verified: headless Linux build recording the audio output, with test tones at 44100, 22050 and 48000 Hz: before, 22050 to 48000 went silent for good; after, 48 of 48 rate changes played the next track in full.
  • Frame-rate related: no.

The MP3 player goes silent after a play mode change

  • Symptom: after changing the user track play mode (to or from sequential), the MP3 player can restart the track or go silent.
  • Cause: when the play mode change and a track concatenation are handled in the same frame, CAERadioTrackManager::CheckForTrackConcatenation queues from the third track ID, leaving no next track. The stream thread prepares the playing track again, and the radio never plays it.
  • Fix: the concatenation queues from the next track again.
  • Where: CAERadioTrackManager::CheckForTrackConcatenation, src/Game/Audio/AERadioTrackManager.cpp.
  • PR / issue: #4705 / #4697.
  • Verified: headless Linux build: from Audio Setup, 13 of 24 runs went wrong without the fix and 0 of 54 with it; from a car's radio, both runs that hit the case stalled without the fix and none of 4 with it.
  • Frame-rate related: no.

WAV user tracks swap channels or stop early

  • Symptom: a WAV user track can play with its left and right channels swapped, and the track after it can stop after about 4.5 seconds.
  • Cause: CAEWaveDecoder::SetCursor rounds a seek to a whole 16-bit sample instead of a whole stereo frame, so half the start offsets land in the middle of a frame. A track concatenated after it in the same read comes up 2 bytes short, which is taken for the stream's end.
  • Fix: the position moves back to the start of its stereo frame.
  • Where: CAEWaveDecoder::SetCursor, src/Game/Audio/AEWaveDecoder.cpp.
  • PR / issue: #4706 / #4702.
  • Verified: headless Linux build with an Ogg and a WAV track: before, 2 of 16 runs came up short and starved; after, 0 of 24.
  • Frame-rate related: no.

MP3 user tracks don't play without QuickTime

  • Symptom: with QuickTime not installed and the automatic media scan on, .mp3 user tracks are skipped. A scan started from the menu makes them play.
  • Cause: without QuickTime, InitializeUtrax moves .mp3 to Windows Media. But the automatic scan at start-up runs before InitializeUtrax, so it records each .mp3 as a QuickTime file, and CreateDecoder refuses it.
  • Fix: when QuickTime isn't there, CreateDecoder takes a QuickTime-typed track's type again from its extension: .mp3 goes to Windows Media; .aac, .m4a and .mov are still refused.
  • Where: CUserTracksStuff::CreateDecoder, src/Game/Audio/AEUserRadioTrackManager.cpp.
  • PR / issue: #4859 / #4857.
  • Verified: on Windows 11 with the VS2025 Normal Win32 exe: before, silence with the automatic scan; after, the .mp3 plays (and alternates with a .wma).
  • Frame-rate related: no.

Menus and files

"New game" leaves the working directory in the user's folder

  • Symptom: after the new game screen's mission pack scan, the game's own files fail to open until something sets the folder again. With the menu over a game playing a stream track, the beat info is read from a failed open (on Windows a garbage header; in the Linux port before its own fix, a crash).
  • Cause: CMenuManager::ProcessMissionPackNewGame switches to the user's documents folder for the scan and never switches back.
  • Fix: the working directory is set back to the game's folder after the scan.
  • Where: CMenuManager::ProcessMissionPackNewGame, src/Game/FrontEnd/Frontend_PC.cpp.
  • PR / issue: #4761 / #4758.
  • Verified: a scripted run (load a save, wait, Esc, new game): 2,145 failed file opens with only the port's invalid-handle fix (Port fixes), 0 with this fix too, and the new game starts.
  • Frame-rate related: no.

Clone this wiki locally