rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

Resistance 1: Crash on Demuxer - F {PPU[0x1000046] Thread (Demuxer) [0x005ec2cc]} VM: Access violation writing location 0x0 (unmapped memory)

Open digant73 opened this issue 1 year ago • 1 comments

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:

demuxer

Details

No response

Attach a log file

RPCS3.log.gz

Attach capture files for visual issues

No response

System configuration

No response

Other details

No response

digant73 avatar Jan 14 '25 21:01 digant73

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
	}

digant73 avatar Apr 25 '25 15:04 digant73