MaxLastBreath / TOTK-mods

Other
584 stars 19 forks source link

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

Closed jasondyoungberg closed 1 month ago

jasondyoungberg commented 2 months ago

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

MaxLastBreath commented 2 months ago

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

jasondyoungberg commented 1 month ago

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

MaxLastBreath commented 1 month ago

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

jasondyoungberg commented 1 month ago

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