Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Crash when closing the main window while debugging with Visual Studio #177

Open
Wade7wastaken opened this issue Feb 10, 2024 · 6 comments
Open

Comments

@Wade7wastaken
Copy link

Steps:

  1. Start debugging mupen with Visual Studio. Other debuggers might work for this but I don't know.
  2. Open settings (Options -> Settings). This is the only way I've found to make this crash reliable.
  3. Close the main window with either the x button or alt+f4
  4. Observe crash in Visual Studio

image

I know this is a crash in an nvidia dll, and it might not be able to be reproduced by everyone, but it's annoying enough to me to open an issue about it. This issue is very low priority because it really only affects debugging.

There are also a few other crashes I've encountered while closing mupen. I can't find any consistent way to reproduce these, but they were both from closing mupen right after loading a rom.

image
image

@Aurumaker72
Copy link
Collaborator

A similar but not identical crash happens inside GetMessage, withSTATUS_FATAL_USER_CALLBACK_EXCEPTION

@Aurumaker72
Copy link
Collaborator

This is caused by lack of synchronization when pushing VI and frame times to the circular buffers (circular_push)

@Aurumaker72
Copy link
Collaborator

Can't repro any crashes related to this after 8731338

@Aurumaker72
Copy link
Collaborator

Now it's crashing in nvidia usermode driver

@Aurumaker72
Copy link
Collaborator

Problem comes at least partially from emu thread not being closed before exiting.

The emu thread keeps barreling along while main thread is calling C++ destructors, and it rips various resources from right under its feet

@Aurumaker72
Copy link
Collaborator

This issue comes from Direct64, not sure how much can be done here.

grafik

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants