Problem with Digikam on MacOSX - Too many open files...

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

Problem with Digikam on MacOSX - Too many open files...

Gerard Milhaud
Hi,

When I connect my collection (~10K images) to my fresh 2.6 install on
MacOsX Lion, I've a crash "Too many open files"...
When googling I see an old QT bug related to this problem for the Mac
environment :
http://sourceforge.net/projects/wally/forums/forum/848087/topic/3496445

Exemple of error log :
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths:
> /Users/g/PHOTO/PhotosG/Albums/2004-01-28_Salle-Machines-CharlieHebdo

I've also these errors :

> digikam(26532)/KSharedDataCache: Unable to setup shared cache lock,
> although it worked when created.
> digikam(26532)/KSharedDataCache: Unable to unmap shared memory segment
> 0x10d31f000
>
> QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is
> still in use, all queries will cease to work.
>
> digikam(26532)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned
> initialize() D-Bus call failed:  "The name org.kde.kded was not
> provided by any .service files"
>
> 2012-02-14 16:56:54.098 digikam[26532:7603] Critical failure: the
> LastResort font is unavailable.
to the end... :

> QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many
> open files
> QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe
> QKqueueFileSystemWatcherEngine: error during kevent wait: Bad file
> descriptor
> digikam(26532)/digikam (core)
> Digikam::StatusProgressBar::currentProgressItem: ""
> digikam(26532)/digikam (core)
> Digikam::StatusProgressBar::currentProgressItem: ""
> KCrash: Application 'digikam' crashing...
The full crash trace is attached...

Any idea ??

Thanks in advance,

G.

--
--
G
Yet another no work time e-identity
mailto:[hidden email]
web : http://g.is.free.fr



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

Digikam2.6Crash.txt.gz (20K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Digikam on MacOSX - Too many open files...

Gilles Caulier-4
report this problem to KDE bugzilla please...

https://bugs.kde.org/show_bug.cgi?id=289330

It's definitily a Qt library bug...

Gilles Caulier

2012/2/14 G <[hidden email]>:

> Hi,
>
> When I connect my collection (~10K images) to my fresh 2.6 install on MacOsX
> Lion, I've a crash "Too many open files"...
> When googling I see an old QT bug related to this problem for the Mac
> environment :
> http://sourceforge.net/projects/wally/forums/forum/848087/topic/3496445
>
> Exemple of error log :
>>
>> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
>> QFileSystemWatcher: failed to add paths:
>> /Users/g/PHOTO/PhotosG/Albums/2004-01-28_Salle-Machines-CharlieHebdo
>
>
> I've also these errors :
>
>> digikam(26532)/KSharedDataCache: Unable to setup shared cache lock,
>> although it worked when created.
>> digikam(26532)/KSharedDataCache: Unable to unmap shared memory segment
>> 0x10d31f000
>>
>> QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is
>> still in use, all queries will cease to work.
>>
>> digikam(26532)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned
>> initialize() D-Bus call failed:  "The name org.kde.kded was not
>> provided by any .service files"
>>
>> 2012-02-14 16:56:54.098 digikam[26532:7603] Critical failure: the
>> LastResort font is unavailable.
>
>
> to the end... :
>
>> QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many
>> open files
>> QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe
>> QKqueueFileSystemWatcherEngine: error during kevent wait: Bad file
>> descriptor
>> digikam(26532)/digikam (core)
>> Digikam::StatusProgressBar::currentProgressItem: ""
>> digikam(26532)/digikam (core)
>> Digikam::StatusProgressBar::currentProgressItem: ""
>> KCrash: Application 'digikam' crashing...
>
>
> The full crash trace is attached...
>
> Any idea ??
>
> Thanks in advance,
>
> G.
>
> --
> --
> G
> Yet another no work time e-identity
> mailto:[hidden email]
> web : http://g.is.free.fr
>
>
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Digikam on MacOSX - Too many open files...

Gerard Milhaud
Le 14/02/12 17:23, Gilles Caulier a écrit :
report this problem to KDE bugzilla please...

https://bugs.kde.org/show_bug.cgi?id=289330

It's definitily a Qt library bug...

Gilles Caulier

OK.

To "survive" until the bug was solved, do you think a workaround in Digikam code like if OS==MacOS then disable "open file checking"  would be possible ? Or it is a too big modif ?

Not a big problem for me, I'm waiting with my VM Kubuntu + Digikam 2.5 hosted on my Mac... But I was so glad to finally build 2.6 on Lion and lauch it, what a deception when digikam finally crashes when I connect my collection... after so many efforts...

Thank you,

G.
-- 
--
G
Yet another no work time e-identity
[hidden email]
web : http://g.is.free.fr

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Digikam on MacOSX - Too many open files...

brad
On Tuesday, February 14, 2012 08:25:12 PM G wrote:

> Le 14/02/12 17:23, Gilles Caulier a écrit :
> > report this problem to KDE bugzilla please...
> >
> > https://bugs.kde.org/show_bug.cgi?id=289330
> >
> > It's definitily a Qt library bug...
> >
> > Gilles Caulier
>
> OK.
>
> To "survive" until the bug was solved, do you think a workaround in
> Digikam code like /if OS==MacOS then disable "open file checking" /would
> be possible ? Or it is a too big modif ?
>
See comment 7 on the above bug report that Gilles sent you. The patch in the
comment does exactly that, it's pretty simple. If you have digikam's git repo
cloned, then simply. Download the patch
 $ cd digikam-sc/core
 $ git am 0001-disable-filewatching-on-OS-X-but-dir-watching-still-.patch


If you're just using the source tar file, then you might have to do
 $ cd digikam/core
 $ patch -p1 < 0001-disable-filewatching-on-OS-X-but-dir-watching-still-.patch

now compile.

Caution: i don't have my mac in front of me, these commands above may not be
exact.

- brad

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Digikam on MacOSX - Too many open files...

Gerard Milhaud
Le 14/02/2012 21:48, brad a écrit :

> On Tuesday, February 14, 2012 08:25:12 PM G wrote:
>> Le 14/02/12 17:23, Gilles Caulier a écrit :
>>> report this problem to KDE bugzilla please...
>>>
>>> https://bugs.kde.org/show_bug.cgi?id=289330
>>>
>>> It's definitily a Qt library bug...
>>>
>>> Gilles Caulier
>> OK.
>>
>> To "survive" until the bug was solved, do you think a workaround in
>> Digikam code like /if OS==MacOS then disable "open file checking" /would
>> be possible ? Or it is a too big modif ?
>>
> See comment 7 on the above bug report that Gilles sent you. The patch in the
> comment does exactly that, it's pretty simple. If you have digikam's git repo
> cloned, then simply. Download the patch
>   $ cd digikam-sc/core
>   $ git am 0001-disable-filewatching-on-OS-X-but-dir-watching-still-.patch
>
>
> If you're just using the source tar file, then you might have to do
>   $ cd digikam/core
>   $ patch -p1<  0001-disable-filewatching-on-OS-X-but-dir-watching-still-.patch
>
> now compile.
>
> Caution: i don't have my mac in front of me, these commands above may not be
> exact.
>
> - brad
YYYYYYYYYYYYYYYYYYYYYEEEEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSS !!!!!!!!!!!!!!!!!!

It finally works ! Your 5 lines patch has the extraordinary power to
make digikam 2.6 on MacOSLion at last OK, with my 11 years of
photography correctly handled, the thousands of tags (from numerous old
install of Digikam (FreeBSD, Linux, Windows) since 6 years) up and
running and my digikam4.db of >40Mb recognized...

The end of a long long effort...

Thank you, thank all the digikam people... Version 2.6 is great.

@Brad : Curiosity : Do you know whait is exactly the impact of disabling
file-watching for digikam on MacOS ?

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Digikam on MacOSX - Too many open files...

Gilles Caulier-4
Gerard,

Please report your feedback under mac to bugzilla report please...

Gilles Caulier

2012/2/16 G <[hidden email]>:

> Le 14/02/2012 21:48, brad a écrit :
>
>> On Tuesday, February 14, 2012 08:25:12 PM G wrote:
>>>
>>> Le 14/02/12 17:23, Gilles Caulier a écrit :
>>>>
>>>> report this problem to KDE bugzilla please...
>>>>
>>>> https://bugs.kde.org/show_bug.cgi?id=289330
>>>>
>>>> It's definitily a Qt library bug...
>>>>
>>>> Gilles Caulier
>>>
>>> OK.
>>>
>>> To "survive" until the bug was solved, do you think a workaround in
>>> Digikam code like /if OS==MacOS then disable "open file checking" /would
>>> be possible ? Or it is a too big modif ?
>>>
>> See comment 7 on the above bug report that Gilles sent you. The patch in
>> the
>> comment does exactly that, it's pretty simple. If you have digikam's git
>> repo
>> cloned, then simply. Download the patch
>>  $ cd digikam-sc/core
>>  $ git am 0001-disable-filewatching-on-OS-X-but-dir-watching-still-.patch
>>
>>
>> If you're just using the source tar file, then you might have to do
>>  $ cd digikam/core
>>  $ patch -p1<
>>  0001-disable-filewatching-on-OS-X-but-dir-watching-still-.patch
>>
>> now compile.
>>
>> Caution: i don't have my mac in front of me, these commands above may not
>> be
>> exact.
>>
>> - brad
>
> YYYYYYYYYYYYYYYYYYYYYEEEEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSS
> !!!!!!!!!!!!!!!!!!
>
> It finally works ! Your 5 lines patch has the extraordinary power to make
> digikam 2.6 on MacOSLion at last OK, with my 11 years of photography
> correctly handled, the thousands of tags (from numerous old install of
> Digikam (FreeBSD, Linux, Windows) since 6 years) up and running and my
> digikam4.db of >40Mb recognized...
>
> The end of a long long effort...
>
> Thank you, thank all the digikam people... Version 2.6 is great.
>
> @Brad : Curiosity : Do you know whait is exactly the impact of disabling
> file-watching for digikam on MacOS ?
>
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users