You are not logged in.

#1 2023-04-09 00:52:16

plarke
Member
Registered: 2014-07-17
Posts: 15

[SOLVED] QtWebengine looks in the wrong place for resources

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

#2 2023-04-09 01:25:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,491
Website

Re: [SOLVED] QtWebengine looks in the wrong place for resources

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

#3 2023-04-09 01:57:15

plarke
Member
Registered: 2014-07-17
Posts: 15

Re: [SOLVED] QtWebengine looks in the wrong place for resources

Yes, everything is official and up to date. Here is the strace.

Offline

#4 2023-04-09 02:06:51

plarke
Member
Registered: 2014-07-17
Posts: 15

Re: [SOLVED] QtWebengine looks in the wrong place for resources

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

#5 2023-04-10 11:41:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [SOLVED] QtWebengine looks in the wrong place for resources

Are you overriding LD_LIBRARY_PATH= somewhere?

Offline

#6 2023-04-27 00:03:03

plarke
Member
Registered: 2014-07-17
Posts: 15

Re: [SOLVED] QtWebengine looks in the wrong place for resources

Sorry, I forgot about this thread.

V1del wrote:

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/lib64

I 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

#7 2023-04-27 07:14:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [SOLVED] QtWebengine looks in the wrong place for resources

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

#8 2023-05-11 04:02:12

plarke
Member
Registered: 2014-07-17
Posts: 15

Re: [SOLVED] QtWebengine looks in the wrong place for resources

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

Board footer

Powered by FluxBB