-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix minor bug #16492
Fix minor bug #16492
Conversation
If there is a bug with Qt::WA_DeleteOnClose, I rather it be done to all elements and be wrapped in a utility function. |
This is nonsense. We shouldn't add spaghetti code in this project just because one slot fails. |
@elad335 I suspect the Qt message dialogs invoked in OnMissingFw() and InstallPup() could share some properties that origin the bug. Maybe it is only limited to those Qt standard dialogs. I had a look to reference pages of those dialogs but I didn't read anything about any warning on using WA_DeleteOnClose attribute in nested Qt dialogs invokations. |
If we don't understand, not suspect, what's causing it, we replace them all. That is my opinion. |
There is no indication that deleteonclose is buggy in any other occasion. |
Yes I know what should be done internally. I also suspect it is a bug using async dialog, so started with Tested with the following code in
Delete the firmware folders first, then start a game and follow the steps below:
and you should always be able to have the following outputs CORRECT SEQUENCE - Line
|
Open a bugticket in the Qt tracker then 👍 This code seems to work without issues I think (due to having a neglectible runtime in the slot):
Anyway, there's an underlying issue with the emulator. |
I also saw that (3 times) but I was thinking it was a problem on my file system after an hard reboot. |
not really. we would have to bisect and see if it's always been an issue 💀 . |
I think it could hide many other issues so it is important to identify and fix it. The second bug reported in this PR could be provided in one of your next PR |
It seems that both the issues on crash and hang (after 3 times invoking It has been reported by all users that the solution to the hang issue is to not use native dialogs but to use the Qt dialogs (passing the attribute
with:
and it is fixing both the anomaly when using Probably a wrapper for those bugged Qt functions, forcing the use of |
Yeah the native dialogs actually work fine if you set audio to disabled, since we only really use CoInitialize in the audio handlers. |
Yes, I removed that partial/not proper fix from this PR. It's up to main developers to provide the fix for that important bug (side effects with those kind of bugs can happen randomly and with other (not only a crash) strange effects (slow down, stuttering etc.) |
You have to rebase this into one commit or enable "allow maintainers to make changes" or how it's called so I can squash this. |
it is already allowed for maintainers to make changes, so you can proceed. Anyway, I do not see any conflict from my side |
if the branch update is still not working, please provide this minor cleanup PR in one of your PR (there are only two lines changed). No need to waste other time on this PR. I will close it reporting the PR implementing the changes. |
Fixed a minor bug
two bugsintroduced by PR #13876 present since release 0.0.34-17155Sreported in bug report #16455:* Fixed crash on firmware installation dialog box when opened starting a gameSettings
dialog box pointer on dialog closure when started withopen()
method (just to make the code more consistent, not a bug causing crashes). It avoids to demand the closure to the main window on RPCS3 exit