Problems running compiled QT5 binary with Fedora40 lazarus / 1-Linux ---------------------------------------------------------------------- OH1KH ยท 2024-10-03 15:49 I am a bit confused to where I should send this bug report. Fedora or Lazarus? Few days ago I upgraded my system from Fedora39 to Fedora40. Now I am unable to run my program that is compiled with QT5 widgets. Compile goes ok, but the reslting binary dies right at start with "Access violation". If I compile same source with GTK2 widgets, or QT6 widgets both binaries run without errors. That has not happened before with Fedora39 and so I installed a fresh Fedora39 virtual machine and did qt5 compile there. Resulting binary runs ok as it has been so far. If binary is copied to Fedora40 it runs ok also there. If I do debug I can find the line where it stops, but without knowing anything about lazarus-ide or qt5pas it is impossible to resolve the problem. Picture Shows debug results. ---------------------------------------------------------- Setup with Fedora40 is as follows: [saku@hamtpad ~]$ fpc -version [0.000] Free Pascal Compiler version 3.2.2 [2024/07/28] for x86_64 [saku@hamtpad ~]$ lazarus-ide --version 3.4 Revision: Unknown [saku@hamtpad ~]$ rpm -qa | grep lazarus lazarus-doc-3.4-1.fc40.x86_64 lazarus-lcl-3.4-1.fc40.x86_64 lazarus-lcl-nogui-3.4-1.fc40.x86_64 lazarus-tools-3.4-1.fc40.x86_64 lazarus-lcl-gtk2-3.4-1.fc40.x86_64 lazarus-ide-3.4-1.fc40.x86_64 lazarus-3.4-1.fc40.x86_64 lazarus-lcl-qt-3.4-1.fc40.x86_64 lazarus-lcl-gtk3-3.4-1.fc40.x86_64 lazarus-lcl-qt5-3.4-1.fc40.x86_64 lazarus-lcl-gtk-3.4-1.fc40.x86_64 lazarus-lcl-qt6-3.4-1.fc40.x86_64 [saku@hamtpad ~]$ rpm -qa | grep qt5pas qt5pas-2.15-30401.fc40.x86_64 qt5pas-devel-2.15-30401.fc40.x86_64 -------------------------------------------------------- Setup with Fedora39 is as follows: saku@fedora:~$ fpc -version [0.008] Free Pascal Compiler version 3.2.2 [2023/07/19] for x86_64 saku@fedora:~$ lazarus-ide --version 2.2.6 Revision: Unknown saku@fedora:~$ rpm -qa | grep lazarus lazarus-lcl-nogui-2.2.6-5.fc39.x86_64 lazarus-lcl-2.2.6-5.fc39.x86_64 lazarus-lcl-gtk2-2.2.6-5.fc39.x86_64 lazarus-doc-2.2.6-5.fc39.x86_64 lazarus-tools-2.2.6-5.fc39.x86_64 lazarus-ide-2.2.6-5.fc39.x86_64 lazarus-2.2.6-5.fc39.x86_64 lazarus-lcl-gtk3-2.2.6-5.fc39.x86_64 lazarus-lcl-qt-2.2.6-5.fc39.x86_64 lazarus-lcl-qt5-2.2.6-5.fc39.x86_64 saku@fedora:~$ rpm -qa | grep qt5pas qt5pas-2.6-2020605.fc39.x86_64 qt5pas-devel-2.6-2020605.fc39.x86_64 If someone wants to test this simplest way is to clone (zip) from https://github.com/OH1KH/cqrlog/tree/loc_testing and do the compile either with lazarus-ide (QT5widgets) or from source root directory using "make cqrlog_qt5". Other dependencies/settings should not be needed as program dies right after splash image is shown (at phase where form creations start).