Bug 157636 - Problem when creating album
Summary: Problem when creating album
Status: CLOSED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-MainView (show other bugs)
Version: 0.10.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 23:10 UTC by Philippe Arnone
Modified: 2012-06-27 11:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Arnone 2008-02-10 23:10:12 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I just compiled the latest digikam 0.10 from svn. I have a clean environment (no existing Album root, no digikamrc file and no db file).
Digikam starts perfectly, but when I want to create an album, I get an unknown error. The error comes from AlbumManager::createPAlbum method (in file albummanager.cpp).

The error is located near line 1017:
if (::mkdir(QFile::encodeName(fileUrl.path()), 0777) != 0)

This line raise the error. (it returns ENOENT)

fileUrl.path() value is /Albums/<albumname> and so the directory can not be created.

I changed this line with 
if (::mkdir(QFile::encodeName(albumRootPath + fileUrl.path()), 0777) != 0)

and it seems to work (I only need to create the Albums directory under my root path. When I do that, the photo import works well (ie files are copied into the album directory on the disk) but I'm not able to see any photo. I do not know if this problem come from my modification.

Philippe
Comment 1 caulier.gilles 2008-12-05 12:49:24 UTC
Philippe,

What's news about this file ? it still valid using digiKam 0.10.0-beta6 ?

Marcel, 

Are you take a look about patch here ?

Gilles Caulier
Comment 2 Philippe Arnone 2008-12-17 22:14:19 UTC
I just compiled digikam 0.10 beta6 and I cannot test if the bug is fixed or not as I have an issue at digikam starting:

digikam(31494) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
digikam(31494) KExiv2Iface::KExiv2::load: File '  ' is not readable.
terminate called after throwing an instance of 'Exiv2::Error'
  what():  Registre MakerTagInfo plein
KCrash: Application 'digikam' crashing...
sock_file=/home/philippe/.kde4/socket-pisco/kdeinit4__0

Please note that I also compiled digikam 0.10 beta 4, It almost worked. I was able to create an album but when created, I saw it twice in the album hierarchy.

If you need more information, just ask.

Philippe
Comment 3 caulier.gilles 2008-12-18 16:08:59 UTC
Philippe,

I's an Exiv2 library error. I remember something like that. Sound like more than one library installed at the same time.

Try to install only one (the last stable if possible)

Andreas, I CC you for info

Gilles Caulier
Comment 4 Philippe Arnone 2008-12-18 22:47:22 UTC
Thanks Gilles for the tip.

I had 2 version of libexiv2. I suppress one and now digikam starts well. I'm able to create an album I do not see duplicate as I saw in beta4.

IMO, you can close this bug.

Thanks a lot.

Philippe

PS