HarbourMasters / 2ship2harkinian

Creative Commons Zero v1.0 Universal
885 stars 71 forks source link

Crash when toggling alt assets when paused #838

Closed Archez closed 1 week ago

Archez commented 1 week ago

Description of the crash:

2ship crashes when toggling alt assets when paused.

Can you reproduce? If so please list the steps:

  1. Pause the game
  2. Press Tab or Toggle Alternate Assets a number of times
  3. Crash / Softlock

Logs:

Stack trace shows a infinite loop in deconstructing the frame interpolation record struct.

System Information:

Additional Information:

This happens regardless of having any mods loaded.

ASAN suggests in LUS that gfx_sp_tri1 is accessing memory in rendering_state.textures that was de-allocated by gfx_texture_cache_clear. This function gets called when alternate assets is changed.