Freeze as a cutscene starts: title-main spins in the title's code at +0x262696f, walking a list that never ends #571

Open
opened 2026-12-05 14:31:19 +00:00 by jensmonne · 2 comments
Contributor

What happened

In chapter 1, at a bar, just as a cutscene started, about 30 minutes into play (world first shown 13:46:55 UTC, last frame 14:17:13 UTC), the picture stopped for good; the music kept playing. Darner's stall report, 19 s later:

WARN darner_gpu::stall: no frame shown for 19.0 s: over 3.0 s the process's 147 threads used 4350 ms of CPU; the busiest: [unnamed (404) 3010 ms, unnamed (440) 1150 ms, wine_xinput_hid_update (452) 80 ms, ...] (one thread near 3000 ms spins; ...)

What I saw, with the game still frozen:

  • The spinning thread is title-main (Linux thread name), at 99 % of a core. A second title-main thread used about 37 %.
  • perf record -t <tid> for 3 s: 11,991 of its 12,001 samples are on five instructions (the other 10 had no address) in the title image, darner-image-b99f876b74d4a77f.dll mapped at 0x6fffed360000: +0x262696f, +0x2626973, +0x2626977, +0x262697e, +0x2626981.
  • Those instructions are a loop that follows a list: 20-byte records in an array, each holding the next record's index as a 16-bit number; the loop ends at a record whose stored 32-bit value is not below the one searched for, or when the next index equals a given end index. It never ends, so the links must form a ring that never reaches that end index and holds no record with a high enough value.
  • No GPU error: no Xid in the kernel log, no device removal in the play log. The card was at 15.7 of 16.3 GB, with texture uploads waiting for room (the budget is 10500 MB).

My guess, not confirmed: the list was corrupted earlier, perhaps by two threads changing it at once. The loop is where it shows, not where it breaks.

It happened once so far. A crash an hour earlier, in a separate session, was also in the title's code: 0xc0000005 at darner-image-b99f876b74d4a77f.dll+0xad533c (write ...: nothing mapped there), after 4 minutes of play. The same crash at the same address happened once on 2026-11-30, on an older build. I don't know whether the two are related; both are in crashes.log.

Before you post

  • I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this.
  • This issue is about one problem.
  • I verified the game files and run no mods.

RAY TRACING in F1

Off

GPU and driver

RTX 5080 16 GB, NVIDIA 620.73.04

CPU, RAM and Windows version

Ryzen 7 7800X3D, 32 GB; Arch Linux (kernel 7.3.6) with Proton Experimental 11.0-20261123b, not Windows

Darner release or commit

v2026.12.04.01 (9b288a70), cross-built on Linux, plus my local patches that are not in Darner: 64 MB pipeline worker stacks, a guard for driver compiler crashes, #365 (warm-bad refused in play), #562 (static sampler pipelines), and two input helpers for scripted runs.

Settings

Series X, 2560x1440, DLSS Super Resolution balanced, frame generation off, ray tracing off, 30 fps cap. DARNER_ lines added: DARNER_VRAM_BUDGET_MB=10500, DARNER_FULLSCREEN=1, DARNER_MOUSE_WARP=1, DARNER_DXC (a folder with dxcompiler). Other environment: VKD3D-Proton's descriptor heap on (its default).

Log files attached

darner-play-20261205-1446.log (the run that froze), crashes.log

Are you working on a fix?

Yes, I'm on it

### What happened In chapter 1, at a bar, just as a cutscene started, about 30 minutes into play (world first shown 13:46:55 UTC, last frame 14:17:13 UTC), the picture stopped for good; the music kept playing. Darner's stall report, 19 s later: ``` WARN darner_gpu::stall: no frame shown for 19.0 s: over 3.0 s the process's 147 threads used 4350 ms of CPU; the busiest: [unnamed (404) 3010 ms, unnamed (440) 1150 ms, wine_xinput_hid_update (452) 80 ms, ...] (one thread near 3000 ms spins; ...) ``` What I saw, with the game still frozen: - The spinning thread is `title-main` (Linux thread name), at 99 % of a core. A second `title-main` thread used about 37 %. - `perf record -t <tid>` for 3 s: 11,991 of its 12,001 samples are on five instructions (the other 10 had no address) in the title image, `darner-image-b99f876b74d4a77f.dll` mapped at 0x6fffed360000: +0x262696f, +0x2626973, +0x2626977, +0x262697e, +0x2626981. - Those instructions are a loop that follows a list: 20-byte records in an array, each holding the next record's index as a 16-bit number; the loop ends at a record whose stored 32-bit value is not below the one searched for, or when the next index equals a given end index. It never ends, so the links must form a ring that never reaches that end index and holds no record with a high enough value. - No GPU error: no Xid in the kernel log, no device removal in the play log. The card was at 15.7 of 16.3 GB, with texture uploads waiting for room (the budget is 10500 MB). My guess, not confirmed: the list was corrupted earlier, perhaps by two threads changing it at once. The loop is where it shows, not where it breaks. It happened once so far. A crash an hour earlier, in a separate session, was also in the title's code: `0xc0000005 at darner-image-b99f876b74d4a77f.dll+0xad533c (write ...: nothing mapped there)`, after 4 minutes of play. The same crash at the same address happened once on 2026-11-30, on an older build. I don't know whether the two are related; both are in crashes.log. ### Before you post - [x] I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this. - [x] This issue is about one problem. - [x] I verified the game files and run no mods. ### RAY TRACING in F1 Off ### GPU and driver RTX 5080 16 GB, NVIDIA 620.73.04 ### CPU, RAM and Windows version Ryzen 7 7800X3D, 32 GB; Arch Linux (kernel 7.3.6) with Proton Experimental 11.0-20261123b, not Windows ### Darner release or commit v2026.12.04.01 (9b288a70), cross-built on Linux, plus my local patches that are not in Darner: 64 MB pipeline worker stacks, a guard for driver compiler crashes, #365 (warm-bad refused in play), #562 (static sampler pipelines), and two input helpers for scripted runs. ### Settings Series X, 2560x1440, DLSS Super Resolution balanced, frame generation off, ray tracing off, 30 fps cap. DARNER_ lines added: DARNER_VRAM_BUDGET_MB=10500, DARNER_FULLSCREEN=1, DARNER_MOUSE_WARP=1, DARNER_DXC (a folder with dxcompiler). Other environment: VKD3D-Proton's descriptor heap on (its default). ### Log files attached darner-play-20261205-1446.log (the run that froze), crashes.log ### Are you working on a fix? Yes, I'm on it
Contributor

Same freeze here, plus what looks like the same list broken a different way. RTX 4080 16 GB, driver 620.73.04, Linux under Proton-CachyOS, Darner on main c8258f9 with a few open PRs, Series S profile, hardware RT on. The title image is the same build, darner-image-b99f876b74d4a77f.dll.

The freeze. It happened at 17:24:39 UTC on 2026-12-05, after about 19 minutes of driving in the city. The stall report reads like yours:

WARN darner_gpu::stall: no frame shown for 18.4 s: over 3.0 s the process's 185 threads used 3910 ms of CPU; the busiest: [unnamed (592) 2990 ms, unnamed (632) 690 ms, ...] (one thread near 3000 ms spins; none busy: every thread waits)

Two title-main threads ran at 99 % of a core. The kernel logged no Xid in the next 3.5 minutes. The card stayed at 7 to 20 % use with its memory flat (14.9 GB in nvidia-smi), so the GPU was not stuck in a shader. I could not take a stack, because ptrace is blocked here without root.

The crash at +0xad533c. It came earlier the same day, at 12:41:02 UTC, about 20 minutes into a city drive, on an older build of ours with an experimental shader switch on:

unhandled exception 0xc0000005 at darner-image-b99f876b74d4a77f.dll+0xad533c (write 0x1d9a70c67e: reserved, never committed)
rax 0x99a70c690 ... r8 0x99a714fac r9 0x99a71a470 r11 0x4fffffffb
code: ... 4d 0f bf 18 66 45 89 19 45 89 db 4f 8d 1c 9b | 66 42 89 4c 98 02 ...

Decoded, the code before the fault is:

movsx r11, word [r8]
mov   [r9], r11w
mov   r11d, r11d
lea   r11, [r11+r11*4]
mov   [rax+r11*4+2], cx    ; faults

It reads a 16-bit index, which was 0xFFFF, so r11 becomes 0xFFFFFFFF and then 0x4FFFFFFFB. It then writes into a record of 20 bytes (index × 5 × 4) at that index. That matches the list you describe: 20-byte records linked by 16-bit indices. A 0xFFFF end mark used as a real index would write far past the array. Your ring of links that never reaches the end index could be the same corruption seen from the reading side. I can't say which thread breaks it.

Before both. Texture memory was full the whole session: the log had hundreds of "a texture already on the card is brought up to date although the card has no room for new ones" lines. A few minutes before one of the failures I saw floor tiles, and at other times faces, show another object's texture. I don't know whether that is related, but it points at heavy streaming while the camera moves.

Next I'll try to reproduce it on a fixed bench scene first and then on a route with a lot of camera movement. I'll post what I find.

Same freeze here, plus what looks like the same list broken a different way. RTX 4080 16 GB, driver 620.73.04, Linux under Proton-CachyOS, Darner on `main` c8258f9 with a few open PRs, Series S profile, hardware RT on. The title image is the same build, `darner-image-b99f876b74d4a77f.dll`. **The freeze.** It happened at 17:24:39 UTC on 2026-12-05, after about 19 minutes of driving in the city. The stall report reads like yours: ``` WARN darner_gpu::stall: no frame shown for 18.4 s: over 3.0 s the process's 185 threads used 3910 ms of CPU; the busiest: [unnamed (592) 2990 ms, unnamed (632) 690 ms, ...] (one thread near 3000 ms spins; none busy: every thread waits) ``` Two `title-main` threads ran at 99 % of a core. The kernel logged no Xid in the next 3.5 minutes. The card stayed at 7 to 20 % use with its memory flat (14.9 GB in `nvidia-smi`), so the GPU was not stuck in a shader. I could not take a stack, because ptrace is blocked here without root. **The crash at +0xad533c.** It came earlier the same day, at 12:41:02 UTC, about 20 minutes into a city drive, on an older build of ours with an experimental shader switch on: ``` unhandled exception 0xc0000005 at darner-image-b99f876b74d4a77f.dll+0xad533c (write 0x1d9a70c67e: reserved, never committed) rax 0x99a70c690 ... r8 0x99a714fac r9 0x99a71a470 r11 0x4fffffffb code: ... 4d 0f bf 18 66 45 89 19 45 89 db 4f 8d 1c 9b | 66 42 89 4c 98 02 ... ``` Decoded, the code before the fault is: ``` movsx r11, word [r8] mov [r9], r11w mov r11d, r11d lea r11, [r11+r11*4] mov [rax+r11*4+2], cx ; faults ``` It reads a 16-bit index, which was 0xFFFF, so r11 becomes 0xFFFFFFFF and then 0x4FFFFFFFB. It then writes into a record of 20 bytes (index × 5 × 4) at that index. That matches the list you describe: 20-byte records linked by 16-bit indices. A 0xFFFF end mark used as a real index would write far past the array. Your ring of links that never reaches the end index could be the same corruption seen from the reading side. I can't say which thread breaks it. **Before both.** Texture memory was full the whole session: the log had hundreds of "a texture already on the card is brought up to date although the card has no room for new ones" lines. A few minutes before one of the failures I saw floor tiles, and at other times faces, show another object's texture. I don't know whether that is related, but it points at heavy streaming while the camera moves. Next I'll try to reproduce it on a fixed bench scene first and then on a route with a lot of camera movement. I'll post what I find.
Contributor

A follow-up on the crash at +0xad533c.

larp has the same crash open as gamingwithhomie/larp#59 (Windows, RTX 4080). I hit it today on larp under Proton too, after 43 minutes. Our stack and registers match theirs, so it is the same title bug on both layers.

The title's own crash report (data\7952987A\temp\*.crash.log) has a MEMORYINFO block. Its Pool line was nearly full in both crashes, with Unused at 0:

Darner, Series S, 12:41 UTC:   Pool: 267235648/270532592   (99 %)
larp, Series X, 22:41 UTC:     Pool: 591978320/624951280   (95 %)

My guess: the pool fills up over a long session. A list record allocation then fails and returns the 0xFFFF end mark, which the caller uses as an index (the 0x4fffffffb in r11). That would also explain the ring of links that never reaches the end index. It is not proven. Next I'll log the pool during a long run to see whether it only grows. If anyone has a crash log from this freeze or crash, the Pool line would help.

A follow-up on the crash at +0xad533c. larp has the same crash open as gamingwithhomie/larp#59 (Windows, RTX 4080). I hit it today on larp under Proton too, after 43 minutes. Our stack and registers match theirs, so it is the same title bug on both layers. The title's own crash report (`data\7952987A\temp\*.crash.log`) has a `MEMORYINFO` block. Its `Pool` line was nearly full in both crashes, with `Unused` at 0: ``` Darner, Series S, 12:41 UTC: Pool: 267235648/270532592 (99 %) larp, Series X, 22:41 UTC: Pool: 591978320/624951280 (95 %) ``` My guess: the pool fills up over a long session. A list record allocation then fails and returns the 0xFFFF end mark, which the caller uses as an index (the `0x4fffffffb` in r11). That would also explain the ring of links that never reaches the end index. It is not proven. Next I'll log the pool during a long run to see whether it only grows. If anyone has a crash log from this freeze or crash, the `Pool` line would help.
TrustNo1 changed title from [bug][crash][cutscene][linux-proton] Freeze as a cutscene starts: title-main spins in the title's code at +0x262696f, walking a list that never ends to Freeze as a cutscene starts: title-main spins in the title's code at +0x262696f, walking a list that never ends 2026-12-06 03:19:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#571
No description provided.