You are not logged in.
Applications that rely on qt5-webengine(in my case, marble and kalgebra) cannot start because QtWebengine tries to load its resources from the wrong path.
Here is the output of kalgebra:
Qt WebEngine resources not found at /share/qt/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt. Trying application directory...
Qt WebEngine resources not found at /usr/bin. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/paul/.kalgebra'
Installed Qt WebEngine locales directory not found at location /share/qt/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/paul/.kalgebra'
[0408/194928.318204:ERROR:resource_bundle.cc(947)] Failed to load /home/paul/.kalgebra/qtwebengine_resources_100p.pak
Some features may not be available.
[0408/194928.318224:ERROR:resource_bundle.cc(947)] Failed to load /home/paul/.kalgebra/qtwebengine_resources_200p.pak
Some features may not be available.
[0408/194928.318231:ERROR:resource_bundle.cc(947)] Failed to load /home/paul/.kalgebra/qtwebengine_resources.pak
Some features may not be available.
[0408/194928.318242:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
[3968:3968:0408/194928.378296:ERROR:extension_system_qt.cpp(121)] Failed to parse extension manifest.
Segmentation fault (core dumped)The marble output is similar. I found this bug report, but I get the same error even after doing the workaround mentioned there.
Last edited by plarke (2023-05-11 04:03:17)
Offline
I can't replicate this - both marble and kalgebra launch just fine after being freshly installed. An strace confirms kalgebra is looking under /usr/share/qt/resources. Are yours repo package builds and fully up to date? If so, can you post an strace from kalgebra?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes, everything is official and up to date. Here is the strace.
Offline
Update: I did get both to work by adding symbolic links from ~/.marble and ~/.kalgebra to /usr/share/qt/resources
Last edited by plarke (2023-04-09 02:08:52)
Offline
Are you overriding LD_LIBRARY_PATH= somewhere?
Offline
Sorry, I forgot about this thread.
Are you overriding LD_LIBRARY_PATH= somewhere?
Yes, why is that important? I override it to add some extra installation locations for home built programs:
$ echo $LD_LIBRARY_PATH
/home/paul/.over/lib64:/home/paul/.over/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib:/home/paul/.local/lib:/home/paul/.local/lib64:/home/paul/.blocal/lib:/home/paul/.blocal/lib64I only have the standard qtwebengine, however, so it's not loading in another version.
Last edited by plarke (2023-04-27 00:09:14)
Offline
While I'd never globally do that in that way, have you tried whether it makes a difference if you unset that beforehand?
If you really want something persistent here that shouldn't lead to random assumptions by different tools, don't export LD_LIBRARY_PATH but configure your /etc/ld.so.conf
Last edited by V1del (2023-04-27 07:23:44)
Offline
Unsetting it works, thanks. Though I'm still a bit confused that this is the behavior. I set a whole bunch of stuff-- PATH, MANPATH, PKG_CONFIG_PATH, CPATH, etc--according to the same pattern. Is this not the way to do it for any of them, or just LD_LIBRARY_PATH?
Last edited by plarke (2023-05-11 04:21:49)
Offline