Description
The original issue is for the kiwix project with issue : kiwix/kiwix-desktop#810
This issue presents a small repro case and avoid all the kiwix full project : sample_qtwebengine.zip
The program is really simple, it is a QWebEngine with a "Hello, World!" text.
#include <QtGlobal>
#include <QApplication>
#include <QWebEngineView>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWebEngineView view;
view.setHtml("<html><body>Hello, World!</body></html>");
view.resize(1024, 750);
view.show();
return app.exec();
}
The application is packaged with qt515 found in ppa https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.15.2-bionic
This is necessary as QtWebEngine is not packaged by Ubuntu bionic and we "need" bionic because of what described in #340
README.txt file explains how to compile the sample program (mostly qmake/make)
Appimage is generated using create_app_image.sh
script in the archive. It mostly prepare AppDir, download last linuxdeployqt and run it to create appimage.
When generated AppImage is run on Ubuntu bionic, the webview display "Hello, World!".
When run on recent distribution (Fedora, Ubuntu 20.04, other?), the AppImage launch but webview is empty.
An Appimage generated on a recent distribution (with system qtWebEngine and option -unsupported-allow-new-glibc
) works.
I've tried to compare strace log, between a run on Bionic and Fedora 36, but haven't found anything useful (at least for me)
Same when comparing the content of AppImage generated on Bionic and Fedora 36