Project

General

Profile

Actions

Emulator Issues #13723

open

Log Manager can cause a freeze.

Added by taolas about 7 hours ago.

Status:
New
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

Windows 10, latest Dolphin version, any game. Dual core off.

Around when the following is being executed by the CPU thread, a call to Core::CPUThreadGuard from the Main Thread is causing a complete lockup/freeze for me.

void ConsoleListener::Log([[maybe_unused]] Common::Log::LogLevel level, const char* text)
{
  ::OutputDebugStringW(UTF8ToWString(text).c_str());
}

This is most reproduceable by loading a set of memory breakpoints while a game is running, with one of the MBP addresses getting hammered. BPs need logging enabled. This will cause (CPU thread) logging on the MBP address that gets triggered to clash with a (Main Thread) CPU thread guard in MemChecks::Add.

Alternatively, programming in an infinite loop into a logging call on the CPU thread, then triggering any CPU Guard in the main thread will lock up both threads on the same code listed above.

I'm worried this is a source of random instability.

No data to display

Actions

Also available in: Atom PDF