Repository navigation
Baldur’s Gate 3 (PPSA14002) #19621
birdmarty
started this conversation in
Game bring-up
Replies: 2 comments
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Existing thread
Title
Baldur’s Gate 3 (PPSA18463)
Content version tested
01.000.000
AnyPS5 commit
8de3dc8
System tested
Windows 11 (10.0 build 26300), WinLibs MinGW64 GCC, Intel Core i9-9900K, AMD Radeon RX 6800 (AMD proprietary driver 26.10.1, Vulkan 1.4.315)
Furthest point
Menu
What is shown
Last screen seen: the new-game loading screen immediately after difficulty selection. The game never reaches character creation or gameplay.
Progression and frame rate (cold cache, first run):
sceHttp2SendRequestAsyncabort unless user data is deleted first.What works:
What is missing:
sceHttp2SendRequestAsyncfunction unless user data is wiped.Highest state reached: Menus (crashes on the transition to Ingame).
Current blocker
Current stopping point (after the local heap-capacity patch below):
FATAL: unhandled exception 0xc0000005 on thread 32848 'WT/Low/WT_4'
— immediately after difficulty selection, during new-game world initialization.
Three main crashes encountered, in order:
[libc] unhandled exception 'St13runtime_error' thrown from 00007ff91b231798
terminate called after throwing an instance of 'std::runtime_error'
what(): sceHttp2SendRequestAsync not implemented
FATAL: abort() (SIGABRT) on thread 31124
Cause: the libSceHttp2 HLE stub throws std::runtime_error -> std::terminate -> SIGABRT. It only fires on warm runs: on a true first boot BG3 creates save dirs/config/EULA state and skips online telemetry/patch checks; once local user data exists, the game's background REST thread calls sceHttp2SendRequestAsync at startup. A warm shader cache also removes the early compile stall, letting the network thread reach the call sooner.
Workaround: delete download0 folder before each launch (forces the first-boot path).
ShaderRecompiler::Recompile: shader image heap capacity exceeded
[Shaders/ShaderRegistry.cpp:1894 operator()] Shader 0x2ed34ae00 snapshot=0x13c849325f0 could not be prepared after r... (log truncates mid-line, no what()/SIGABRT)
Cause: BindingAllocator.cpp:151 rejects stage-0 shaders whose expanded image descriptor groups exceed RuntimeAbi::SampledHeapCapacity / StorageHeapCapacity (64u). BG3's dynamic storage images expand to StorageMipSlots=16 slots each plus multiple runtime image modes per resource, overflowing the 64-slot heaps. Hit on adjacent shaders 0x2ed34ae00, 0x2ed350000 and 0x2ed34d000 across runs (warm cache shifts which one fails first). Failed shaders are never written to the disk cache, so this is a permanent, deterministic cache miss; binding/dispatching the missing pipeline then kills the process with a native access violation before the log buffer flushes (truncated mid-line at [src/Open.cpp:39 / [gpu]).
Local change applied: raised SampledHeapCapacity and StorageHeapCapacity from 64u to 256u in core/shader/recompiler/RuntimeAbi.hpp (matches ImageCapacity=256u; sizeof(ShaderData)=16064 and ExportMappingsDword=4008 static_asserts unchanged; Vulkan descriptor pool sizing in ShaderResources.cpp derives from the same constants; disk cache auto-reversions via ShaderCacheVersion). Rebuilt with ninja and swapped the rebuilt libs in (no relink needed). This clears the heap error, but the game still crashes at the same stage -> crash 3. So the heap limit is a real bug, but not the only blocker.
FATAL: unhandled exception 0xc0000005 on thread 30896 'Async I/O Processor'
FATAL: unhandled exception 0xc0000005 on thread 29148 'ServerWorker thread'
rip 0x00007ff93cce2c5c libOsiris.prx.guest.prx+0x32c5c
FATAL: unhandled exception 0xc0000005 on thread 32848 'WT/Low/WT_4' (after the heap patch)
Cause: crash occurs while streaming Act 1 assets (Gustav.pak, Textures.pak, InitialVirtualTextures_.pak) and spinning up Larian's Osiris story/scripting local server (world + session state). During this phase p50 frame times jump to 645–722 ms with spikes up to 6.24 s and Graphics.Copy.bytes hits 34–75 GB per 30 s, while the title only configures 512 MiB (0x20000000) of flexible memory — consistent with an unmapped guest address, mapping/handle-pool exhaustion, or an async I/O race under heavy streaming. The fixed guest offset libOsiris.prx.guest.prx+0x32c5c indicates a deterministic null/invalid dereference, not a random fluke. NOT a VRAM issue: the RX 6800 was using 6074 MiB of a 15569 MiB VK_EXT_memory_budget at crash time.
Related filesystem findings: temp0\Logs did not exist, so network..log / gold.*.log creation failed with 0x80020002 (ENOENT); earlier mid-init crashes may also have left half-written PlayerProfiles state. Creating temp0\Logs and regenerating a clean PlayerProfiles did NOT fix the crash, and it persists after the heap patch — this is the current emulator-side blocker.
How it was run
Build: local source build of AnyPS5 commit 8de3dc8 (Windows 11 10.0.26300, i9-9900K, RX 6800 16 GB, AMD driver 26.10.1, winlibs MinGW GCC 15.3.0, CMake + Ninja). Incremental rebuild after the RuntimeAbi.hpp patch with: ninja -C build (warnings only, links clean). Rebuilt libs were copied over the old ones in the game's runtime/module directory — no relink of eboot.bin/.prx needed since no exported symbols changed.
Game: Baldur's Gate 3, PPSA18463, content version 01.000.000, game version 4.1.1.3877533, NPWR36088_00.
Clean run (PowerShell):
$env:APS5_PLAYGO_UNLISTED_CHUNKS="installed"
$env:APS5_OUTPUT_RESOLUTION="1920x1080"
Profiling/trace runs (produced profile_bench_*.log, anyps5-report.json, anyps5-recipe.json):
$env:APS5_PLAYGO_UNLISTED_CHUNKS="installed"
$env:APS5_OUTPUT_RESOLUTION="1920x1080"
$env:APS5_TRACE_BENCH="1"
$env:APS5_TRACE_SUMMARY_EVERY="30"
$env:APS5_REPORT="1"
$env:APS5_TRACE="1" # full trace; without it "trace" is empty and the uploader rejects the Menus state
What was tested:
Delete/rename download0 folder before EVERY warm launch, otherwise the game aborts at boot with what(): sceHttp2SendRequestAsync not implemented (first-boot path skips the online check) This will be fixed when sceHttp2SendRequestAsync function gets implemented.
Manually create temp0\Logs — the game fails to create network/gold logs there (0x80020002). Creating it did not fix the new-game crash but removes the ENOENT spam.
Local patch required to get past shader registration: SampledHeapCapacity/StorageHeapCapacity 64u -> 256u in core/shader/recompiler/RuntimeAbi.hpp, rebuild, replace libs. Clears "shader image heap capacity exceeded" on 0x2ed34ae00/0x2ed350000/0x2ed34d000.
All reactions