This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Gwenview doesn't like something on my desktop and locks up

Tags: None
(comma "," separated)
User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
If I try to open an image in my desktop folder with Gwenview, it locks up. This does not happen in any other folder on my file system, but I cannot seem to figure out what is actually causing this to happen. I've launched gwenview from konsole to see if any useful information comes up there, but I don't seem to be getting anywhere doing that as I've moved the folder it seems to be complaining about yet gwenview still locks up and the suspect folder changes.

Here is the konsole read out when launching gwenview and navigating to my desktop folder.

Code: Select all
ben@arch-desktop:~$ gwenview
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
gwenview(18098) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver registered
gwenview(18098)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory!
gwenview(18098)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory!
gwenview(18098) Gwenview::TimeUtils::CacheItem::updateFromExif: Could not open "/home/ben/Desktop/synaptiks" for reading
gwenview(18098) Gwenview::TimeUtils::CacheItem::updateFromExif: Could not open "/home/ben/Desktop/Gramatik - The Age of Reason" for reading


Any ideas on why this might be happening or how I further debug this?

—Thanks.
User avatar
google01103
Manager
Posts
6668
Karma
25
open kdebugdialog -> deselect all -> search for: gwenview -> select it -> ok
then try opening the file and then open in kate ~/.xsession-errors and at the bottom should be any errors found


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
google01103 wrote:open kdebugdialog -> deselect all -> search for: gwenview -> select it -> ok
then try opening the file and then open in kate ~/.xsession-errors and at the bottom should be any errors found

Same print out as the one from launching within konsole
User avatar
google01103
Manager
Posts
6668
Karma
25
does the file open ok with other programs such as Okular? or a non-KDE one?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
google01103 wrote:does the file open ok with other programs such as Okular? or a non-KDE one?

yes
User avatar
google01103
Manager
Posts
6668
Karma
25
can you place the image on a pic hosting site where I could access try it


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
google01103 wrote:can you place the image on a pic hosting site where I could access try it

The image is not the problem, it's that the file browser component of gwenview is running into an issue indexing (or whatever it does) something on my desktop
User avatar
google01103
Manager
Posts
6668
Karma
25
what's
Code: Select all
file --mimetype file_name  && file file_name


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
google01103 wrote:what's
Code: Select all
file --mimetype file_name  && file file_name

I'm unclear on what file I should be examining
User avatar
google01103
Manager
Posts
6668
Karma
25
sorry I might have gotten confused, its a specific folder and no matter where that folder resides trying to open it in Gwenview freezes Gwenview?

let's go back to your 1st post and retry opening the folder and a file in that folder with gwenview from within Konsole and then again look at ~/.xsession-errors using the command
Code: Select all
gwenview folder_name

and
Code: Select all
gwenview folder_name/file_name


also run the file command from my previous post on that specific folder


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
google01103 wrote:sorry I might have gotten confused, its a specific folder and no matter where that folder resides trying to open it in Gwenview freezes Gwenview?

let's go back to your 1st post and retry opening the folder and a file in that folder with gwenview from within Konsole and then again look at ~/.xsession-errors using the command
Code: Select all
gwenview folder_name

and
Code: Select all
gwenview folder_name/file_name


also run the file command from my previous post on that specific folder


Thanks again for your help and bearing with me!

Code: Select all
ben@arch-desktop:~$ gwenview ~/Desktop/
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
gwenview(11688) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver registered
gwenview(11688)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory!
gwenview(11688)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory!
gwenview(11688) Gwenview::TimeUtils::CacheItem::updateFromExif: Could not open "/home/ben/Desktop/synaptiks" for reading
gwenview(11688) Gwenview::TimeUtils::CacheItem::updateFromExif: Could not open "/home/ben/Desktop/Gramatik - The Age of Reason" for reading
Killed


Code: Select all
ben@arch-desktop:~$ gwenview ~/Desktop/ego\ diagram.png
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
gwenview(11786) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver registered
gwenview(11786)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory!
gwenview(11786)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory!
gwenview(11786) Gwenview::TimeUtils::CacheItem::updateFromExif: Could not open "/home/ben/Desktop/synaptiks" for reading
gwenview(11786) Gwenview::TimeUtils::CacheItem::updateFromExif: Could not open "/home/ben/Desktop/Gramatik - The Age of Reason" for reading
Killed


Code: Select all
ben@arch-desktop:~$ file --mimetype ~/Desktop/ && file ~/Desktop/
file: unrecognized option '--mimetype'
Usage: file [-bchikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
       file -C [-m magicfiles]
       file [--help]
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please run Gwenview under a debugger such as gdb, and generate a backtrace. Based on the "Killed" message which is printed to the terminal, I suspect Gwenview could be attempting to exceed resource usage limits (ulimit -a) or is entering into a recursive loop.

A debugger should clarify which of these is the case, or highlight the code which is at fault.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
benjamindaines
Registered Member
Posts
50
Karma
0
OS
bcooksley wrote:Please run Gwenview under a debugger such as gdb, and generate a backtrace. Based on the "Killed" message which is printed to the terminal, I suspect Gwenview could be attempting to exceed resource usage limits (ulimit -a) or is entering into a recursive loop.

A debugger should clarify which of these is the case, or highlight the code which is at fault.

Thanks again for your replies and your patience (especially your patience ;) ). However, I regret that I'm not familiar with debuggers or producing backtraces. I'm going to read up on it in my distro's wiki, but if you could provide me with info on how to do this, well, that would be great too.

I've installed ddd and gdb and attempted to run gwenview though it, but it just informs me that I do not have debugging symbols for it and finishes without launching the app or doing anything useful.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You should be able to install debugging symbols using your package manager - they usually have a -dbg or -debug suffix. For Gwenview, you'll want to get the debugging symbols for Qt and kdelibs as well.

In terms of starting Gwenview in a debugger, I would suggest looking at the information provided at https://wiki.debian.org/HowToGetABacktrace#Running_gdb


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
agateau
Moderator
Posts
97
Karma
0
OS
Alternatively, you may want to run Gwenview with strace like this:

strace -s 100 gwenview > strace.log 2>&1

and post the generated strace.log file.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell