MaxLastBreath/TOTK-mods

[Bug]: High Preset Randomly Crashing on Ryujinx due to `System.AccessViolationException`

Closed this issue · 4 comments

Describe the bug

My game will randomly crash after playing for around 1 hour.

cmd : Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an 
indication that other memory is corrupt.

Reproduction steps

  1. Choose the high preset
  2. Play the game for ~1 hour
  3. The game freezes then closes

Additional context

I'm using Ryujinx 1.1.1298 and Optimizer 2.0.5

stderr.log
stdout.log
maxlastbreath.ini

What's your operating system?

Windows 11

May want to report this to ryujinx, they have an issue with texture cache being too small at times

I got a temporary fix that seems to be working. I changed this constant to 1536 * 1024 * 1024

Yee remember I told you on discord, it is the texture cache haha, hopefully one of the devs will bring a more permanent fix in the future tho

Yeah, I created a feature request on ryujinx. https://github.com/Ryujinx/Ryujinx/issues/6798