-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
[BUG] qtjambi-native-linux-x64 crash on ubuntu 24.04 #203
Comments
You are using /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.15.13, installed by the Kubuntu package manager. QtJambi is built against the Qt-online-installed version (see https://doc.qt.io/qt-5/gettingstarted.html). You should try this version and see if it still dumps. Unfortunately there is no 5.15.13, only 5.15.0, 5.15.1 and 5.15.2. So probably Kubuntus 5.15.13 causes the problem and this has changed with the upgrade from 22.04. |
@wolfseifert thank you for your comment. You are right. However, the stack trace indicates it is not because of incompatibility. You could try to run the application with setting
|
Thanks, adding env
App try to run package org.example;
import io.qt.core.QCoreApplication;
import io.qt.core.QDir;
import io.qt.core.QSettings;
import io.qt.core.QStringList;
import io.qt.widgets.QApplication;
import io.qt.widgets.QMainWindow;
import static java.lang.System.exit;
public class QtApp {
public static void main(String[] args) {
System.out.println("Hello world!");
QSettings.setDefaultFormat(QSettings.Format.IniFormat);
QCoreApplication.setOrganizationName("QtApp");
QCoreApplication.setApplicationName("QtApp");
QCoreApplication.setOrganizationDomain("example.org");
QApplication.initialize(args);
//// IF COMMENT
QDir dir = new QDir(":/");
QStringList entries = dir.entryList(new QStringList(), QDir.Filter.Dirs, QDir.Filter.NoDotAndDotDot);
for(String file : entries){
// check if file string is valid
System.out.println(file);
}
//// THEN RUN
QMainWindow mainWindow = new QMainWindow();
mainWindow.show();
exit(QApplication.exec());
}
} |
Fantastic. Could you attach the hs_err_pid file from the |
I ran QtApp now on Kubuntu 24.04 and got exactly the same error (crash) as you. Running QtApp with -Djava.library.path=~/qt/5.15.2/gcc_64/lib (i.e. the Qt-online-installed version) solved the issue (no crash). |
yes, i know, if use portable Qt version all works) but if system have qt already why i must use portable version?) |
It would help if you would reply to my questions above. |
crash immediately on create
with
P.S. |
Yes, |
I built now QtJambi (master) successfully from sources against Kubuntu 24.04 Qt libs. Using the generated jars qtdir$ ls -l bin -> /usr/lib/x86_64-linux-gnu/qt5/bin include -> /usr/include/x86_64-linux-gnu/qt5/ lib -> /usr/lib/x86_64-linux-gnu/ libexec -> /usr/lib/x86_64-linux-gnu/qt5/libexec/ mkspecs -> /usr/lib/x86_64-linux-gnu/qt5/mkspecs plugins -> /usr/lib/x86_64-linux-gnu/qt5/plugins qml -> /usr/lib/x86_64-linux-gnu/qt5/qml Of course all needed Qt packages must be installed using the Kubuntu installer. |
you can upload artifact in somewhere? i try it on old ubuntu if it will work then solution is just set build env to last ubuntu lts P.S. maybe problem in kubuntu 22.04, we can wait release kubuntu 22.04.1 and maybe it will be fixed |
No, I deleted Kubuntu 24.04 already. You have two options now:
|
Thank you very much! All works! |
Describe the bug
crash start up on ubuntu 24.04
To Reproduce
Steps to reproduce the behavior:
hs_err_pid2660.log
Expected behavior
start app without errors
System (please complete the following information):
Additional context
hs_err_pid2660.log
The text was updated successfully, but these errors were encountered: