sarah-walker-pcem / pcem

PCem
http://pcem-emulator.co.uk
GNU General Public License v2.0
1.5k stars 207 forks source link

My whole PC freezes randomly when running PCem #134

Open FlashlightET opened 2 years ago

FlashlightET commented 2 years ago

Describe the bug My whole (real-life) PC freezes randomly when running PCem. The display is stuck on the last rendered frame and I have to flick the switch on the PSU. (this also somehow caused my OBS recordings to be 0 filled, despite being uncorruptible MKV files, but unrelated)

To Reproduce Steps to reproduce the behavior:

  1. Have my PC
  2. Run PCem
  3. Wait 2-44 minutes
  4. ???

Expected behavior Emulation continues

Screenshots N/A

Emulator configuration

Host machine

Additional context The first freeze happened while I was formatting a virtual floppy (format worked fine after this freeze)

The second freeze happened while I was trying to mount the floppy (mount worked fine every time before and after this freeze)

The third freeze happened ~3 seconds til the end of a MIDI file while I was dragging the window (every other midi file plays fine & window dragging works fine every other time)

ruben-balea commented 2 years ago

It doesn't have to be PCem itself, something similar was happening to me, I thought it was the graphics card overheating because it constantly runs gpugrid projects in the background but on one occasion I had the computer cover removed when it crashed and the graphics card was just warm, then someone recommended me to use the Event viewer to see what happened.

To open the Event viewer open the start menu and type eventvwr.msc (a search box appears automatically when you start typing with the start menu opened)

In the left pane of the Event viewer double click on "Windows logs" to expand it, then click on "System" to select it (can take some time to to load) and right click on it to choose "Filter Current Custom Viev" from the menu, in the window that opens check the check box fro critical errors and see if there were any.

I found out that having Hyper-V just turned on was crashing my system, I wasn't using it at all so I turned it off and it's been months since my computer crashed, I am not saying that it is the same problem but it may tell you if some driver or program is crashing the system.

*I don't have more experience with event viewer but you can find more detailed guides online.

Anamon commented 1 year ago

I believe I'm experiencing the same issue.

Steps to reproduce

  1. Start any emulation in PCem and leave it running for a while. Half an hour to be safe, after that time it's pretty much 100% certain to have happened.

Symptoms Something seems to break in the Desktop Composition of Windows. Animations such as maximizing or minimizing Windows, or opening and closing dropdowns, start to become laggy, and often get stuck. For instance, I can click the Minimize button of any application window running in my Windows session, and a small, half-transparent version of it will get stuck near the taskbar indefinitely. Wildly moving around and clicking the mouse usually gets the display to refresh, but the entire Windows desktop experience remains extremely laggy.

Notably, this doesn't get fixed by quitting PCem. Even after closing it (and confirming that the process ended), the problem remains.

I can reproduce this consistently by running PCem. The video output method doesn't seem to make a difference. So far, I haven't found any other application that causes the same symptoms.

Workaround I can get this fixed by force-restarting the video driver. Press [Windows]+[Ctrl]+[Shift]+[B]. There will be a beep and the video driver is rebooted. Now everything is fine again. But it will be re-triggered when using PCem.

Because of this workaround I was almost sure it was a bug in the video drivers. But since I have an AMD card and the original reporter an NVIDIA one, that seems less likely.

Host system