Bug 91759 - opening a picture in the image editor only shows a black area and claims that the picture is 0x0 pixels in size
Summary: opening a picture in the image editor only shows a black area and claims that...
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: ImageEditor-Load (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-20 15:00 UTC by Georg Kovalcik
Modified: 2022-02-03 03:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments
test tarball (1.24 KB, application/x-tarz)
2004-10-21 00:08 UTC, Renchi Raju
Details
tar.gz (14.72 KB, application/x-tarz)
2004-10-21 01:36 UTC, Renchi Raju
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Kovalcik 2004-10-20 15:00:26 UTC
Version:           0.7.0 beta1 (using KDE KDE 3.3.1)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.2 
OS:                Linux

When opening a picture with the image editor only the background is visible and
the status bar (lower right corner) says 0x0 pixels. Same image is OK with all
other graphic programs.
System is Fedora Core 3 - test3, imlib2 and imlib2_loaders are installed.
Comment 1 Renchi Raju 2004-10-20 16:14:23 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
Comment 2 Georg Kovalcik 2004-10-20 16:49:44 UTC
No, there are no error messages. imlib2 and imlib2_loaders are version 1.1.2. 
Comment 3 Renchi Raju 2004-10-20 18:30:50 UTC
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.
Comment 4 Joern Ahrens 2004-10-20 18:40:36 UTC
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....
Comment 5 Georg Kovalcik 2004-10-20 22:20:56 UTC
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.
Comment 6 Renchi Raju 2004-10-20 23:02:31 UTC
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.
Comment 7 Renchi Raju 2004-10-21 00:08:05 UTC
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
Comment 8 Georg Kovalcik 2004-10-21 00:48:16 UTC
imlib-test displays all images I have tested so far and generates no
console messages.
Comment 9 Renchi Raju 2004-10-21 01:00:49 UTC
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
Comment 10 Georg Kovalcik 2004-10-21 01:12:56 UTC
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)
Comment 11 Renchi Raju 2004-10-21 01:36:53 UTC
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
Comment 12 Georg Kovalcik 2004-10-21 14:09:17 UTC
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.)
Comment 13 Renchi Raju 2004-10-21 21:08:42 UTC
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
Comment 14 Georg Kovalcik 2004-10-21 21:42:23 UTC
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).
Comment 15 Renchi Raju 2004-10-21 21:55:39 UTC
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.
Comment 16 Joern Ahrens 2004-10-21 22:57:24 UTC
I've just installed imlib2 1.1.2 and recompiled digikam. No problems here.
Comment 17 Stephan van den Akker 2004-11-09 00:07:44 UTC
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
Comment 18 Renchi Raju 2004-11-09 00:26:37 UTC
please install the imlib2 loaders rpm as well
Comment 19 Stephan van den Akker 2004-11-09 07:48:44 UTC
Adding the imlib2 loaders rpm did the trick.

Thank you for your swift response.

Stephan van den Akker
Comment 20 Alex Young 2004-11-13 02:09:44 UTC
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
Comment 21 bitmage 2004-11-13 04:29:26 UTC
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.
Comment 22 Georg Kovalcik 2004-11-13 15:21:43 UTC
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/
Comment 23 Rex Dieter 2004-11-15 19:44:21 UTC
George, how about the src.rpms as well?
Comment 24 Rex Dieter 2004-11-15 22:31:08 UTC
For us, it was a imlib .la file issue.  See
https://bugzilla.fedora.us/show_bug.cgi?id=2284
for details.
Comment 25 Georg Kovalcik 2004-11-15 23:17:03 UTC
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 ?
Comment 26 Michael Schwendt 2004-11-16 13:36:50 UTC
.la issue in KDE (Fedora Core) filed as bug 93359. It should use the .so files from Imlib2.
Comment 27 bitmage 2004-11-16 16:33:10 UTC
>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
Comment 28 Ed Carlos de Paula 2004-11-30 17:58:36 UTC
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  :/
Comment 29 Rex Dieter 2004-11-30 21:44:52 UTC
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.
Comment 30 Matthias Schuendehuette 2004-12-08 21:05:05 UTC
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 :-)
Comment 31 Rex Dieter 2004-12-08 21:29:25 UTC
FYI, once bug #93359 is fixed, then .la files really should no longer be needed.
Comment 32 drumvudu 2006-04-27 05:27:58 UTC
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!
Comment 33 Thomas Sperre 2006-11-04 20:44:56 UTC
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?