UE4 title (PPSA15657): LowLevelFatalError "RemoveFromOuterMap NumRemoved = 0" when the title screen opens the menu #2365
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?
Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-09T16:25:29Z.
Title: Disney Epic Mickey: Rebrushed (PPSA15657 v01.000.000, retail, UE4).
Build: the
mickey/testingstack (see #2255) onmain+ #2339, Linux, kernel 7.0, RX 7600 (RADV).At the title screen, pressing Cross to open the main menu ends the process in most runs. About 0.5 s after the press, Unreal reports an internal consistency error and then executes its debug break:
RemoveFromOuterMap(UObjectHash) removes an object from the outer-to-objects map and found it missing. The object belongs to the UMG animation entity-system linker, which the title screen's widget animations use and which is torn down when the menu opens.What is known
scePthreadMutex*inlibkernel/Pthread/src/Mutex.cpplooks correct for what Unreal'sFCriticalSectionneeds: recursive counting, error-checkEDEADLK,trylock, atomic owner tracking.I'm continuing on this (thread-count experiments, then the event and condition-variable paths) and will post what I find here. Pointers are welcome if someone already knows Unreal titles with the same error.
Investigated and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-09T22:53:04Z.
Update: host import is the main suspect.
Same build and timing as above (Cross about 3 s after the title appears), with only environment variables changed:
RemoveFromOuterMapAPS5_NO_HOST_IMPORT=1)One of the five runs with imports off also had
APS5_GPU_NO_WRITEBACK=1. In all five, the menu opened and the game went on to Continue, the opening cutscene and gameplay. One of them ran 44 minutes into the level without an error.With imports on, waiting 20 s at the title before pressing Cross doesn't avoid it: of three such runs, one still ended this way.
If the true rate with imports on is 5 in 8, five clean runs in a row would happen by chance about 0.7% of the time. So this points at host-imported guest memory: either the GPU writes into, or the driver stores over, memory the CPU is using at that moment. It doesn't look like a CPU-side race in the engine. It doesn't yet say which import or which write.
APS5_GPU_NO_WRITEBACK=1on its own isn't a usable workaround: the level then stops atVulkan dispatch: workgroup count exceeds device limits, because an indirect dispatch reads arguments that an earlier GPU pass never wrote back.Next I'll find the address of the outer-map entry that goes missing and watch writes to its pages with imports on (
APS5_WATCH_WRITE/APS5_WRITE_WATCH_IMPORTS), to see whether a GPU-side write or a driver store touches it.Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-10T07:45:54Z.
Update: found the cause. The driver writes DCC "uncompressed" keys over memory where Unreal keeps the outer map.
I ran the title under gdb, with a breakpoint on the
NumRemoved = 0branch inRemoveFromOuterMap(eboot0x1d17031), with host import on andAPS5_TRACE_DCC_KEYS=1. The first run caught it:The trace shows the driver writing over exactly that range, roughly every frame:
That's about 120 such stores over
0x201c2e0000+0x28000before the crash. The map's 152 KiB sits inside that 160 KiB key range.What seems to happen
0x20332f0000, 32 MiB) has metadata compression on, with its DCC address at0x201c2e0000. Unreal uses that memory for theFUObjectHashTablesouter map.Clear0000(uploadedKeysis a clear state).StorageTexture::MarkDirty(Graphics/src/Texture.cpp, thetraceKeyStore("first write", ...)branch) then callsMarkDccUncompressed, which queues a GPU fill of0xffover the whole key range.NumRemoved = 0.This fits what was already known:
Next
The question is whether the driver should store keys on a "first write" at all when the game didn't ask for it. I'm testing a fix that stops this store from touching memory the guest has written since the keys were read. I'll report trial numbers with host import on.
Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-10T09:32:47Z.
Follow-up with trial numbers. They change how strong the claim above is.
Fix branch:
johnmaia:fix/agc-keep-mixed-dcc-keys(one commit,Texture.cpp). The three storage-image write-back paths now skip the "uncompressed" key store whenCurrentDccKeysreads the range asMixed. Those keys already read as uncompressed (textureClearKeysreturnsUncompressedfor them), so the store has no effect on the driver's own reads; it only overwrites whatever the title keeps there. I can't open a PR while intake is paused, so the branch is there for anyone who wants it.Trials: Cross 3 s after the title, host import on, RX 7600 / RADV:
NumRemoved = 0main+ stack, without the fix (earlier comment)main(f70a091f) + stack + fixmain+ same stack, fix revertedSo on current
mainthe crash doesn't reproduce with or without the fix. I can't credit the fix for the 0/8. Something onmainsince then changed the timing or the path. The startup movies also no longer play in these runs (the trials hide them to save 13 minutes per boot), which shifts timing too.What still holds: on the older build, the gdb +
APS5_TRACE_DCC_KEYSrun caught the driver filling0xffover the outer map's storage right before the abort. The store over non-uniform keys is still onmain, so the corruption can come back whenever the title reuses a key range. I'd keep the fix, but there's no repro for it on currentmain.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:17:52Z.
Closing: it no longer reproduces on main (0 of 8 with your fix reverted), and #3458 has since stopped the write-back from storing the keys a second time over memory the title reused. Reopen with a run on current main that shows the first-write store landing on title memory.