Page 1 of 1

CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 25.02.2025 23:50
by Random Void User
The two most recent Qt6 releases of CudaText running on Qt6 6.8.2 packages from Void Linux give segfaults and exception errors on exit. CudaText otherwise works. Note that I use the prebuilt libQtPas, which is not from Void Linux. About box says: CudaText 1.221.5.2, linux-x86_64-qt6, fpc 3.2.3 and here's my $LD_LIBRARY_PATH:

Code: Select all

libQt6Pas.so.6
libQt6Pas.so.6.2.10
libQt6PrintSupport.so.6
libQt6PrintSupport.so.6.7.2
libcupsprintersupport.so
Terminal messages (Gtk warnings are right, permission is denied for all apps):

Code: Select all

This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows

(cudatext_qt6:7126): Gtk-WARNING **: 16:31:37.224: Attempting to read the recently used resources file at '...REDACTED...recently-used.xbel', but the parser failed: Failed to open file “...REDACTED...recently-used.xbel”: Permission denied.

(cudatext_qt6:7126): Gtk-WARNING **: 16:31:47.151: Attempting to store changes into '...REDACTED...recently-used.xbel', but failed: Failed to rename file “...REDACTED...recently-used.xbel.NCNG22” to “...REDACTED...recently-used.xbel”: g_rename() failed: Is a directory

(cudatext_qt6:7126): Gtk-WARNING **: 16:31:47.151: Attempting to set the permissions of '...REDACTED...recently-used.xbel', but failed: Operation not permitted
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
An unhandled exception occurred at $00007F3C2D4F1354:
EAccessViolation: 
An unhandled exception occurred at $000000000044C924:
EThreadError: 
  $000000000044C924

[⚡89]

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 26.02.2025 05:56
by main Alexey
do you see the same error on this primitive demo?
if yes, we have ready bugreport.
I added debug info there. binary size is 26M. maybe it can show more error details.

https://github.com/Alexey-T/CudaText/di ... t-12321290

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 27.02.2025 00:11
by Random Void User
Yes it's the same error. Clicking "memo" gives mouse-popup notices. Exit gives the exception. The checkbox did nothing on stdout or stderr.

Testing details: The prebuilt libQtPas files are in "libs_needed" folder. The initial Qt warning relates to $QT_SCALE_FACTOR_ROUNDING_POLICY which is "RoundPreferFloor" in my environment.

Code: Select all

$ LD_LIBRARY_PATH="/tmp/test/libs_needed" /tmp/test/project1 
setHighDpiScaleFactorRoundingPolicy must be called before creating the QGuiApplication instance
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
An unhandled exception occurred at $00007F19B66F1354:
EAccessViolation: 
  $00007F19B66F1354

[⚡89]

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 27.02.2025 00:11
by Random Void User
Yes it's the same error. Clicking "memo" gives mouse-popup notices. Exit gives the exception. The checkbox did nothing on stdout or stderr.

Testing details: The prebuilt libQtPas files are in "libs_needed" folder. The initial Qt warning relates to $QT_SCALE_FACTOR_ROUNDING_POLICY which is "RoundPreferFloor" in my environment.

Code: Select all

$ LD_LIBRARY_PATH="/tmp/test/libs_needed" /tmp/test/project1 
setHighDpiScaleFactorRoundingPolicy must be called before creating the QGuiApplication instance
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
An unhandled exception occurred at $00007F19B66F1354:
EAccessViolation: 
  $00007F19B66F1354

[⚡89]

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 27.02.2025 10:23
by main Alexey

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 27.02.2025 10:40
by main Alexey
see replies at that Laz topic. Zeljan wrote:

https://bugreports.qt.io/browse/QTBUG-130895
Qt 6.8.3 should contain fix.

Solved?

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 27.02.2025 18:08
by Random Void User
Well, maybe, but I'm not sure. QTBUG-130895 says it affects 6.8.0 but is fixed in 6.8.2, which is my (Void Linux) version. I may have encountered another bug, or QTBUG-130895 is not actually fixed in 6.8.2, i.e. the bug status is wrong. For example, a race condition will vary from one machine to another. Maybe the developers testing the bug got a different race result than me, and assumed it was fixed.

Re: CudaText 1.221.5.2 Qt6 Glitches on Exit

Posted: 27.02.2025 18:19
by main Alexey
When 6.8.3 will be available to you, pls test and report back.