Summary: | opening a picture in the image editor only shows a black area and claims that the picture is 0x0 pixels in size | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Georg Kovalcik <gk> |
Component: | ImageEditor-Load | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | caulier.gilles, mschwendt, rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 7.5.0 | |
Sentry Crash Report: | |||
Attachments: |
test tarball
tar.gz |
Description
Georg Kovalcik
2004-10-20 15:00:26 UTC
can you check the messages on the console and see if you see any error messages. i'm suspecting a broken imlib2 or imlib2_loaders No, there are no error messages. imlib2 and imlib2_loaders are version 1.1.2. i just installed imlib2 1.1.2 and recompiled digikam and it works fine here. is any other viewer using imlib2 working on your system. Also, fire up digikam from a console and open up an image in the imageviewer and mail me ALL the console messages that you see. Can you attach one of your images to the bugreport or send it per mail to us? Actually I don't think, the image is the problem, but since nobody of us can reproduce it.... I have just tried gliv (a viewer which uses imlib2) and it works OK. (I am not aware of any KDE programs that use imlib2 besides digikam 0.7). Starting digikam and opening an image with the editor generates no console messages at all, but rotating it does: ***** Imlib2 Developer Warning ***** : This program is calling the Imlib call: imlib_image_get_width(); With the parameter: image being NULL. Please fix your program. I can send you an image, although I am almost sure this is no image problem, too. All images are displayed by digikam 0.6.2 and other programs, none of them by the editor of digikam 0.7.0. gliv doesn't use imlib2 afaik. it uses opengl and gdk-pixbuf. one viewer which i know of is "feh" (http://www.linuxbrit.co.uk/feh/). if you can install it and test and report, it will be great. if you can't i will give you a sample test program to compile and run. Created attachment 7974 [details]
test tarball
i have attached a mini test tarball. steps to compile:
tar zxvf imlib-test.tar.gz
cd imlib-test
qmake
make
once its compiled, run it with the path to an image file as an argument:
./imlib-test /path/to/image
run it and report back. also email any console messages
imlib-test displays all images I have tested so far and generates no console messages. hmm... can you check what this two commands report: ldd /path/to/binary/of/digikam |grep -i imlib ldd /path/to/binary/of/imlib-test | grep -i imlib ldd /usr/bin/digikam |grep -i imlib libImlib2.so.1 => /usr/lib/libImlib2.so.1 (0xf6d8e000) ldd /usr/src/redhat/BUILD/imlib-test/imlib-test | grep -i imlib libImlib2.so.1 => /usr/lib/libImlib2.so.1 (0xf6f6e000) Created attachment 7976 [details]
tar.gz
one more test. this time its the imageviewer of digikam itself. compile it the
same way as before. you can specify a bunch of files together:
for eg.
./canvas-test /path/to/images/*.jpeg
browse throught them using page-up and page-down
Meanwhile I have tried to downgrade imlib2, and the good news is with version 1.1.0 it works. Results so far: imlib2 1.1.0 1.1.1 1.1.2 digikam 0.7 works no no imlib-test works not tested works canvas-test no not tested no (canvas-test opens a window but shows no image, just a black area. No console messages.) good to hear that. you would need to check if you don't have multiple stale imlib2 libraries lying around. i will close this bug, as its not a digikam issue, but an installation problem I am pretty sure there are no stale imlib2 libraries lying around, because I build them as RPMs and had them uninstalled (and did a ldconfig) before installing another version. I am not sure if this bug should be treated as resolved. At least the fact remains that imlib-test works with imlib2 1.1.2 and 1.1.0 (so imlib2 is not the culprit) but digikam works with 1.1.0 only. (Doesn´t work with any later version). as i said, i got imlib2 1.1.2 installed (after you reported this problem) and it works fine for me. i will reopen this bug, if anyone else reports the same problem. I've just installed imlib2 1.1.2 and recompiled digikam. No problems here. Version: 0.7.0 (using KDE 3.1.4) Installed from: Compiled From Sources Compiler: gcc 3.3.1 OS: Linux i686 release 2.4.21-243-athlon (SuSE 9.0) Using imlib2 version 1.1.0 (RPM-package from SuSE, updated through YOU). No other "stale" imlib2 libraries installed. imlib version 1.9.14 also installed (older version? lots of dependencies, so I can't uninstall it) I have more or less the same problem as Georg Kovalcik. Viewing a picture in the Digikam Image Editor does not work (just a black window, 0x0 pixels), and produces the following output in a console window: kdecore (KAction): WARNING: KAction::updateShortcut(): name = "file_delete", cut = Shift+Delete; No KAccel, probably missing a parent collection. kdecore (KAction): WARNING: KAction::updateShortcut(): name = "file_delete", cut = Shift+Delete; No KAccel, probably missing a parent collection. digikam: WARNING: [bool Digikam::ImlibInterface::load(const QString&)] Failed to load image: error number: 4 ***** Imlib2 Developer Warning ***** : This program is calling the Imlib call: imlib_image_orientate(); With the parameter: image being NULL. Please fix your program. ***** Imlib2 Developer Warning ***** : This program is calling the Imlib call: imlib_image_get_width(); With the parameter: image being NULL. Please fix your program. ***** Imlib2 Developer Warning ***** : This program is calling the Imlib call: imlib_image_get_height(); With the parameter: image being NULL. Please fix your program. Please reopen this bug and examine. Stephan van den Akker please install the imlib2 loaders rpm as well Adding the imlib2 loaders rpm did the trick. Thank you for your swift response. Stephan van den Akker Hi, I am also having a problem with the image editor (and slideshow plugin) just showing a black window. I am using Fedora core 3 + digikam 0.7 compiled from source + imlib2 1.1.2. I have checked that the image loaders are installed and imlib correctly shows images. I have tried the imlib-test and canvas-test apps posted in this bug report. imlib-test works fine but canvas-test just gives the blank window. Any suggestions? Cheers, Alex Another data point: FC3 on x86_64, digikam compiled from source, imlib2-1.1.0-2.1.fc2.dag from Dag yum repository. Same problem with black screen in image editor. I have finally managed to build a set of RPMs that work on FC3. I have build imlib2-1.1.1 combined with a patch borrowed from SuSE, this seems to do the trick. If someone wants to try them out, you can find them on: http://www.hal9000.at/digikam/ George, how about the src.rpms as well? For us, it was a imlib .la file issue. See https://bugzilla.fedora.us/show_bug.cgi?id=2284 for details. I have put the src.rpms online too. BTW, my rpms do not include the .la files, are they only needed with imlib2 1.1.2 ? .la issue in KDE (Fedora Core) filed as bug 93359. It should use the .so files from Imlib2. >If someone wants to try them out, you can find them on:
>http://www.hal9000.at/digikam/
Thanks for creating the source rpms. Unfortunately they won't build on the x86_64 platform:
RPM build errors:
File not found by glob: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/lib*.so*
File not found: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/imlib2_loaders
File not found: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/imlib2_loaders/filter
File not found: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/imlib2_loaders/image
File not found by glob: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/imlib2_loaders/filter/*
File not found by glob: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/imlib2_loaders/image/*
File not found by glob: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/*.la
File not found by glob: /home/bdaniels/rpmbuild/imlib2-1.1.1-3-root/usr/lib64/pkgconfig/*.pc
I'm from brazil, sorry by my poor english ! I use the Kurumin Linux (Knoppix based), has this problem, Editor em slideshow show only the background, no image, Console show me this error digikam: WARNING: [bool Digikam::ImlibInterface::load(const QString&)] Failed to load image: error number: 4 Digikam 0.6.x work fine, but 0.7 not :( Kurumin Linux 3.3 Kernel 2.6.8-kanotix KDE 3.3 I find this http://sourceforge.net/mailarchive/message.php?msg_id=10165900 This say about imcompatibilities from KDE >= 3.2 :/ Again, it's NOT a digikam bug. Technically, it's a kdelibs bug (see bug #93359 for details), and imlib2 packages built without all of it's accompanying .la files (see comment #24) will make digikam to fail to load/display some/all image types. Well, thats right for the FreeBSD-Port as well - the .la files were *not* installed by the imlib2-port, but they were needed badly! I'm running FreeBSD 5.3-STABLE as of Dec 4, 2004. I consider this a bug of the digikam-port because digikam *is* a KDE application and if imlib2 is installed as a dependency, the .la files have to be installed as well. Just my 0.02 EURO :-) FYI, once bug #93359 is fixed, then .la files really should no longer be needed. Just wanted to Post that I found this same issue on my SuSE 10 distro and updated imlib2 as well as installing the loaders and it resolved the problem as well. Thanks for the footwork guys! I am experiencing this with Kubuntu Edgy (6.10) and digiKam 0.8.2 running in KDE 3.5.5 right now. I am using 64-bit version of Kubuntu, for what that is worth. I have libimlib2 version 1.2.1-2ubuntu1.1. I also installed all other binary packages with imlib in the name from adept packacge manager today. This does not seem to fix the problem. What will I need to do to fix this? |