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

Fixes crashing in project 64 graphics plugin dialog with release build #2045

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

fzurita
Copy link
Contributor

@fzurita fzurita commented Apr 14, 2019

With at least MS visual studio 2017, the qt dialog crashes when built in release mode. I was able to track this down to "whole program optimization", so I disabled that and doesn't crash any more.

@fzurita
Copy link
Contributor Author

fzurita commented Apr 15, 2019

By the way, I only disabled "whole program optimization" on GLideNUI and no other projects.

@gonetz
Copy link
Owner

gonetz commented Apr 23, 2019

Please describe the crash scenario. I have no crashes. For example, my release build of the current master:
https://drive.google.com/file/d/1nYqo1GbcaQBTwZRjEc-xZ5YkqEjAJGhi/view?usp=sharing

Built with:

Microsoft Visual Studio Professional 2017 
Version 15.9.11
VisualStudio.15.Release/15.9.11+28307.586
Microsoft .NET Framework
Version 4.7.03056

@fzurita
Copy link
Contributor Author

fzurita commented Apr 23, 2019

It crashes for me simply by opening the configuration dialog with Project 64 32 bit.

Maybe it's because I'm using the prebuilt static QT 5 libraries?

@fzurita
Copy link
Contributor Author

fzurita commented Apr 23, 2019

Either way, the fix is quite simple, and shouldn't affect much of anything since whole program optimization of not going to be a significant performance boost to a UI.

@gonetz
Copy link
Owner

gonetz commented Apr 23, 2019

It crashes for me simply by opening the configuration dialog with Project 64 32 bit.

Do you have that problem with my build?

Either way, the fix is quite simple, and shouldn't affect much of anything since whole program optimization of not going to be a significant oriels boost to a UI.

We don't need that fix if my build works ok for you.
I guess you just did something wrong. Please make sure that you followed my instructions: https://github.com/gonetz/GLideN64/wiki/Build-From-Source-(Windows)
You need to use my prebuilt static QT 5 libraries for VS 2017: https://drive.google.com/open?id=19DtIm6zPBS-7zDD7HEOKcownrVaehrxD
You have to right click on GLideN64 solution and Change Solution QT version on this build.
Then, rebuild GLideNUI only. After that, build the solution.

@fzurita
Copy link
Contributor Author

fzurita commented Apr 23, 2019

Yes, I followed that directions and downloaded the specific version of qt5 prebuilt with vs 2017 linked in the instructions.

That's a good point, I will try your build. Which Windows version are you using?

@fzurita
Copy link
Contributor Author

fzurita commented Apr 23, 2019

@gonetz You build crashes for me too when opening the graphics settings dialog from project 64.

@gonetz
Copy link
Owner

gonetz commented Apr 23, 2019

Which Windows version are you using?

Win 10 Home 64bit.

You build crashes for me too when opening the graphics settings dialog from project 64.

:(
Which Windows version are you using?

@fzurita
Copy link
Contributor Author

fzurita commented Apr 23, 2019

Windows 10 Professional, latest insider build in the fast ring (18875).

@gonetz
Copy link
Owner

gonetz commented Apr 23, 2019

I just tested my VS 2017 build on Win 10 pro, no issues. Are you sure that you run my build and it crashes? How can it be?

@olivieryuyu could you test this build:
https://drive.google.com/file/d/1nYqo1GbcaQBTwZRjEc-xZ5YkqEjAJGhi/view?usp=sharing
on your PC? Just open plugin's the configuration dialog with Project 64.

@fzurita
Copy link
Contributor Author

fzurita commented Apr 23, 2019

Could it be the version of project 64 I'm using? I'm using this version:

https://64dd.org/downloads.html

@gonetz
Copy link
Owner

gonetz commented Apr 24, 2019

I just tried my build with pj64_2019-03-21_64dd - no issues with configuration dialog. A mystic case.

I agree that whole program optimization is not so necessary for GUI, but the fact that it works fine on
all my PCs but crashes for you is quite disturbing.

@fzurita
Copy link
Contributor Author

fzurita commented Apr 24, 2019

Yeah... I can't explain it. I think I have had this problem ever since I can remember.

@fzurita
Copy link
Contributor Author

fzurita commented Apr 24, 2019

I found one report of this issue here: #1574 (comment)

@gonetz
Copy link
Owner

gonetz commented Apr 24, 2019

Ok, the fix is harmless. Approved.

@gonetz gonetz merged commit cd76b93 into gonetz:master Apr 24, 2019
@fallaha56
Copy link

fallaha56 commented Apr 24, 2019

Hi, I can just confirm the same crash, with the 66dd build, Public Release 4.0 but also with emuCR build, Win10Pro

Can open all other GUIs for all other GFX plugins just not PJ64, have had this issue for at least a month

Hope this is useful

@fzurita fzurita deleted the fix_qt_crash branch April 24, 2019 18:35
@gonetz
Copy link
Owner

gonetz commented Apr 25, 2019

emuCR builds are known to be buggy.
But if my Public Release 4.0 crashes for you, it is real problem.

@mitchellcairns
Copy link

Yeah the Public Release 4.0 crashes for me as well.

@fzurita
Copy link
Contributor Author

fzurita commented Jun 17, 2019

Feel free to revert this change... It appears to not be harmless unfortunately. But if you revert it, it will start crashing for me though....

@mitchellcairns
Copy link

Feel free to revert this change... It appears to not be harmless unfortunately. But if you revert it, it will start crashing for me though....

Just to clarify, it doesn't matter if I'm using Public release 3.0 or 4.0, it still crashes either way.

@Jj0YzL5nvJ
Copy link
Contributor

Sounds like NX/XD bit configured to AlwaysOn... execute bcdedit /enum | find /i "nx" like administrator to know the current setting. The default (optimal) value in commercial Windows versions is OptIn (bcdedit /set nx OptIn).

@gonetz
Copy link
Owner

gonetz commented Jun 18, 2019

@Jj0YzL5nvJ
NX/XD bit was configured to OptIn in my Windows. I set it to AlwaysOn, restarted Windows, but GLideN64 GUI still works fine for me.

@gonetz
Copy link
Owner

gonetz commented Jun 18, 2019

@mitchellcairns what is your Windows version?

@oddMLan
Copy link
Contributor

oddMLan commented Jun 18, 2019

Maybe try upgrading to a newer version of Qt? Or compiling it using a newer Visual Studio?
The current version also has an annoying tooltip issue, on hover on any of the options that has a info tootip, it never fades away. But if I compile GLideN64 + GLideNUI myself with VS2017, there is no tooltip issue. I only have that issue with the current WIP builds.

@mitchellcairns
Copy link

@gonetz I'm on the latest Windows 10 Professional edition; June 2019 update.

@weinerschnitzel
Copy link

I wonder if posting an Event Viewer log could help identify what exactly is causing the crash?

@gonetz
Copy link
Owner

gonetz commented Jun 19, 2019

Good idea. @mitchellcairns , could you check the Event Viewer log for details about the crash?

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

Successfully merging this pull request may close these issues.

7 participants