Resistance 1: Crash on Demuxer - F {PPU[0x1000046] Thread (Demuxer) [0x005ec2cc]} VM: Access violation writing location 0x0 (unmapped memory)
Quick summary
Just started Resistance Fall of Man without pressing on start button when asked by the game. After about one minute, an intro video is started and the game freezes with the following error:
F {PPU[0x1000046] Thread (Demuxer) [0x005ec2cc]} VM: Access violation writing location 0x0 (unmapped memory)
The issue is present also on old versions (tested also on v0.0.29-15783).
Below the screenshot of the freeze:
Details
No response
Attach a log file
Attach capture files for visual issues
No response
System configuration
No response
Other details
No response
the issue is due to a no more physical memory available in the lv2 memory container.
More specifically, the check at line 129 in sys_memory.cpp will fail and a CELL_ENOMEM error code is returned. After that, the reported crash will happen.
If I simply comment line 131 (so no error is returned and the requested memory will be allocated), the intro video is properly played without any issue.
Being errors such as VM: Access violation writing location 0x0 (unmapped memory) frequently reported, it could be useful if main developers have a look to that issue. Maybe it covers a general bug quite important
// Get "default" memory container
auto& dct = g_fxo->get<lv2_memory_container>();
// Try to get "physical memory"
if (!dct.take(size)) // LINE 129
{
return {CELL_ENOMEM, dct.size - dct.used}; // LINE 131 - NO MORE MEMORY AVAILABLE ON THE CONTAINER
}