Project

General

Profile

Actions

Emulator Issues #13367

closed

Access violations on savestate load

Added by MalleoHax about 1 year ago. Updated about 1 year ago.

Status:
Working as intended
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

Irrespective of game. This occurs for GameCube and Wii games alike.

What's the problem? Describe what went wrong.

On Debug or release builds, Dolphin throws access violations after loading savestates. They are a mix between reads and writes. The number of access violations seems to vary. Access violations usually occur 1 and 2 frames after the savestate load. For Mario Kart Wii I observe around 74 access violations within the 3 frames after a savestate load has occurred. For Paper Mario: TTYD I observe 177 access violations on the frame after loading a savestate.

NOTE: MD5 checksum was verified for these games, so I do not believe this is a gamefile integrity issue.

What steps will reproduce the problem?

  1. Compile in Visual Studio
  2. Launch with debugging
  3. In (Debug -> Windows) Exception Settings, enable Win32 Exceptions -> 0xC0000005 Access violation
  4. Launch game
  5. (Save a state and then) Load State
  6. Observe exceptions thrown for every load state.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

Yes. 5.0-20128

Is the issue present in the latest stable version?

Uncertain. Could not compile past 5.0-11788, where it was also present. Thus I was unable to bisect the origin of this issue.

What are your PC specifications? (CPU, GPU, Operating System, more)

CPU: AMD Ryzen 7 3700X
GPU: AMD Radeon RX 5700XT
OS: Windows 10 Home
RAM: 32GB

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

The access violation is thrown inside constexpr T BitField::Value(std::false_type) const in Source/Core/Common/BitField.h, though I highly doubt execution intended to read this function. Here is one particular callstack I observe, as well as the disassembly:
Callstack

Disassembly


Files

clipboard-202309270012-2nd7e.png (7.6 KB) clipboard-202309270012-2nd7e.png Callstack MalleoHax, 09/27/2023 04:12 AM
clipboard-202309270013-an7pl.png (80.1 KB) clipboard-202309270013-an7pl.png Disassembly MalleoHax, 09/27/2023 04:13 AM
Actions

Also available in: Atom PDF