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

Gwenview cannot display documents of type image/jpeg

Tags: None
(comma "," separated)
elek76
Registered Member
Posts
10
Karma
0
OS
Hello,

This problem has been bugging me since some 4.2.x upgrade. Now that it is still present with 4.3.1, I decided to call for help.

Gwenview cannot display any images, it always reports $SUBJ.

I'm on Gentoo, KDE 4.3.1.
libkipi is installed, gwenview is told to use KIPI (compiled with the kipi use flag).
kmimetypefinder reports the file types correctly.

I suspect that it is some configuration issue, does anyone has an idea where I should look for more information (logs, config files, etc.)?

Thanks,

Elek

P.S. This is on my desktop at work. At home I have a very similar configuration and no problems with gwenview.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you create a new user, do you experience the same problem?

If you cannot create a new user, move the ~/.kde4 folder somewhere else ( do not remove it, as it contains all PIM data / etc )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
elek76
Registered Member
Posts
10
Karma
0
OS
Thanks for the hint.
I created a new user and logged in into its clean KDE desktop.
Gwenview reported the same error so it must be something global.
john_hudson
Registered Member
Posts
549
Karma
2
OS
Do you really mean ones with a jpeg ending? It displays the jpg photos I have perfectly.


John Hudson, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please ensure the packages shared-mime-types, kdelibs and kdebase-runtime are properly installed? In particular kimg_* should be installed from kdelibs.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
elek76
Registered Member
Posts
10
Karma
0
OS
john_hudson wrote:Do you really mean ones with a jpeg ending? It displays the jpg photos I have perfectly.

Exactly. Files that can be opened e.g. by gimp.
elek76
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:Can you please ensure the packages shared-mime-types, kdelibs and kdebase-runtime are properly installed? In particular kimg_* should be installed from kdelibs.


The Gentoo package names seem to be somewhat different from that of openSUSE, I have the following packages installed:
- app-misc/mime-types, containing /etc/mime.types
- kde-base/kmimetypefinder-4.3.1
- kde-base/mimelib-4.3.1, containing libmimelib
- kde-base/kdelibs-4.3.1, with 77 shared libs in /usr/lib and /usr/lib/kde4
- kde-base/plasma-runtime-4.3.1, containing plasmapkg and javascript runner libraries

I don't thing reinstalling any of them would help because the problem has been there since before 2 or 3 KDE upgrades (I tried reinstalling mime-types, with no success).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
shared-mime-info it should have been. Oops. This is not a KDE package, and contains most of the mimetypes shared between the various desktops.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
elek76
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:shared-mime-info it should have been. Oops. This is not a KDE package, and contains most of the mimetypes shared between the various desktops.


Yep, I have this one:
x11-misc/shared-mime-info-0.60

/usr/share/mime/packages/freedesktop.org.xml seems to contain some mime definitions.
Tried `update-mime-database -V /usr/share/mime/' - no changes (I might have to re-login but can't do it right now, will try later).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
One more thing, could you check to make sure that Gwenview is not finding your older 4.1.x libraries that may be installed in a different location?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
elek76
Registered Member
Posts
10
Karma
0
OS
4.1.x was installed slotted on my system (kde stuff was in /usr/kde/4.1) and that directory does not exist any more (support for slotted kde installs was removed in some 4.2.x release).

Anyway, I checked and it seems that all libraries used by gwenview belong to current packages:

Code: Select all
$ for lib in `ldd \`which gwenview \`|sed 's/.*=> \(.*\) .*/\1/'`; do equery b $lib; done
 * Searching for /usr/lib/libkfile.so.4 ...
kde-base/kdelibs-4.3.1 (/usr/lib/libkfile.so.4 -> libkfile.so.4.3.0)
 * Searching for /usr/lib/libgwenviewlib.so.4 ...
kde-base/gwenview-4.3.1 (/usr/lib/libgwenviewlib.so.4 -> libgwenviewlib.so.4.3.0)
 * Searching for /usr/lib/libkio.so.5 ...
kde-base/kdelibs-4.3.1 (/usr/lib/libkio.so.5 -> libkio.so.5.3.0)
 * Searching for /usr/lib/qt4/libQtCore.so.4 ...
x11-libs/qt-core-4.5.2 (/usr/lib/qt4/libQtCore.so.4 -> libQtCore.so.4.5.2)
 * Searching for /lib/libpthread.so.0 ...
sys-libs/glibc-2.10.1 (/lib/libpthread.so.0 -> libpthread-2.10.1.so)
 * Searching for /usr/lib/libkipi.so.6 ...
kde-base/libkipi-4.3.1 (/usr/lib/libkipi.so.6 -> libkipi.so.6.1.0)
 * Searching for /usr/lib/libkdeui.so.5 ...
kde-base/kdelibs-4.3.1 (/usr/lib/libkdeui.so.5 -> libkdeui.so.5.3.0)
 * Searching for /usr/lib/qt4/libQtSvg.so.4 ...
x11-libs/qt-svg-4.5.2 (/usr/lib/qt4/libQtSvg.so.4 -> libQtSvg.so.4.5.2)
 * Searching for /usr/lib/libkdecore.so.5 ...
kde-base/kdelibs-4.3.1 (/usr/lib/libkdecore.so.5 -> libkdecore.so.5.3.0)
 * Searching for /usr/lib/qt4/libQtDBus.so.4 ...
x11-libs/qt-dbus-4.5.2 (/usr/lib/qt4/libQtDBus.so.4 -> libQtDBus.so.4.5.2)
 * Searching for /usr/lib/qt4/libQtNetwork.so.4 ...
x11-libs/qt-core-4.5.2 (/usr/lib/qt4/libQtNetwork.so.4 -> libQtNetwork.so.4.5.2)
 * Searching for /usr/lib/qt4/libQtXml.so.4 ...
x11-libs/qt-core-4.5.2 (/usr/lib/qt4/libQtXml.so.4 -> libQtXml.so.4.5.2)
 * Searching for /usr/lib/qt4/libQtGui.so.4 ...
x11-libs/qt-gui-4.5.2-r2 (/usr/lib/qt4/libQtGui.so.4 -> libQtGui.so.4.5.2)
 * Searching for /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6 ...
sys-devel/gcc-4.3.3-r2 (/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6 -> libstdc++.so.6.0.10)
 * Searching for /lib/libm.so.6 ...
sys-libs/glibc-2.10.1 (/lib/libm.so.6 -> libm-2.10.1.so)
 * Searching for /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgcc_s.so.1 ...
sys-devel/gcc-4.3.3-r2 (/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgcc_s.so.1)
 * Searching for /lib/libc.so.6 ...
sys-libs/glibc-2.10.1 (/lib/libc.so.6 -> libc-2.10.1.so)
 * Searching for /lib/libz.so.1 ...
sys-libs/zlib-1.2.3-r1 (/lib/libz.so.1 -> libz.so.1.2.3)
 * Searching for /usr/lib/libstreams.so.0 ...
app-misc/strigi-0.7.0 (/usr/lib/libstreams.so.0 -> libstreams.so.0.7.0)
 * Searching for /usr/lib/libstreamanalyzer.so.0 ...
app-misc/strigi-0.7.0 (/usr/lib/libstreamanalyzer.so.0 -> libstreamanalyzer.so.0.7.0)
 * Searching for /usr/lib/libsolid.so.4 ...
kde-base/kdelibs-4.3.1 (/usr/lib/libsolid.so.4 -> libsolid.so.4.3.0)
 * Searching for /usr/lib/libSM.so.6 ...
x11-libs/libSM-1.1.1 (/usr/lib/libSM.so.6 -> libSM.so.6.0.1)
 * Searching for /usr/lib/libICE.so.6 ...
x11-libs/libICE-1.0.5 (/usr/lib/libICE.so.6 -> libICE.so.6.3.0)
 * Searching for /usr/lib/libX11.so.6 ...
x11-libs/libX11-1.1.5 (/usr/lib/libX11.so.6 -> libX11.so.6.2.0)
 * Searching for /usr/lib/libXext.so.6 ...
x11-libs/libXext-1.0.4 (/usr/lib/libXext.so.6 -> libXext.so.6.4.0)
 * Searching for /usr/lib/libXft.so.2 ...
x11-libs/libXft-2.1.13 (/usr/lib/libXft.so.2 -> ibXft.so.2.1.13)
 * Searching for /usr/lib/libXau.so.6 ...
x11-libs/libXau-1.0.4 (/usr/lib/libXau.so.6 -> libXau.so.6.0.0)
 * Searching for /usr/lib/libXdmcp.so.6 ...
x11-libs/libXdmcp-1.0.2 (/usr/lib/libXdmcp.so.6 -> libXdmcp.so.6.0.0)
 * Searching for /usr/lib/libXpm.so.4 ...
x11-libs/libXpm-3.5.7 (/usr/lib/libXpm.so.4 -> libXpm.so.4.11.0)
 * Searching for /usr/lib/libXrender.so.1 ...
x11-libs/libXrender-0.9.4 (/usr/lib/libXrender.so.1 -> libXrender.so.1.3.0)
 * Searching for /usr/lib/libphonon.so.4 ...
media-sound/phonon-4.4_pre20090520 (/usr/lib/libphonon.so.4 -> libphonon.so.4.4.0)
 * Searching for /usr/lib/libjpeg.so.7 ...
media-libs/jpeg-7 (/usr/lib/libjpeg.so.7 -> libjpeg.so.7.0.0)
 * Searching for /usr/lib/libexiv2.so.5 ...
media-gfx/exiv2-0.18.1-r1 (/usr/lib/libexiv2.so.5 -> libexiv2.so.5.3.0)
 * Searching for /usr/lib/libfam.so.0 ...
dev-libs/libgamin-0.1.10-r2 (/usr/lib/libfam.so.0 -> libfam.so.0.0.0)
 * Searching for /lib/libacl.so.1 ...
sys-apps/acl-2.2.47-r1 (/lib/libacl.so.1 -> libacl.so.1.1.0)
 * Searching for /lib/libattr.so.1 ...
sys-apps/attr-2.4.43 (/lib/libattr.so.1 -> libattr.so.1.1.0)
 * Searching for /usr/lib/libgthread-2.0.so.0 ...
dev-libs/glib-2.20.5 (/usr/lib/libgthread-2.0.so.0 -> libgthread-2.0.so.0.2000.5)
 * Searching for /lib/librt.so.1 ...
sys-libs/glibc-2.10.1 (/lib/librt.so.1 -> librt-2.10.1.so)
 * Searching for /usr/lib/libglib-2.0.so.0 ...
dev-libs/glib-2.20.5 (/usr/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.2000.5)
 * Searching for /lib/libdl.so.2 ...
sys-libs/glibc-2.10.1 (/lib/libdl.so.2 -> libdl-2.10.1.so)
 * Searching for /lib/ld-linux.so.2 ...
sys-libs/glibc-2.10.1 (/lib/ld-linux.so.2 -> ld-2.10.1.so)
 * Searching for /usr/lib/libkparts.so.4 ...
kde-base/kdelibs-4.3.1 (/usr/lib/libkparts.so.4 -> libkparts.so.4.3.0)
 * Searching for /usr/lib/libXtst.so.6 ...
x11-libs/libXtst-1.0.3 (/usr/lib/libXtst.so.6 -> libXtst.so.6.1.0)
 * Searching for /usr/lib/libXcursor.so.1 ...
x11-libs/libXcursor-1.1.9 (/usr/lib/libXcursor.so.1 -> libXcursor.so.1.0.2)
 * Searching for /usr/lib/libXfixes.so.3 ...
x11-libs/libXfixes-4.0.3 (/usr/lib/libXfixes.so.3 -> libXfixes.so.3.1.0)
 * Searching for /usr/lib/libaudio.so.2 ...
media-libs/nas-1.9.2 (/usr/lib/libaudio.so.2 -> libaudio.so.2.4)
 * Searching for /usr/lib/libXt.so.6 ...
x11-libs/libXt-1.0.6 (/usr/lib/libXt.so.6 -> libXt.so.6.0.0)
 * Searching for /usr/lib/libpng12.so.0 ...
media-libs/libpng-1.2.38 (/usr/lib/libpng12.so.0 -> libpng12.so.0.38.0)
 * Searching for /usr/lib/libfreetype.so.6 ...
media-libs/freetype-2.3.9-r1 (/usr/lib/libfreetype.so.6 -> libfreetype.so.6.3.20)
 * Searching for /usr/lib/libXrandr.so.2 ...
x11-libs/libXrandr-1.3.0 (/usr/lib/libXrandr.so.2 -> libXrandr.so.2.2.0)
 * Searching for /usr/lib/libXinerama.so.1 ...
x11-libs/libXinerama-1.0.3 (/usr/lib/libXinerama.so.1 -> libXinerama.so.1.0.0)
 * Searching for /usr/lib/libfontconfig.so.1 ...
media-libs/fontconfig-2.7.2 (/usr/lib/libfontconfig.so.1 -> libfontconfig.so.1.4.2)
 * Searching for /lib/libbz2.so.1 ...
app-arch/bzip2-1.0.5-r1 (/lib/libbz2.so.1 -> libbz2.so.1.0.5)
 * Searching for /lib/libresolv.so.2 ...
sys-libs/glibc-2.10.1 (/lib/libresolv.so.2 -> libresolv-2.10.1.so)
 * Searching for /usr/lib/libdbus-1.so.3 ...
sys-apps/dbus-1.3.0 (/usr/lib/libdbus-1.so.3 -> libdbus-1.so.3.5.0)
 * Searching for /usr/lib/libxml2.so.2 ...
dev-libs/libxml2-2.7.3-r2 (/usr/lib/libxml2.so.2 -> libxml2.so.2.7.3)
 * Searching for /lib/libuuid.so.1 ...
sys-apps/util-linux-2.16-r1 (/lib/libuuid.so.1 -> libuuid.so.1.3.0)
 * Searching for /usr/lib/libxcb-xlib.so.0 ...
x11-libs/libxcb-1.1.90.1 (/usr/lib/libxcb-xlib.so.0 -> libxcb-xlib.so.0.0.0)
 * Searching for /usr/lib/libxcb.so.1 ...
x11-libs/libxcb-1.1.90.1 (/usr/lib/libxcb.so.1 -> libxcb.so.1.0.0)
 * Searching for /usr/lib/libexpat.so.1 ...
dev-libs/expat-2.0.1-r2 (/usr/lib/libexpat.so.1 -> libexpat.so.1.5.2)
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
Could this be related to the recent jpeg-7 upgrade? Have you run a "revdep-rebuild" / "emerge @preserved-rebuild" lately?


Get problems solved faster - get reply notifications through Jabber!
elek76
Registered Member
Posts
10
Karma
0
OS
Alec wrote:Could this be related to the recent jpeg-7 upgrade? Have you run a "revdep-rebuild" / "emerge @preserved-rebuild" lately?

I always do "revdep rebuild -i" after world updates. Also @preserved-rebuild if emerge says so.
I checked media-libs/jpeg and according to eix, v7 was installed at the end of August. I think I've had this problem with gwenview before that. Will try to downgrade to the stable 6b-r8 though and will let you know if it helps.

I also tried opening other formats with gwenview this morning. The same error is reported to PNGs anf TIFFs. Actually File/Open only offers the SVG filters (compressed and uncompressed) so I suppose this is the only format it can handle right now.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You may wish to try rebuilding Qt and KDELibs as well then, since both are supposed to supply handlers for those file types.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
elek76
Registered Member
Posts
10
Karma
0
OS
Qt and KDE must be OK in general because images are shown on the desktop background.

I figured that it works only for the root user (not even for newly created users). I'm comparing strace outputs right now. ENOACCESS did not bring anything yet.


Bookmarks



Who is online

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