r/UnityHelp • • Dec 23 '22

gameView.Repaint crash

hey guys I can’t open any unity projects without the editor freezing and crashing. Basically I had it working fine with a project for about a month and then it randomly gave me an error saying Failed to present D3D11 swapchain due to device reset/removed, yada yada long error explanation. So I disabled my integrated graphics and kept the dedicated gpu on and the editor would now load and no longer gave that error but now the editor hangs on GameView.Repaint and freezes the whole computer I cant even access task manager to close it. I’m using an old gpu geforce 960m but its been working fine for a month randomly started doing this. I tried upgrading to newest gpu driver it did not help. Tried turning off firewall it did not work. Tried deleting Library folder that did not help. Uninstalled unity and unity hub did a clean install that did not work. Tried downloading newest unity 2022.2 that did not work either. Using unity version 2022.1.23f. Please help me figure this out I cant use unity at all. Not even a blank project will work, if I try to even rotate around the scene view I get SceneView.Repaint waiting for unity to finish code on core module and freezes or whatever and if it loads my main project its gameView.Repaint then freeze. Have to hold the laptop power button to turn it off every time. Any ideas on what to try next would be much appreciated. Oh I also installed unity without the hub that did not work either.

4 Upvotes

2 comments sorted by

1

u/Kakan-lakan Nov 14 '24

I have the same issue. Did you find a solution?

1

u/Rmele09 Nov 14 '24 edited Nov 14 '24

Is your scene graphically intense? For me my gpu couldnt handle the mega scans scene. I ended up breaking the scene into a lot of sections that I would turn on and off based on where in the scene I had to work on. Turning them all off before I save and quit so when I re open unity the scene wouldnt crash. Also using 4k textures instead of 8k helped, and replacing mesh colliders with primitives helped. There is also an option in preferences somewhere that allows you to increase the time unity has to hang and wait before pop up bars show up, you just change the value to something high like 1000. I cant remember what that option is called but I bet you can google it, not sure if that applied to the gameview.repaint but it helped my workflow immensely without all the “hold on” popups showing up constantly. Good luck. Ultimately, I just need a new computer with a better gpu. The laptop I use is old with a geforce 960m that gets overloaded…so that may be your problem as well if you are using an older computer. For the specific swapchain error, make sure you have updated both your dedicated gpu driver and your integrated driver. I ended up disabling my integrated card and updating my dedicated gpu driver and this worked for me.