Reply to topic

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

User avatar benjamindaines
Registered Member
Posts
37
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
4960
Karma
17
OS
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 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar benjamindaines
Registered Member
Posts
37
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
4960
Karma
17
OS
does the file open ok with other programs such as Okular? or a non-KDE one?


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar benjamindaines
Registered Member
Posts
37
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
4960
Karma
17
OS
can you place the image on a pic hosting site where I could access try it


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar benjamindaines
Registered Member
Posts
37
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
4960
Karma
17
OS
what's
Code: Select all
file --mimetype file_name  && file file_name


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar benjamindaines
Registered Member
Posts
37
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
4960
Karma
17
OS
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 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar benjamindaines
Registered Member
Posts
37
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
18607
Karma
83
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.


System Settings and Device Actions KCM maintainer
Image
User avatar benjamindaines
Registered Member
Posts
37
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
18607
Karma
83
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


System Settings and Device Actions KCM maintainer
Image
User avatar agateau
Moderator
Posts
96
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.

 
Reply to topic

Bookmarks



Who is online

Registered users: Artmessiah, Baidu [Spider], Bing [Bot], Buddlespit, Exabot [Bot], garthecho, Google [Bot], Hans, koriun, La Ninje, valoriez, whatthefunk, Yahoo [Bot]