digiKam crashing on every second or third XCF file - is there a config file I can modify?

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
Currently I have just over a thousand GIMP-2.9 XCF files on my computer,
all in subfolders of a folder named "edit". I'd like to use digiKam to
sort through and reorganize these files, and along the way delete
duplicates and unwanted files.

I know digiKam doesn't make thumbnails for GIMP-2.9 XCF files, so I used
a script to create "xcf.png sidecar" files to go along with the actual
XCF files. These "sidecar" files imported into the database without any
problems. For this preliminary import I put "-xcf" in the list of
additional mimetypes, to tell digiKam to not import actual XCF files.

Unfortunately, upon asking digiKam to add XCF files to the list of files
to be imported into the database (by removing "-xcf" from the list of
additional mime types), digiKam now crashes on every third or fourth XCF
file it tries to scan.

Is there a configuration file that I can open and edit to tell digiKam
to not scan for XCF files? Right now every time I start digiKam it
crashes after scanning only two or three XCF files, so "find and remove"
the problematic XCF files just isn't going to work.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

AndriusWild
I am pretty sure there is an option in digikam settings.

Also I am wondering if you could treat xcf as sidecars so they would be attached to the png same as we do now for pp3.



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Elle Stone <[hidden email]>
Date: 2017-10-28 10:55 AM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]>
Subject: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Currently I have just over a thousand GIMP-2.9 XCF files on my computer,
all in subfolders of a folder named "edit". I'd like to use digiKam to
sort through and reorganize these files, and along the way delete
duplicates and unwanted files.

I know digiKam doesn't make thumbnails for GIMP-2.9 XCF files, so I used
a script to create "xcf.png sidecar" files to go along with the actual
XCF files. These "sidecar" files imported into the database without any
problems. For this preliminary import I put "-xcf" in the list of
additional mimetypes, to tell digiKam to not import actual XCF files.

Unfortunately, upon asking digiKam to add XCF files to the list of files
to be imported into the database (by removing "-xcf" from the list of
additional mime types), digiKam now crashes on every third or fourth XCF
file it tries to scan.

Is there a configuration file that I can open and edit to tell digiKam
to not scan for XCF files? Right now every time I start digiKam it
crashes after scanning only two or three XCF files, so "find and remove"
the problematic XCF files just isn't going to work.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
On 10/28/2017 12:59 PM, Andrey Goreev wrote:
> I am pretty sure there is an option in digikam settings.

Yes, there is an option in digiKam settings under "additional mimetypes"
- adding "-xcf" says "don't add xcf files". But digiKam won't stay open
long enough for me to add this option back in, because it crashes on
every second or third XCF file so only stays open for a few seconds.

> Also I am wondering if you could treat xcf as sidecars so they would be attached to the png same as we do now for pp3.

I saw that option and thought about it. My ultimate goal with digiKam is
to be able to right-click the XCF files (after doing some serious
reorganizing and deleting), to open them from digiKam. To me, this is
one of the main benefits of using digiKam, being able to open a file by
browsing to the folder. AFAIK sidecar files even of the "extra" type
aren't shown in the UI, so this would completely disable the option to
open an XCF file using digiKam.

Anyway, I guess I should file a bug report on this crashing thing.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

AndriusWild
In reply to this post by Elle Stone-2
Have you tried opening digikamrc and looking for the options for xcf there ?



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Elle Stone <[hidden email]>
Date: 2017-10-28 11:16 AM (GMT-07:00)
Subject: Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

On 10/28/2017 12:59 PM, Andrey Goreev wrote:
> I am pretty sure there is an option in digikam settings.

Yes, there is an option in digiKam settings under "additional mimetypes"
- adding "-xcf" says "don't add xcf files". But digiKam won't stay open
long enough for me to add this option back in, because it crashes on
every second or third XCF file so only stays open for a few seconds.

> Also I am wondering if you could treat xcf as sidecars so they would be attached to the png same as we do now for pp3.

I saw that option and thought about it. My ultimate goal with digiKam is
to be able to right-click the XCF files (after doing some serious
reorganizing and deleting), to open them from digiKam. To me, this is
one of the main benefits of using digiKam, being able to open a file by
browsing to the folder. AFAIK sidecar files even of the "extra" type
aren't shown in the UI, so this would completely disable the option to
open an XCF file using digiKam.

Anyway, I guess I should file a bug report on this crashing thing.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Gilles Caulier-4
The crash about XCF is a redondant problem, due to changes in XCF format.

The XCF image loader is delegate to KDE frameworks which provide the relevant plugin.

If i remember, the XCF is add in database parser by default. In Setup mime type, you can remove XCF extension to add "-xcf" to the image format field. Look in widgets tooltips for details or in documentation :


Gilles Caulier

2017-10-28 19:28 GMT+02:00 Andrey Goreev <[hidden email]>:
Have you tried opening digikamrc and looking for the options for xcf there ?



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Elle Stone <[hidden email]>
Date: 2017-10-28 11:16 AM (GMT-07:00)
Subject: Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

On 10/28/2017 12:59 PM, Andrey Goreev wrote:
> I am pretty sure there is an option in digikam settings.

Yes, there is an option in digiKam settings under "additional mimetypes"
- adding "-xcf" says "don't add xcf files". But digiKam won't stay open
long enough for me to add this option back in, because it crashes on
every second or third XCF file so only stays open for a few seconds.

> Also I am wondering if you could treat xcf as sidecars so they would be attached to the png same as we do now for pp3.

I saw that option and thought about it. My ultimate goal with digiKam is
to be able to right-click the XCF files (after doing some serious
reorganizing and deleting), to open them from digiKam. To me, this is
one of the main benefits of using digiKam, being able to open a file by
browsing to the folder. AFAIK sidecar files even of the "extra" type
aren't shown in the UI, so this would completely disable the option to
open an XCF file using digiKam.

Anyway, I guess I should file a bug report on this crashing thing.

Best,
Elle

Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
In reply to this post by AndriusWild
On 10/28/2017 01:28 PM, Andrey Goreev wrote:
> Have you tried opening digikamrc and looking for the options for xcf there ?

Yes. That was the first thing I tried. If the option is there, I wasn't
able to locate it. Do you happen to know where in that file this option
might located? Or if there is another "rc" file somewhere? Since the
switch from KDE4 to KDE5/qt5, it seems a lot of stuff isn't in the same
place any more.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
In reply to this post by Gilles Caulier-4
On 10/28/2017 01:40 PM, Gilles Caulier wrote:
> If i remember, the XCF is add in database parser by default. In Setup mime
> type, you can remove XCF extension to add "-xcf" to the image format field.
> Look in widgets tooltips for details or in documentation :

I did this initially. Then I removed "-xcf" from the mimetypes list
(using the digiKam options in the UI) in order to load in the XCF files.

My specific question is:  In what digiKam or other "rc" file are the
additions and removals from the mime types stored?

Having to recreate the digiKam database from scratch just to change the
mimetypes is a bit overkill. So it would be nice to be able to just open
the text file in which the mimetype settings are stored, edit a line,
and then restart digiKam.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

patdavid
Isn’t the 2.9 series XCF still in flux on the format? Would that possibly be the cause of the problem? (Compatibility might be broken in new XCF version)?
On Sat, Oct 28, 2017 at 12:49 PM Elle Stone <[hidden email]> wrote:
On 10/28/2017 01:40 PM, Gilles Caulier wrote:
> If i remember, the XCF is add in database parser by default. In Setup mime
> type, you can remove XCF extension to add "-xcf" to the image format field.
> Look in widgets tooltips for details or in documentation :

I did this initially. Then I removed "-xcf" from the mimetypes list
(using the digiKam options in the UI) in order to load in the XCF files.

My specific question is:  In what digiKam or other "rc" file are the
additions and removals from the mime types stored?

Having to recreate the digiKam database from scratch just to change the
mimetypes is a bit overkill. So it would be nice to be able to just open
the text file in which the mimetype settings are stored, edit a line,
and then restart digiKam.

Best,
Elle
--
https://patdavid.net
GPG: 66D1 7CA6 8088 4874 946D  18BD 67C7 6219 89E9 57AC
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
In reply to this post by Gilles Caulier-4
On 10/28/2017 01:40 PM, Gilles Caulier wrote:
> The crash about XCF is a redondant problem, due to changes in XCF format.

Well, actually digiKam did crash on some older XCF files, just not on
all of them.

>
> The XCF image loader is delegate to KDE frameworks which provide the
> relevant plugin.

What software packages do I modify so that KDE frameworks does *not*
provide the relevant GIMP XCF plugin? It seems a shame that digiKam
crashes instead of just ignoring file formats that it can't open.

If KDE frameworks would completely ignore XCF files, I could add "xcf"
as a new file format, and digiKam would just show a blank thumbnail,
which would be great. Well, at least I'd be able to use digiKam to
browse to the XCF files, locate which is which using the "png sidecar"
files, and then open the actual XCF file from digiKam.

Best,
Elle


Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

AndriusWild
In reply to this post by Elle Stone-2
Maybe that is possible to recompile digikam with xfc support turned off ?



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Elle Stone <[hidden email]>
Date: 2017-10-28 12:17 PM (GMT-07:00)
Subject: Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

On 10/28/2017 01:40 PM, Gilles Caulier wrote:
> The crash about XCF is a redondant problem, due to changes in XCF format.

Well, actually digiKam did crash on some older XCF files, just not on
all of them.

>
> The XCF image loader is delegate to KDE frameworks which provide the
> relevant plugin.

What software packages do I modify so that KDE frameworks does *not*
provide the relevant GIMP XCF plugin? It seems a shame that digiKam
crashes instead of just ignoring file formats that it can't open.

If KDE frameworks would completely ignore XCF files, I could add "xcf"
as a new file format, and digiKam would just show a blank thumbnail,
which would be great. Well, at least I'd be able to use digiKam to
browse to the XCF files, locate which is which using the "png sidecar"
files, and then open the actual XCF file from digiKam.

Best,
Elle


Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
In reply to this post by patdavid
On 10/28/2017 02:11 PM, Pat David wrote:
> Isn’t the 2.9 series XCF still in flux on the format? Would that possibly
> be the cause of the problem? (Compatibility might be broken in new XCF
> version)?

Compatibility is most definitely broken. I don't expect compatibility to
fixed in the near future, no matter how liberally one might interpret
"near future". So I'm looking to cobble together a solution that:

1. Allows me to see thumbnails for xcf files via ".xcf.png" sidecars.
This works. My script could use some improvement, but at least now all
the sidecar files are in place.

2. Allows me to right-click on a blank thumbnail for the corresponding
xcf file to open the file from within digiKam. This doesn't work right
now because digiKam can't read in the XCF files for all the
above-mentioned reasons and probably a few more. But still it tries to,
and crashes.

In other words, instead of having completely broken support in digiKam
for XCF files, I'd rather have no support at all and just see a blank
thumbnail.

I just downloaded kimageformats from git and found the xcf-related files
and commented out the code that builds the xcf "support".

Now if I only knew enough about c++ to be able to compile the code
without having to comb the internet for clues. Sigh. Any hints for the
cmake command line are more than welcome!

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
On 10/28/2017 02:36 PM, Elle Stone wrote:
>
> Now if I only knew enough about c++ to be able to compile the code
> without having to comb the internet for clues. Sigh. Any hints for the
> cmake command line are more than welcome!

Hmm, well, actually all I have to do is uninstall gwenview and
kimageformats - if the only way digiKam supports XCF is through
kimageformats, this should do the trick. I hope.

Best,
Elle
Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Elle Stone-2
On 10/28/2017 02:42 PM, Elle Stone wrote:
>
> Hmm, well, actually all I have to do is uninstall gwenview and
> kimageformats - if the only way digiKam supports XCF is through
> kimageformats, this should do the trick. I hope.

Yes! this works! Well, at least on Gentoo which allows to install
"software A" without also installing "kitchen sink".

Now digiKam imports the XCF files without any problems and shows a
default thumbnail instead of an actual thumbnail. And my "xcf.png"
sidecar files show what the XCF file actually looks like. And the XCF
file can be opened with GIMP-2.9 right from within digiKam.

Best,
Elle



Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

AndriusWild
In reply to this post by Elle Stone-2
Great news!

A good one re installing "the kitchen sink". 

My openSUSE wants to delete digikam if I remove akonadi-kontakt package. Not sure where the connection is but I am kind of stuck with the evil akonadi packages.

Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Elle Stone <[hidden email]>
Date: 2017-10-28 12:56 PM (GMT-07:00)
Subject: Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

On 10/28/2017 02:42 PM, Elle Stone wrote:
>
> Hmm, well, actually all I have to do is uninstall gwenview and
> kimageformats - if the only way digiKam supports XCF is through
> kimageformats, this should do the trick. I hope.

Yes! this works! Well, at least on Gentoo which allows to install
"software A" without also installing "kitchen sink".

Now digiKam imports the XCF files without any problems and shows a
default thumbnail instead of an actual thumbnail. And my "xcf.png"
sidecar files show what the XCF file actually looks like. And the XCF
file can be opened with GIMP-2.9 right from within digiKam.

Best,
Elle



Reply | Threaded
Open this post in threaded view
|

Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

Gilles Caulier-4
In reply to this post by AndriusWild
No you cannot.

Uninstall the KDE XCF plugin loader is a solution but it will remove a collection of type mime support at the same time.

Gilles Caulier

2017-10-28 20:19 GMT+02:00 Andrey Goreev <[hidden email]>:
Maybe that is possible to recompile digikam with xfc support turned off ?



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Elle Stone <[hidden email]>
Date: 2017-10-28 12:17 PM (GMT-07:00)
Subject: Re: digiKam crashing on every second or third XCF file - is there a config file I can modify?

On 10/28/2017 01:40 PM, Gilles Caulier wrote:
> The crash about XCF is a redondant problem, due to changes in XCF format.

Well, actually digiKam did crash on some older XCF files, just not on
all of them.

>
> The XCF image loader is delegate to KDE frameworks which provide the
> relevant plugin.

What software packages do I modify so that KDE frameworks does *not*
provide the relevant GIMP XCF plugin? It seems a shame that digiKam
crashes instead of just ignoring file formats that it can't open.

If KDE frameworks would completely ignore XCF files, I could add "xcf"
as a new file format, and digiKam would just show a blank thumbnail,
which would be great. Well, at least I'd be able to use digiKam to
browse to the XCF files, locate which is which using the "png sidecar"
files, and then open the actual XCF file from digiKam.

Best,
Elle