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
[Linux] maximizing and restoring the Notes window freezes / hangs the application #611
Comments
Hi, thanks for reporting. This is a known issue but we forgot to create an issue for this. The problem is somewhere in the newest Qt version (6.5), because the problem does not appear on Qt 6.4.3. We created a bug report here: https://bugreports.qt.io/browse/QTBUG-115459. An alternative for you is to use the appimage instead, until this bug is fixed. |
Thank you for the workaround.
EDIT: Can't reproduce since I can't get AppImageLauncher to work again, broke it while troubleshooting. The last release of AppImageLauncher was Sep 29, 2020 so maybe that's the problem. |
@moritz1000 Can you please open a new issue for this problem? |
This one also affects Windows, by the way. Another alternative to Linux users is to use the Flatpak version, which still uses Qt 6.4. But yeah, this is a pretty annoying one. :( |
I think I found a consistent way to trigger/prevent the freezing. Steps to force the app to freeze:
Steps to prevent the app from freezing:
I haven't looked into what these values mean yet, but these steps have worked on my Linux machine, but it'd be good to get another confirmation on this... Additionally, and unfortunately, I still haven't found a way to reproduce this with a minimal example so we can report it to Qt devs. =( If you're going to test this, just remember to do it with a Qt 6.5.x build. This is not reproducible with any of the official binaries we release, since they still use Qt 6.4.x. |
I haven't tested this yet, have you tried printing the window geometry to see if there's anything unusual with the problematic one? |
No yet, no. I'll definitely look into that though - unless someone beats me to it. |
I forgot to post an update on this, but in short: I reported this upstream, and I also managed to create a minimal, reproducible example that triggers the bug only with Qt 6.5+, but unfortunately there hasn't been an official follow up yet. Instead of waiting on upstream, perhaps we can find a workaround in our code base instead... If someone wants to give this a look, essentially, the app freezes in The call stack looks basically like this: |
Weird... I can't reproduce this on Windows 10 with Qt 6.5.2 MinGW 64bit. EDIT: nor with Qt 6.6.1 on Windows 10. |
@nuttyartist Did you try reproducing it with default settings? And with actual text inside the Also, can you try reproducing it with this small project? Just build it as usual ( It should freeze after that... |
Yes, straight from master. And yes, with some text.
Yes, this one hangs. Weird. |
bug.mp4 |
Good news: This bug has been fixed in Qt 6.6.3! I'll leave this open until 6.6.3 is released, which should be at the end of February, and then we can upgrade our official packages to use that version. EDIT: Qt 6.6 release plan: https://wiki.qt.io/Qt_6.6_Release |
This update is long overdue, but it was being postponed on purpose, to avoid triggering this bug: nuttyartist/notes#611 That bug has been fixed in Qt 6.6.3, so now we can update.
Qt 6.6.3 has been out for quite a while now, and since the v2.2.1 binaries we distribute still use Qt 6.4 (where this issue is not present), I think we can close this. |
I am using Arch Linux & KDE.
Recording.Notes.mp4
Steps to reproduce:
-> Freeze / Hang
-> Can't interact with the window anymore / type something
You need to kill the application and restart it in order to use it again.
It does not matter whether I am using the "use native window frame" option or not.
The text was updated successfully, but these errors were encountered: