<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 30, 2013 at 11:41 PM, Manfred Usselmann <span dir="ltr"><<a href="mailto:usselmann.m@icg-online.de" target="_blank">usselmann.m@icg-online.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:Verdana,Geneva,sans-serif">
<p>Hello,</p>
<p>Am 30.04.2013 17:15, schrieb Miika Turkia:</p><div class="im">
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">Hello all,<br><br>here is a quick summary of what I have found out.<br><br>* libkdcraw is crashing on decoding some files. At least Sigma.x3f from Image-ExifTool-5.72 test files.</div>
<div class="gmail_quote">  - This problem should be reported to digikam/libkdcraw (it is not only KPA but at least dngconverter crashes as well)</div>
</div>
</div>
</blockquote>
</div><div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">Whats the best place to report this issue? </div></div></div></div></blockquote><div><br></div><div>That would be <a href="http://bugs.kde.org">bugs.kde.org</a> - create a new bug for product digikam, component libkdcraw, attach also the Sigma.x3f file there.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana,Geneva,sans-serif"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote"> </div>
<div class="gmail_quote">I usually keep raw files separately but some are still inside my images tree, so to be on the safe side I will clean them all out when I have some more time.</div>
</div></div></div></blockquote><div><br></div><div>I like to keep my raws under the KPA picture directory (I actually shoot only raws so there is nothing else). When I develop jpegs out of them, I output them next to the raw and let KPA autostack them... But of course the situation is quite different if the raws are not handled properly. (I think the Sigma.x3f is corrupted and therefor not handled properly)<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana,Geneva,sans-serif"><div dir="ltr"><div class="gmail_extra">
</div>
</div><div class="im">
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span style="font-family:'Lucida Grande',Verdana,Arial,Helvetica,sans-serif">* There is an inconsistency in Category declaration and <member-groups> in Manfred's index.xml and this causes a crash. A quick fix is to change the first category at the beginning of the index.xml to Schlüsselbegriffe that is used at the end grpuings. Somehow the Category name got corrupted.</span></div>

<div class="gmail_quote">  - Of course this should also be taken into account when parsing the input and handled in more user friendly way than crashing.</div>
</div>
</div>
</blockquote>
</div><div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">This index.xml is quite old. I have no idea how this mismatch happend. <span>Schlüsselbegriffe (key terms) was there from the beginning and I never</span> modified the file manually. The group definition at the end of the file uses "Schlüsselbegriffe" but everywhere else "Schl_.FFFFFFFCsselbegriffe" is used. I guess the program part which handles the groups ignores the logic for special characters used elsewhere.  The current version of KPA does not create a category 'Schlüsselbegriffe' by default. Instead it creates 'Ereignisse' (events). </div>

<div class="gmail_quote"> </div>
<div class="gmail_quote">To be able to open index.xml I renamed everything to "Schlüsselbegriffe". When I closed KPA I was asked if I wanted to save it, I confirmed and guess what happend: It crashed again when I tried to reopen it. When I looked at the file with an editor I noticed that Schlüsselbegriffe was renamed back to <Category name="Schl_.FFFFFFFCsselbegriffe"> and the group definition was untouched <span style="font-family:'Lucida Grande',Verdana,Arial,Helvetica,sans-serif"><member-groups></span><span style="font-family:'Lucida Grande',Verdana,Arial,Helvetica,sans-serif"><member category="Schlüsselbegriffe" ...</span>
<p>So there is indeed a bug with the current version and special characters in category names when groups are used.</p>
<p>Then I tried it the other way around: Rename everything to "Schl_.FFFFFFFCsselbegriffe". But then I'm not able to open KPA, it crashes immediately. OK, until this is fixed I will avoid umlauts in category names.  For now I've renamed Schlüsselbegriffe to Schluesselbegriffe...</p>
</div></div></div></div></blockquote><div>Johannes wrote in another mail (or bug description) about this bug. And he went ahead and fixed it also on the development version. KPA did too much of escaping of special characters..<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana,Geneva,sans-serif"><div dir="ltr"><div class="gmail_extra">
</div>
</div><div class="im">
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span style="font-family:'Lucida Grande',Verdana,Arial,Helvetica,sans-serif">* KPhotoAlbum is insanely searching for icon "file-broken" (png, svg and possibly some other versions of it). At least on my system this occurs and renders KPA useless. I did not find any package providing such an icon, but a quick hack to just create an empty file with such name gets KPA functioning properly (sudo touch /usr/share/icons/oxygen/8x8/emblems/file-broken.png). Of course I cannot test with Manfred's images, but at least the empty index.xml file loads.</span></div>

<div class="gmail_quote">  - KPA should be fixed to handle the case when broken image icon is not found</div>
</div>
</div>
</blockquote>
</div><div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">For now I'm using the workaround to create file-broken.png, but it seems there is already a fix in the development version. Thanks...</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">But something is still wrong even when <span>/usr/share/icons/oxygen/8x8/emblems/file-broken.png exists</span>, KPA is still very slow opening the detail view and switching between pictures and also going back to Home. Maybe it's looking for different icons besides <span>file-broken.png? Or I need to use a different folder than the one mentioned above?</span></div>

</div></div></div></blockquote><div><br></div><div>You could run strace to see what is so slow. Run the KPA from a terminal with the command strace in front:<br></div><div>strace kphotoalbum<br><br></div><div>It will print out a lot of information about system calls that are called and slows everything down somewhat. When you do action that takes too long, see what is being written on the terminal. If there is e.g. plenty of attempts to open some image file from different directories, that is probably causing the slow down.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana,Geneva,sans-serif"><div dir="ltr"><div class="gmail_extra">
</div>
</div><div class="im">
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span style="font-family:'Lucida Grande',Verdana,Arial,Helvetica,sans-serif">Manually fixing the index.xml and creating a file-broken.png - or finding a proper icon for it should hopefully get KPA working for Manfred. (Provided there are no more images that would cause a crash.)</span></div>

<div class="gmail_quote"> </div>
<div class="gmail_quote">If someone is willing to look into fixing these problems in KPA feel free as I am not familiar with these parts of the code nor with the APIs used in them...</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">miika</div>
<div class="gmail_quote"> </div>
</div>
</div>
</blockquote>
</div><div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">Thanks a lot for looking into this. Hopefully I will get KPA working again. :-)</div></div></div></div></blockquote><div> </div><div>Keeping fingers crossed<br><br>miika <br></div></div><br></div>
</div>