Bug 165885 - thumbnails and images are NOT displayed in the main view center pane
Summary: thumbnails and images are NOT displayed in the main view center pane
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Thumbs (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-06 21:04 UTC by Geoff King
Modified: 2017-07-23 20:48 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments
center pane is empty. (141.89 KB, image/png)
2008-07-06 21:08 UTC, Geoff King
Details
Screenshot illustrating problem (91.82 KB, image/png)
2008-07-27 12:44 UTC, Dotan Cohen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff King 2008-07-06 21:04:11 UTC
Version:           0.10.0-beta1 (using 4.00.83 (KDE 4.0.83 (KDE 4.1 Beta2), Kubuntu packages)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-19-generic

I cannot see any of my pictures.  Thumbnails and images are NOT displayed in the main view center pane where they should be.  

This is the text from the terminal.  I will attach a screenshot. 

For example..... 
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested. 
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested. 
digikam(9267): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
" 
digikam(9267): Failed to list url:  "Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
." 

QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested. 
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested. 
digikam(9267): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
" 
digikam(9267): Failed to list url:  "Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
." 

QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested. 
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested. 
digikam(9267): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
" 
digikam(9267): Failed to list url:  "Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
." 

QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::end: Painter not active, aborted
[GeoParser::read] -> Error occurred: "Premature end of document." 
Could not parse data!
Style reset requested.
Comment 1 Geoff King 2008-07-06 21:08:06 UTC
Created attachment 25885 [details]
center pane is empty.  

no pictures are displayed in the center pane for any of folders/albums.
Comment 2 Marcel Wiesweg 2008-07-06 21:27:21 UTC
Ignore all error messages except these lines:
digikam(9267): couldn't create slave: "Unable to create io-slave: 
 klauncher said: Unknown protocol 'digikamalbums'. 
 
This means that KDE cannot start the ioslave, because something in the installation is broken, paths are not set or whatever.
Comment 3 Mikolaj Machowski 2008-07-06 21:31:14 UTC
I had the same when started 0.10 for first time. All next times it was
working. Can be distressing for new user.
Comment 4 caulier.gilles 2008-07-07 08:18:36 UTC
This is a digiKam kioslave running problem with your KDE4. Are you set the right env. before to run digiKam ?

Here, my KDE4 is installed to /opt/kde4. befor to run digiKam, is set this env:

DBUSDIR="/opt/kde4";
KDEDIR="/opt/kde4";
KDEDIRS="/opt/kde4";
KDEHOME="/home/gilles/.kde4";
KDETMP="/home/gilles/tmp/gilles-kde4";
KDEVARTMP="/var/tmp/gilles-kde4";
LD_LIBRARY_PATH="/opt/kde4/lib:";
QTDIR="/usr/lib/qt4";
QT_PLUGIN_PATH="/opt/kde4/lib/kde4/plugins"; 

Gilles
Comment 5 Marcel Wiesweg 2008-07-07 15:55:55 UTC
It seems this is the same problem reported in other unrelated bug reports as well - no images at first start, everything all right after restart.
Are we breaking the ioslaves somehow during the scanning process? A problem with KDE?
Comment 6 Geoff King 2008-07-08 01:16:59 UTC
I tried to add/check some of the env variables like your example above, but it does not help.  Also note that this problem persists after the restart.  

Let me know if I can provide any more information. 
Comment 7 Geoff King 2008-07-12 15:56:48 UTC
It's now "almost" resolved by changing the env variables.  I now can see thumbnails and the full picture when using the image editor.  However, I cannot see the image when using the "View" button or double clicking thumbnail.  The pane is empty and there are no warnings on the terminal  This may actually be something else now that the ioslaves issue is resolved. 

The variables that worked are below. 
DIGIKAMKDE4=$HOME/programs/src/digikam4/build
export LIBDIR=$DIGIKAMKDE4:/usr/lib/kde4
export DBUSDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIRS=$DIGIKAMKDE4:/usr/lib/kde4
export KDEHOME=/home/gsking/.kde4
export KDETMP=/home/gsking/tmp/gsking-kde4
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib:/usr/lib/kde4:/usr/lib/kde4/lib
export LDPATH=$DIGIKAMKDE4/lib
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib
export QTDIR=/usr/lib/qt4
export QT_PLUGIN_PATH=/usr/lib/kde4/lib/kde4/plugins
export PKG_CONFIG_PATH=$DIGIKAMKDE4/lib/pkgconfig:/usr/lib/kde4/lib/pkgconfig
export PATH=$DIGIKAMKDE4/bin:$PATH

Comment 8 Arnd Baecker 2008-07-12 17:53:55 UTC
> However, I cannot see the image when using the "View" button or double
> clicking thumbnail.  The pane is empty and there are no warnings on the
> terminal


I also have this problem.
Comment 9 caulier.gilles 2008-07-12 18:14:57 UTC
In peview mode (F3), the thumbbar have been added to the bottom of central view.

There is a splitter widget to separate and resize contents. By default, this size is null. I have normally fixed this problem in current svn.

Go to the bottom of central view where splitter is and resize it with mouse. that all...

Gilles Caulier
Comment 10 Geoff King 2008-07-12 21:19:42 UTC
Thanks. That fixed it. 
Comment 11 Dotan Cohen 2008-07-14 00:00:20 UTC
Gilles, in SVN built not an hour ago I can confirm that this is still the case:
Thumbnails show fine, but to show photos in the Digikam main window one must resize the vertical splitter at the bottom of the screen. The photos showed fine in the Edit and Slideshow, however, and the thumbnails displayed fine as well.
Comment 12 Dotan Cohen 2008-07-27 12:44:24 UTC
Created attachment 26432 [details]
Screenshot illustrating problem

In this screenshot, it can be seen that the center pane main window is still
empty in a digikam built from today's SVN (2008-07-27). Furthermore, it can be
seen that the splitter bar at the bottom is not available for resize. I have
this output in the terminal:
digikam(2191): Failed to list url:  "Could not start process Unable to create
io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
Comment 13 Andi Clemens 2008-07-27 13:37:43 UTC
Were you really able to compile from today's SVN trunk? Somehow I'm missing 
icons and "make install" will not work anymore. I had to revert the changes 
made in #838143 to get it work properly again.

Anyway I still can see all my images... so I can't confirm this right now.

Andi
Comment 14 wuselwu 2008-10-11 16:47:09 UTC
I couldn't get rid of this bug in any digiKam version up to and including the current beta4, using openSUSE Factory RPMs on 64bit. I can't resize any vertical slider...
Comment 15 Geoff King 2008-11-16 18:59:50 UTC
I re-opened this bug, because this problem seems to keep coming back for me occasionally.  It is intermittent  and I don't know if its due to my system setup or digikam4.  (I'm using Ubuntu 8.10.)  For example, I used digikam4 a few days ago, but then tried it again today and its not working.  This is with latest SVN of exiv2, libs, digikam. 

I cannot see the thumbnails in the main view and get messages like this on the terminal:
digikam(20525): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.

When running in KDE4 I have not found a good way to fix this.  However, when in gnome it sometimes fixes the problem by running "killall klauncher" or "killall kdeinit4" and then re-starting digikam.  

Thanks, Geoff
Comment 16 Pau Ruŀlan Ferragut 2008-11-16 23:28:43 UTC
I can confirm this problematic behaviour on Ubuntu 8.10.
Everything is built from fresh svn.

The output is this:

digikam(21682): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'digikamdates'.
" 
digikam(21682) Digikam::AlbumManager::slotDatesJobResult: Failed to list dates 

digikam(21682): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
" 
digikam(21682) Digikam::AlbumLister::slotResult: Failed to list url:  "Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'digikamalbums'.
." 
Comment 17 Andi Clemens 2008-12-01 21:08:07 UTC
Isn't this a packaging problem of (K)Ubuntu? and therefore a downstream bug? This distribution seems to set wrong env vars. I'm going to close this now as DOWNSTREAM.
Geoff, if you still have a problem with that, you should ask in ubuntuforums.org for help.

Andi
Comment 18 Dotan Cohen 2008-12-04 19:07:59 UTC
Geoff, File the bug here and I will triage it:
https://launchpad.net/ubuntu/+filebug
Comment 19 Geoff King 2008-12-05 00:32:50 UTC
I just created a new bug on launchpad...
https://bugs.launchpad.net/ubuntu/+bug/305332
Comment 20 caulier.gilles 2017-07-23 20:48:36 UTC
This problem is relevant of digiKam KIO slaves which are dropped since version 5.0.0 in favor of a multithreaded interface to query the database. It will not reproducible.