Cannot open xviewer

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
chingyinwan123
Level 1
Level 1
Posts: 5
Joined: Mon May 07, 2018 12:31 am

Cannot open xviewer

Post by chingyinwan123 » Tue May 15, 2018 10:08 pm

I have used xviewer in the past to open images until one day it can no longer open images for some reason.

Using gdb to get the debugging messages when opening xviewer, the messages are as follows:

Code: Select all

chingyinwan123@chingyinwan123-UX410UAK ~ $ gdb xviewer
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from xviewer...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/xviewer 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9671700 (LWP 4404)]
[New Thread 0x7fffe8e70700 (LWP 4405)]
[New Thread 0x7fffe3fff700 (LWP 4406)]

** (xviewer:4400): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-289Ehw0vrE: Connection refused
[New Thread 0x7fffe37fe700 (LWP 4407)]

Thread 1 "xviewer" received signal SIGBUS, Bus error.
0x00007ffff515b28e in cmsCreate_sRGBProfileTHR () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2
(gdb) bt
#0  0x00007ffff515b28e in cmsCreate_sRGBProfileTHR () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2
#1  0x00007ffff7ba6464 in ?? () from /usr/lib/xviewer/libxviewer.so
#2  0x00007ffff6a53359 in g_type_create_instance () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#3  0x00007ffff6a34df8 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#4  0x00007ffff7bb0882 in ?? () from /usr/lib/xviewer/libxviewer.so
#5  0x00007ffff6a35149 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6  0x00007ffff6a371b5 in g_object_new_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7  0x00007ffff6a37521 in g_object_new () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8  0x00007ffff7baff46 in xviewer_window_new () from /usr/lib/xviewer/libxviewer.so
#9  0x00007ffff7b7d8a8 in xviewer_application_open_window () from /usr/lib/xviewer/libxviewer.so
#10 0x00007ffff6a301d4 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff6a4a9a6 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff6a4b08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff6f54af6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#14 0x00007ffff6f54ce2 in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00000000004010c2 in main ()
(gdb) continue
Continuing.
Couldn't get registers: No such process.
Couldn't get registers: No such process.
Couldn't get registers: No such process.
(gdb) [Thread 0x7fffe37fe700 (LWP 4407) exited]
[Thread 0x7fffe3fff700 (LWP 4406) exited]
[Thread 0x7fffe8e70700 (LWP 4405) exited]
[Thread 0x7fffe9671700 (LWP 4404) exited]

Program terminated with signal SIGBUS, Bus error.
The program no longer exists.
I am currently using Linux Mint 18.3 xfce 64-bit.

My computer's hardware and software specifications are as follows (using inxi):

Code: Select all

CPU~Dual core Intel Core i5-7200U (-HT-MCP-) speed/max~959/3100 MHz Kernel~4.13.0-39-generic x86_64 Up~46 min Mem~672.2/7858.1MB HDD~256.1GB(16.4% used) Procs~170 Client~Shell inxi~2.2.35
Any help would be appreciated!

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Cannot open xviewer

Post by Sir Charles » Wed May 16, 2018 5:50 am

(xviewer:4400): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-289Ehw0vrE: Connection refused
Hi,
This might help:

Code: Select all

dbus-launch xviewer

Fromman dbus-launch
You may specify a program to be run; in this case, dbus-launch will
launch a session bus instance, set the appropriate environment
variables so the specified program can find the bus, and then execute
the specified program, with the specified arguments
Or you can try reinstalling xviewer:

Code: Select all

sudo apt-get remove --purge xviewer

Code: Select all

sudo apt-get install xviewer
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

chingyinwan123
Level 1
Level 1
Posts: 5
Joined: Mon May 07, 2018 12:31 am

Re: Cannot open xviewer

Post by chingyinwan123 » Sat May 19, 2018 6:48 am

Thank you for the information.

After trying to dbus-launch xviewer, the following error got displayed:

Code: Select all

chingyinwan123@chingyinwan123-UX410UAK ~ $ dbus-launch xviewer
Unable to create /home/chingyinwan123/.dbus/session-bus

** (xviewer:8464): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-sRp67onh9E: Connection refused
Bus error (core dumped)
I have also tried removing and re-installing xviewer using the commands you wrote, but when I tried to dbus-launch it again, the same error appeared.

The gdb error messages shown from launching xviewer are identical to the ones I have written in my first post.

What should I try next?

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Cannot open xviewer

Post by Sir Charles » Sat May 19, 2018 7:39 am

Though it might not be related or a problem at all, but you could run a check to see if everything in /home is owned by your user:

Code: Select all

find $HOME ! -user $USER -type f
I hope others who might be looking in here to chime in with more suggestions
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

chingyinwan123
Level 1
Level 1
Posts: 5
Joined: Mon May 07, 2018 12:31 am

Re: Cannot open xviewer

Post by chingyinwan123 » Sat May 19, 2018 11:38 am

It seems that I do not have permission to everything in /home.

Code: Select all

chingyinwan123@chingyinwan123-UX410UAK ~ $ find $HOME ! -user $USER -type f
find: ‘/home/chingyinwan123/.gvfs’: Permission denied
find: ‘/home/chingyinwan123/.dbus’: Permission denied
find: ‘/home/chingyinwan123/.cache/dconf’: Permission denied
Do I have to grant permission to the things above?

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Cannot open xviewer

Post by Sir Charles » Sat May 19, 2018 12:13 pm

Everything in /home should belong to your user.
Unable to create /home/chingyinwan123/.dbus/session-bus
find: ‘/home/chingyinwan123/.dbus’: Permission denied
In order to correct this, open a terminal and run:

Code: Select all

sudo chown -R $USER:$USER $HOME
Logout and log back in and run

Code: Select all

xviewer 
in a terminal and see if the issue is resolved.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

chingyinwan123
Level 1
Level 1
Posts: 5
Joined: Mon May 07, 2018 12:31 am

Re: Cannot open xviewer

Post by chingyinwan123 » Sat May 19, 2018 8:34 pm

I have granted permission, and I have tried launching xviewer, but it is unable to be launched:

Code: Select all

chingyinwan123@chingyinwan123-UX410UAK ~ $ xviewer

** (xviewer:2535): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-NDxCP3ndr3: Connection refused
Bus error (core dumped)
Using dbus-launch on it produces the same error. The gdb error output is the same as the one shown in my first post.

Is there anything else I should do next?

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Cannot open xviewer

Post by Sir Charles » Sat May 19, 2018 8:40 pm

I am :(, I don't have any more ideas here. Perhaps other more knowledgeable forum members can come up with some solution.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

User avatar
Flemur
Level 15
Level 15
Posts: 5936
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Cannot open xviewer

Post by Flemur » Sun May 20, 2018 11:42 am

chingyinwan123 wrote:
Sat May 19, 2018 8:34 pm
I have granted permission,
Changed owner, actually.
Is there anything else I should do next?
Delete its config files:

Code: Select all

find $HOME -iname "*xview*" 
then delete the files returned.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

chingyinwan123
Level 1
Level 1
Posts: 5
Joined: Mon May 07, 2018 12:31 am

Re: Cannot open xviewer

Post by chingyinwan123 » Thu May 31, 2018 7:19 am

Thank you for the advice.

Code: Select all

chingyinwan123@chingyinwan123-UX410UAK ~ $ find $HOME -iname "*xview*"
/home/chingyinwan123/.config/xviewer
I have deleted the config file in /home/chingyinwan123/.config/xviewer, and I have tried running xviewer again, but the errors it produces are the same.


Last bumped by chingyinwan123 on Thu May 31, 2018 7:19 am.

Post Reply

Return to “Software & Applications”