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
WebEngine display blank window when appimage is run on recent distribution (fix inside) #554
Comments
I've got this: $ ./create_app_image.sh |
Do you get any errors when launched from the comand line?
It is unsupported and broken, don't use it. |
Only a warning :
Yes, it was just to say that a same application generated on a recent platform works. (but I need to use the unsupported option). |
Please try on a system without Wayland. Does it work there? |
No warning, but same behavior (blank window) |
Thanks for testing. Unfortunately I don't know the cause yet. Can you call your AppImage like this:
Do you see messages like
or similar? |
Definitely I have some lookup error :
Full log is here: |
@probonopd Do you have a idea of what could be the problem here ? |
Don't know (yet). More debugging is needed. Unfortunately I don't have the time to dive into this right now. |
@mgautierfr I faced a similar problem, but somehow I managed to overcome it by adding a couple of lines to
Errors like the one you posted in this post, in my case, they appeared on different versions of Qt and did not play any role in rendering the web page. |
@mgautierfr I tested the built Appimage (from your project 'sample_qtwebengine') with the options that I specified above on Fedora 35 (built on Ubuntu 18.04) - the render appeared. |
@mishafuod-13 Seems to be a really valuable input of you. Thank you very much. |
@kelson42 Glad if I could help :) |
@mishafuod-13 I confirm the workaround. Thanks a lot ! |
And for me is working fine. Good job, thanks! |
I confirm the workaround to work. Thank you! |
I have the same issues when I try to bundle notepadqq. The mentioned workaround however doesn't do anything here. Update: nevermind, after a system reboot it seems to work now. |
I have the same issue building on Ubuntu 20.04 with Qt 6.6.0 and the above workaround does not help. The webviewer works when executing the binary with the Qt libs in the LD_LIBRARY_PATH, but it shows a blank screen when running the appimage created by linuxdeployqt, so I suspect linuxdeployqt is not including all the necessary libs. Possibly relevant terminal output: SOLVED: linuxdeployqt was not copying |
So on Qt6 we need to also deploy |
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.
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
The text was updated successfully, but these errors were encountered: