[Solved] Can't start in 0.76

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

[Solved] Can't start in 0.76

Post by GoatGoat »

0.76, I can't start the program at all.

"This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem.
Aborted (core dumped)"
Last edited by GoatGoat on Tue Aug 22, 2023 10:14 pm, edited 4 times in total.
User avatar
xnview
Author of XnView
Posts: 43597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't start in 0.76

Post by xnview »

do you have tried to replace executable with one of these:
Linux 32bits Linux 64bits
Pierre.
GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

Re: Can't start in 0.76

Post by GoatGoat »

xnview wrote:do you have tried to replace executable with one of these:
Linux 32bits Linux 64bits
Unfortunately, the 64 bit executable gives back the same error. The 32 bit one gives this error instead:
"./XnView-archx32: error while loading shared libraries: libQt5MultimediaWidgets.so.5: cannot open shared object file: No such file or directory"

This startup error is also present on XnViewMP 0.75 for me, if that helps.
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Re: Can't start in 0.76

Post by djcj »

Does it help if you remove the libraries from the lib directory and resolve the dependencies with your package manager?
User avatar
xnview
Author of XnView
Posts: 43597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't start in 0.76

Post by xnview »

If you rename the lib folder, same error?
Pierre.
GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

Re: Can't start in 0.76

Post by GoatGoat »

djcj wrote:Does it help if you remove the libraries from the lib directory and resolve the dependencies with your package manager?
xnview wrote:If you rename the lib folder, same error?
Yep, still getting the error after renaming/deleting the lib folder.
User avatar
xnview
Author of XnView
Posts: 43597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't start in 0.76

Post by xnview »

is it fedora with Gnome or KDE?
Pierre.
GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

Re: Can't start in 0.76

Post by GoatGoat »

xnview wrote:is it fedora with Gnome or KDE?
I'm using Fedora's KDE spin.
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Re: Can't start in 0.76

Post by djcj »

The xcb plugin is at lib/platforms/libqxcb.so.
Did you export the plugin and library paths before starting the binary?

Code: Select all

cd /path/to/xnview
export LD_LIBRARY_PATH="$PWD/lib"
export QT_PLUGIN_PATH="$PWD/lib"
./XnView
GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

Re: Can't start in 0.76

Post by GoatGoat »

djcj wrote:The xcb plugin is at lib/platforms/libqxcb.so.
Did you export the plugin and library paths before starting the binary?

Code: Select all

cd /path/to/xnview
export LD_LIBRARY_PATH="$PWD/lib"
export QT_PLUGIN_PATH="$PWD/lib"
./XnView
Okay, I've ran those commands and the results are different. Running it gives me "XNVIEW restoreGeometry before : 640 480
Segmentation fault (core dumped)". If I temporarily remove my preferences directory from ~/.xnviewmp, I get this instead, "Fontconfig error: line 21058463: syntax error
Fontconfig error: Cannot load default config file
Segmentation fault (core dumped)" The line number in the second warning changes whenever I run it again like that.

Could you educate me on what "exporting" those paths did? I'm a bit clueless here.
User avatar
xnview
Author of XnView
Posts: 43597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't start in 0.76

Post by xnview »

It works if you start ./XnView not ./xnview.sh
Pierre.
GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

Re: Can't start in 0.76

Post by GoatGoat »

xnview wrote:It works if you start ./XnView not ./xnview.sh
I've been running ./XnView all this time for the previous posts.. Upon trying ./xnview.sh, I get a similar error. "./xnview.sh: line 5: 2140 Segmentation fault (core dumped) "$dirname"/XnView "$@"

And the four digit number changes whenever I run ./xnview.sh again.
User avatar
xnview
Author of XnView
Posts: 43597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't start in 0.76

Post by xnview »

try to use

Code: Select all

export QT_PLUGIN_PATH=/usr/lib64/qt5/plugins
./XnView
Pierre.
GoatGoat
Posts: 14
Joined: Thu Oct 29, 2015 4:15 pm

Re: Can't start in 0.76

Post by GoatGoat »

xnview wrote:try to use

Code: Select all

export QT_PLUGIN_PATH=/usr/lib64/qt5/plugins
./XnView
From a new XnView 0.76, I'm getting the same results as if I had ran djcj's commands from before.
"XNVIEW restoreGeometry before : 640 480
Segmentation fault (core dumped)"
Again, trying it after removing my user preferences results in that fontconfig error.

Sorry for the troubles with this one.
User avatar
xnview
Author of XnView
Posts: 43597
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't start in 0.76

Post by xnview »

do you use this executable Linux 32bits Linux 64bits?
It works for me on a fresh install of fedora 22 64bits KDE
Pierre.
Post Reply