Game: Windows blue-screens with amdkmdag.sys leaving Hyrule Castle Market #2577
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2577
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported on Discord
Longshot version and channel
Longshot 3.2.0 stable for the original report. Subsequent reports include nightly-1117 and other builds; see investigation notes below.
What happened and steps
The reporter's PC crashes with a Windows blue screen while playing Longshot. Initial repeatable trigger reported was entering/leaving Hyrule Market, including Market to Hyrule Field. Sometimes the transition completes and they can walk briefly; sometimes it freezes during the transition. The original report said this happened every time. Stop code shown:
SYSTEM_THREAD_EXCEPTION_NOT_HANDLED (0x7E),amdkmdag.sys.The reporter later clarified that crashes may occur on entering the Market as well as leaving it. They provided another Windows Event 1001 on 2026-12-04 22:30:09 UTC: bugcheck
0x50(PAGE_FAULT_IN_NONPAGED_AREA), with parameters0xffff918ce2548008, 0, 0xfffff801492242a0, 0, referencingC:\Windows\Minidump\120426-18609-01.dmp. The reporter was unsure whether this crash followed loading a save beside Zelda as Child Link, or occurred on the sequence where Impa takes Link outside the castle; they did not reach that point because of the blue screen.Earlier Event 1001 information included a
0x7Eaccess violation (0xffffffffc0000005) and dump120426-21734-01.dmp. Additional details and investigation from later reports are in the comments.Where in the game and how often
Area loading/transitions around Hyrule Market and Hyrule Field; more recent report also describes a possible crash during the first area load after loading a save. Frequency and exact trigger for the latest event are uncertain.
Graphics card and driver version
AMD Radeon RX 580 2048SP; the original reporter reported AMD driver 26.11.2. Other reports and driver details are recorded in comments.
CPU, RAM and operating system
Original report: Windows 11, 16 GB DDR4 RAM. CPU model was not provided in that report. See comments for other PC reports and subsequent investigation.
Logs and graphics settings
No Longshot bug-report folder or
longshot_log.txtsupplied. Windows minidumps were attached in Discord; they are not readable through the support tools. Graphics settings are not currently available.Expected
Area transitions and loading should not blue-screen or crash the PC.
Related reports
0x50blue-screen report; comments discuss the common AMD/Windows video-memory paging path.Investigation notes
The comments document additional reports, dump-header/stack observations, and possible Windows 11/AMD Polaris video-memory paging interaction. These are leads rather than a confirmed cause or tested fix. The latest reported
0x50event adds uncertainty about the precise point in gameplay and another dump attachment.Still unknown
Exact trigger and frequency for the latest crash; CPU model and graphics settings for the original report; a Longshot bug-report folder/log; whether the new dump's analysis confirms the same paging path; and whether a reproducible workaround exists.
Files from the Discord report:
From Discord:
Reporter supplied Windows Event 1001 for a 0x7E SYSTEM_THREAD_EXCEPTION_NOT_HANDLED crash with access violation (0xC0000005), timestamp 2026-12-04 00:21:03 UTC. The event points to
C:\Windows\Minidump\120426-21734-01.dmp; the dump was attached in Discord, but the support tools cannot read binary minidump files.Another report with the same pattern, from Discord (2026-12-04/05): a Windows blue screen inside AMD's kernel driver while an area loads, on an RX 580.
PC: Radeon RX 580 (
1002:67df, the compute mesh fallback), AMD proprietary driver 25.8.1 (Vulkan0x800117), Ryzen 5 3600, 16 GB RAM, Windows 11 build 26200. Longshotnightly-1117-f359e262, sandbox off, 1920x1080, the game's own upscaler, Sharpness 60%.Stop code:
PAGE_FAULT_IN_NONPAGED_AREA(0x50). The player gave the stop code only; the "What failed" line and the minidump are asked for.What the logs show (two runs, diagnosis only; nothing reproduced, since no RX 580 here):
commit limit near: 600 MB of commit left, private 35.8 GB on 16 GB RAM + 16 GB page file) and near the VRAM allowance (7320 of 7367 MB), but it did not crash.The pattern so far (all AMD's Windows driver on an RX 580, all in
amdkmdag.sysduring area changes):amdkmdag.syson an RX 580 2048SP at 1080p.So it is not new in the 2026-12-03/04 nightlies, and it happens on driver versions from 25.8.1 to 26.11.2. Both features the renderer uses at an area load that go through the kernel driver (host memory import of the game's pools, and sparse binds for the mirrors) fit the timing. Nothing in these logs tells which one triggers it, and nothing here is tested. A minidump's
!analyze -vstack would narrow it.🤖 Generated with Claude Code
Follow-up from the same player (their words, not tested here):
nightly-1000played without a crash. The blue screens started when they updated the AMD driver and moved tonightly-1007at the same time. They then went back to driver 25.8.1, andnightly-1117still blue-screens. Other games run fine, and the GPU has no overclock or undervolt.Because two things changed at once, this doesn't yet separate the driver from the game. If
nightly-1000still plays on 25.8.1 today, the cause is innightly-1000-77ab34b1..nightly-1007-d984fd70, which is seven commits: #2822, #3032, #2204, #3017, #1561, #3025 and #3034. Of these, #2822 is by far the largest renderer and host change. #1561 is the only one that changes how the mesh fallback's buffer is allocated on the default path (a 16-byte-aligned records buffer). From reading the diffs, none of the seven changes host memory import or the sparse binds. That's a reading only, not a test. The player has been asked to playnightly-1000once on their current driver.🤖 Generated with Claude Code
Correction to my follow-up above: the player has since tried
nightly-1000again on driver 25.8.1, and it also blue-screens. So the seven-commit range between 1000 and 1007 is no longer a lead. Something changed on the PC itself, at the time of the driver update.The player also says that before the driver update,
nightly-1000started in about 30 s on every launch. Since the update, every launch prepares shaders again and the PC struggles, even on 1000. That fits both of their logs: each start saysthe driver's shader cache has 0 of 60 noted pipelines asked, including a start right after a clean close. So the driver isn't keeping its shader cache between launches, which points to a broken driver install.The minidump (from 2026-12-05 05:21 UTC; read from its header and driver list here, no symbols, no debugger):
0x50PAGE_FAULT_IN_NONPAGED_AREA. Arg10xffff808f05b3f008(the address read), Arg20(a read), Arg3amdkmdag.sys+0x242a0(the faulting instruction), Arg40.amdkmdag.sys, about 8 frames) is called fromdxgmms2.sys, Windows' video memory manager. That manager's worker threads page and evict video memory for every process, so this is the driver's memory-management path, not a call the game made directly.amdkmdag.sys's module entry holds what looks like its PE timestamp,0x6851c532(2025-06-17). That would fit the 25.8.1 driver the logs report, but the field isn't confirmed without a debugger.The player is reinstalling AMD's current driver with Factory Reset. The test: a second launch that comes up quickly would show the driver's cache works again, and then the loading zones.
🤖 Generated with Claude Code
Result of the driver reinstall (the player's words, nothing reproduced here): they installed AMD's newest driver with Factory Reset and used Adrenalin's Reset Shader Cache. Starts are fast again, so the driver keeps its shader cache across launches once more. The blue screens remain: about two minutes into play, or before the game loads, and an area change can't be reached.
amdkmdag.sys), and one indxgmms2.sys, Windows' video memory manager itself. No new dump has arrived yet.So a broken driver install is ruled out. Both crashes are in the path that moves video memory around, in two different modules. Ranked leads, none tested:
944 MB left under Windows' limit as it is now, and the page files can grow by 11146 MB more), then down tocommit limit near: 600 MB of commit left.nightly-1000played for days and now crashes too, which points to a change on the PC, not in the game.nightly-1000working for days before.The player has been asked whether XMP/EXPO is on, how much space is free on
C:, about Windows Update history, and for the new dumps. Suggested tries: a fixed 32 GB page file, XMP off for a test, and Windows Memory Diagnostic.🤖 Generated with Claude Code
Two more minidumps from the same player, read the same way as before (header and driver list only, no symbols, no debugger):
120526-28125:0x50, a read of0xffffd28ec2ca18c0. It faults insidedxgmms2.sysat+0xb17cd, Windows' video memory manager itself.120526-16015, with XMP turned off:0x50, a read of0xffff97064cde2688, Arg42. It faults inamdkmdag.sys+0xf9584(AMD's newest driver, after the Factory Reset reinstall), whichdxgkrnl.syscalls fromdxgmms2.sys+0xb1a0f.All three dumps, counting the one above, share the same chain of about 15
dxgmms2.sysreturn addresses from the bottom of the stack up (+0xd5101...+0x10485a,+0xafc5e). They split only at the last call:+0xb1a7ainto AMD's driver,+0xb17cdin VidMm,+0xb1a0finto AMD's driver. One paging path every time points to a software bug, not random memory corruption, and the run with XMP off crashed the same way. So RAM is dropped as a lead.The lead now: Windows 11. The dumps show a Windows 11 kernel (
15.26100), and the player upgraded from Windows 10 a few days ago. A report from a few days earlier, likely the same PC but unconfirmed (RX 580, Ryzen 5 3600, 16 GB, AMD 25.8.1, nightly-980), was on Windows 10 19045 with no blue screen. This issue's first report is on Windows 11 too. A bug between Windows 11's VidMm and AMD's Polaris driver, which now gets only maintenance updates, set off by the area loads' memory work, fits all of it. Against this: the player remembers Longshot running fine after the upgrade. How long, and whether they changed zones, has been asked.The test offered to the player is Windows' Go back to Windows 10, which only works within 10 days of the upgrade. Anyone with an RX 580 on Windows 10: whether you get this crash at area changes would help too.
🤖 Generated with Claude Code
Updated with more from Discord: Added the reporter's latest Event 1001 (0x50) and crash-location uncertainty, plus the attached dump reference.
A second player, a different PC, the same crash. Their minidump, read the same way (header and driver list only, no symbols, no debugger):
0x50PAGE_FAULT_IN_NONPAGED_AREA, a read of0xffff918ce2548008, Arg40. The faulting instruction isamdkmdag.sys+0x242a0, the exact offset of the first player's first dump above.0x660e000). The first player's first dump, on 25.8.1 (0x65fa000), also faulted at+0x242a0, so that function didn't move between the two driver builds.dxgmms2.sysintodxgkrnl.sys) calls AMD's driver, as on the first PC. Their Windows files are other builds, so those offsets don't compare with the first PC's.15.26100), 12 threads.What this changes. Two PCs fault on one instruction in AMD's driver, both while Longshot loads an area. So this isn't one PC's install, RAM or profile. Most likely it's a bug in AMD's driver that the area loads' memory work sets off. Correcting my comment above: Windows 11 is no longer the lead, since the first player remembers Longshot running fine after their upgrade.
The test now asked of both players:
RX_VK_MIRROR_SPARSE=0in the profile'slongshot_env.txt(whole VRAM mirrors, no sparse binds at area loads; costs some VRAM). The first player also turns their 4 mods and Sharpness off for the same try. If the crash stops with the switch, the sparse binds are what sets it off, and a default change for AMD's driver on these cards would be the fix to look at. That's untested here: no AMD card on this PC.🤖 Generated with Claude Code
The second player's log (the Launcher's, from start to the title screen; the player thinks it's the run that crashed on loading into the area, but no area load or crash is in it):
1002:6fdf, the compute mesh fallback), AMD 26.11.2 (Vulkan0x800117), 16 GB RAM with a 32,000 MB page file, 12 threads, Windows 11. Gamenightly-1093-b77c2f4b, sandbox off, the Auto preset (Minimum), the game's own upscaler, swapchain 1600x900.sparse VRAM mirrors (RX_VK_MIRROR_SPARSE): on: the switch wasn't set in this run. They have been shown where it goes (the profile'slongshot_env.txt).What the two players share: RX 580 (Polaris), Windows 11, 16 GB RAM, a 12-thread Ryzen, and a blue screen in
amdkmdag.syswhile an area loads. Two dumps fault at the same+0x242a0. Their AMD drivers range from 25.8.1 to 26.11.2 and newer, and Longshot fromnightly-1000tonightly-1117. This player's setup also matches this issue's opening report (RX 580 2048SP, 16 GB, Windows 11, 26.11.2); whether it's the same person isn't known.A side finding, not the crash: this log also says
the driver's shader cache has 0 of 49 noted pipelines asked ... it lost them, while AMD'sVkCachefolder holds 2,279 MB. The first player got the same line in a run straight after a clean close. The check (notes_lost_by_driver,gpu/vk/vk_draw.cpp) may misread on AMD's Windows driver, which would make every start rebuild for nothing. It's worth its own look.Both players are now asked to try
RX_VK_MIRROR_SPARSE=0and go through one loading zone.🤖 Generated with Claude Code
From Discord:
Follow-up from the reporter in Discord (2026-12-05): On RX 580 2048SP, the blue screen also occurred while transitioning between Hyrule Field and Market. The reporter says the error has varied:
SYSTEM_THREAD_EXCEPTION_NOT_HANDLEDinamdkmdag.sysandPAGE_FAULT_IN_NONPAGED_AREAinamdkmdag.sys. They testedRX_VK_MIRROR_SPARSE=0; it did not prevent the blue screen and performance regressed after repeated Field/Market transitions (Market spot fell from about 30 to 25 FPS; Field castle gate from 23–24 to 18 FPS). They prefer the performance with the switch unset. No Longshot performance profile/log or new minidump was provided in this follow-up. Another participant also reported a BSOD while testing the same transition, but their PC/report is separate and should not be merged into this reporter's case.From Discord:
Reporter clarified that
RX_VK_MIRROR_SPARSE=0did prevent the BSOD in their tested Hyrule Field/Market transitions, though they are unsure whether it prevents it in every situation. Performance dropped after repeated transitions (Market spot ~30 to 25 FPS; Field castle gate 23–24 to 18), and they prefer performance with the switch unset. No new minidump, Longshot log, or performance profile was attached.