Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

OpenGL Nvidia GPU Driver crashes while changing to fullscreen mode #7957

Closed
GamerzHell9137 opened this issue Sep 10, 2015 · 36 comments
Closed

Comments

@GamerzHell9137
Copy link

For some reason when you sometimes change from Windowed to Fullscreen PPSSPP crashes
14

@GamerzHell9137
Copy link
Author

Doesn't happen on v1.0.1-860-gff3bb35
Happens on v1.0.1-880-g1fd6cf1
Not sure if it happens inbtw (am kinda busy to check out now)

@GamerzHell9137
Copy link
Author

If you wanna as fast as possible to see what's going on then Alt+Enter couple of times and the error will happen.
It started on v1.0.1-880-g1fd6cf1 and the last working version was v1.0.1-866-g86a02fe.
So something happened btw v1.0.1-867-ga71be3f and v1.0.1-880-g1fd6cf1 , dunno which one exactly caused it because there was no builds inbtw those.
The GPU i'm using is GTX 960 if that matters.

@LunaMoo
Copy link
Collaborator

LunaMoo commented Sep 11, 2015

Amd doesn't seem affected, spammed alt+enter in both recent tab and running some games - no issue, same for recently added double click in-game.

@GamerzHell9137
Copy link
Author

@LunaMoo Guess its Nvidia related then. Thanks for confirming.

@vsub
Copy link

vsub commented Sep 11, 2015

I don't know if it's nvidia only related but the problem appeared here(GTX750TI)almost every time I try to enter full screen but ONLY while using OpenGL(with direct3d9 even holding F11(switching at least 3 times ever second),the problem didn't appear)
It's also fine when I use my build in HD4600

Also I just have the usual Send\Don't Send kind of window,not that window

@GamerzHell9137
Copy link
Author

Should be more specific, yes its OpenGL exclusive. Thanks for mentioning it vsub.

@GamerzHell9137 GamerzHell9137 changed the title v1.0.1-2635-g62b3484 Fullscreen crash OpenGL Nvidia GPU Driver crashes while changing to fullscreen mode Sep 16, 2015
@thedax
Copy link
Collaborator

thedax commented Sep 17, 2015

I can only reproduce this if I go extremely quickly while pressing alt-enter or f11 (or holding them down). Does this still happen for you guys if you slow the button presses down a little? I can't get it to crash simply by going fullscreen, back to windowed, going fullscreen, etc., over and over if I go slowly.

@vsub
Copy link

vsub commented Sep 17, 2015

PPSSPP had this problem I think since always...holding any of the hotkeys,it will rapidly execute the hotkey command.

F11 - constantly switching between full screen and window mode(as fast as your pc can do it)
F2,3,4,5,6,7 and so on - the same as above.
If you hold the key for more than a second,it will start rapidly executing the hotkey function.

I'm pressing F11 like I always do and it can also crash with double click(to enter\exit full screen)
With v1.0.1-866-g86a02fe I can even hold the F11 for a while(switching at least 1 times every second)and it will not crash but it will with v1.0.1-880-g1fd6cf1 usually after the third time entering full screen(and that's by normally pressing the key)

Currently I'm always afraid to enter\exit full screen,I have to always do a save state before entering\exiting full screen and I want to use the latest beta because it contains a fix for a bug that was bothering me for a while

@hrydgard
Copy link
Owner

That's just Windows' regular keyboard repeat functionality. We use normal Windows shortcut handling for these functions.

I have never been able to make fullscreen switching crash on my computer. I just held F11 down for half a minute and it flashed like crazy but kept going no problem...

@vsub
Copy link

vsub commented Sep 17, 2015

I don't see anyone actually mentioning this but the problem happens only while playing some game,not in the menus\games list

@GamerzHell9137
Copy link
Author

@hrydgard Just like vsub said, it happens in game and its still crashing when holding F11 on the newest nightly build. I'm using OpenGL Mode and Windows 10 x64.

@GamerzHell9137
Copy link
Author

Here's how it looks on my end
https://youtu.be/rAPunpnPxNI

@hrydgard
Copy link
Owner

Scary. I can't get it to happen though, which would help debugging it :/ On Windows 10 64-bit here, nVidia 700-series.

@vsub
Copy link

vsub commented Sep 17, 2015

And this is what I did just now
1.Start ppsspp and started a game
2.Switch to 1x internal resolution and go to full screen by using the menu(not hotkey)

And ppsspp crashed again...sometimes it doesn't crash but it stays on a black screen doing huge cpu usage

Btw @hrydgard which drivers version are you using?

@thedax
Copy link
Collaborator

thedax commented Sep 17, 2015

I updated my drivers to 355.82 (I have a new GTX 970) and I can't get PPSSPP to crash anymore on Windows 7 x64, but it does hang the entire program if I sit there holding F11 while a game is running..

@GamerzHell9137
Copy link
Author

I'm on 355.82 too. And can confirm that another person with GTX 960 with latest drivers crashes too.

@GamerzHell9137
Copy link
Author

Another person tested on a GTX 750 Ti and says that it crashes on the latest nightly builds.
He's using the latest Nvidia drivers.

@GamerzHell9137
Copy link
Author

Here's the log if that helps at all (GTX 960) https://mega.nz/#!F5A0GTaB!Pc1rSLI47YPN_fLmk3wrt0rPEDzmkN43iVXRdhXV7VA

@vnctdj
Copy link
Contributor

vnctdj commented Sep 18, 2015

Same as @hrydgard for me, I can't reproduce the issue by holding F11 down (on the menu as well as in a game).
GeForce GT 540M, driver v355.82, Windows 7 x64.

@vsub
Copy link

vsub commented Sep 18, 2015

I using 353.30 and I just found something while trying the latest beta.
If "simulate block transfer" is disabled,it's really hard to make it crash(I have to hold F11 for a while)but when it crashes,I get this error
2015-09-18_185112

I can't make it crash no matter what I do while using Direct3D9(it's switching between full screen and window mode even faster)when I use my GTX750TI and I also can't make it crash while using my HD4600 in both modes(OGL\D3D)

@hrydgard
Copy link
Owner

@vsub Very latest drivers.

I can't figure out what we are doing that drivers don't like, but I'll see if I can simplify the resizing code and see if that helps...

We can also try to get rid of the "inner window" that we use for display, but last I tried that we got even worse crashing issues on Intel GPUs...

@hrydgard
Copy link
Owner

Can any of you guys with problems try with #7984 ?

@vsub
Copy link

vsub commented Sep 20, 2015

I'm not sure what to report.
1.In some weird combination of enabling certain options(Stretch to Display and Texture Scaling),opening menus,switching to fullscreen\window mode,ppsspp will start doing one of those or both
The message that appear at the top of the screen will become a mess of letters and images(the only fix is restarting ppsspp)
When going to the settings,the Back button at the bottom left is not visible

2.Before my pc freeze at back screen while trying the latest beta,I found that if "Stretch to Display" is enabled,ppsspp will crash every time I try to go fullscreen(with the hotkey,not the menu)and almost never if it's disabled(I have to hold F11 for a while)but after I restart it,it didn't crash for a while and then it started crashing again even with that option disabled.

Disabling each of those decreases more and more the possibility of crashing

Stretch to Display - especially this one
VSync
Texture Scaling

@hrydgard
Copy link
Owner

So, in 1410d7f , I tried a little thing where we pause rendering completely while the size change is happening. I have some hope that it will reduce this problem but as always I have no idea if it helped, because it doesn't crash for me. So please test!

@vsub
Copy link

vsub commented Sep 20, 2015

It does look like a solution and it's not crashing now(I can't be 100% sure(sometimes it was crashing randomly)but I think this is the fix)
Let's see what @GamerzHell9137 will say

@hrydgard
Copy link
Owner

Thanks @vsub, sounds promising.

@vsub
Copy link

vsub commented Sep 20, 2015

Well here is one new problem.
In the screen menu the "Full Screen" button\checkbox in Graphics makes ppsspp to freeze even if no game is running.
PPSSPP was crashing when switching between modes only ingame and never in menus.

@hrydgard
Copy link
Owner

Oh! I know why that is. Will fix immediately.

@hrydgard
Copy link
Owner

That should do it. Thanks for the catch.

@vsub
Copy link

vsub commented Sep 21, 2015

Here we go again :( but this time I don't know if it's related to some of the recent changes

1.Start ppsspp and enable any post processing shader(I usually use Natural Colors)
2.Start any game(you can also use the cube.iso),maximize the window and press F11 twice(you will notest that around 70px of the bottom are not visible when you exit full screen(I made a thread about this #7986 but is seems it's not just menus))
3.Minimize the window and when you restore it,ppsspp will always crash.

If I use the option "Pause when not focused",ppsspp will not crash and it will not crash if the window is not maximized

And I don't know if this is supposed to happen(not that I use the option)but the option Small Display is ignored when you enter full screen and it's still ignored when you exit full screen(it's shrinking the window to the "small display" size again when you unmaximize the window)

@unknownbrackets
Copy link
Collaborator

I am not able to reproduce this on my NVIDIA 9800 GT with the steps above with #7988. Didn't try without it, but maybe it has the same cause. Otherwise, I can't repro.

-[Unknown]

@vsub
Copy link

vsub commented Sep 21, 2015

Seems that way,ppsspp is not crashing with that change

@hrydgard
Copy link
Owner

Alright, great. Let's await @GamerzHell9137 's testing, then close.

@hrydgard
Copy link
Owner

Ping @GamerzHell9137

@GamerzHell9137
Copy link
Author

Sorry for being absent but i was changing towns for college so it took a while to move stuff. Didn't have internet connection so i couldn't test the new builds or anything and the new isp came the day when i was supposed to go back home. So yeah, im at home right now and my pc is at college place so i can't test it right now. Gonna report on sunday or monday, whenever i get on the PC. (College life is sure busy)

@GamerzHell9137
Copy link
Author

@hrydgard Just checked v1.0.1-2783-g3c499fd and no crashes here. Good that this has been solved.

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

No branches or pull requests

7 participants