<html><head><meta name="qrichtext" content="1"><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style="font-family: 'Sans Serif'; font-size: 9pt; font-weight: 400; font-style: normal; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Monday, November 07, 2011 11:06:29 PM Marcel Wiesweg wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Git commit dcf2ba9d7e92d51b049bdd354f82ddbf75e51a31 by Marcel Wiesweg.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Committed on 07/11/2011 at 22:47.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Pushed by mwiesweg into branch 'master'.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> On Linux, use Inotify directly for file notification changes</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Use Sebastian Trueg's KInotify wrapper, if Inotify is available.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> This gives much more detailed reports and especially info when a file</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> has been closed after write. For a detailed explanation, see</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> <a href="http://trueg.wordpress.com/2011/10/13/taking-a-break-from-crash-fixing-for-u">http://trueg.wordpress.com/2011/10/13/taking-a-break-from-crash-fixing-for-u</a></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> sability/ Separate the file watch code from AlbumManager to a new class,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> AlbumWatch. Do not watch directories recursively (convenient API, but often</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> inefficient implementation out of our reach). We scan the directories</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> anyway, it is possible and efficient to add each directory = album</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> separately.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> If Inotify is not available (non-linux), the previous code based on</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> KDirWatch and KIO is still used.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sorry to chime in on this a month and a half late. I'm just getting around to building digikam on OS X again. It appears that this addition to digikam is causing problems on OS X. Above, it is stated that this should on effect linux; however this appears to be triggering an old QT but in OS X. There is a bug report, which is 'fixed' with code that still appears to trigger there error</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#000000;">here's the old bug report -- supposed to have been fix in 4.7: </span><a href="https://bugreports.qt.nokia.com//browse/QTBUG-2478"><span style=" color:#2b74c7;">   https://bugreports.qt.nokia.com//browse/QTBUG-2478</span></a></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Now when i run digikam, i am seeing only thumbnails that are cached but can't access any pictures (i get an error, can't load file) in my albums and constantly getting the following error (reported in the above bug report):</p><div><br></div><div><div>  QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files in system</div><div>  QFileSystemWatcher: failed to add paths: /Volumes/Home Directory/Pictures/Saved pictures/Pic0193.jpg</div><div>  QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files in system</div><div>  QFileSystemWatcher: failed to add paths: /Volumes/Home Directory/Pictures/Saved pictures/Pic0194.jpg</div><div>  QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files in system</div><div>  QFileSystemWatcher: failed to add paths: /Volumes/Home Directory/Pictures/Saved pictures/Pic0195.jpg</div><div>  QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files in system</div><div>  QFileSystemWatcher: failed to add paths: /Volumes/Home Directory/Pictures/Saved pictures/Pic0200.jpg</div><div>  QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files in system</div><div>  QFileSystemWatcher: failed to add paths: /Volumes/Home Directory/Pictures/Saved pictures/Pic0201.jpg</div></div><div><br></div><div>Is anyone else building digikam on OS X and seeing this error? Or is it just me?<span class="Apple-style-span" style="white-space: pre-wrap; "> </span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; "> - brad </span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; "><br></span></div>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p></body></html>