Closed aseques closed 3 years ago
It appears you're running out of memory. Each photo is opened in Photini as you import / move it, and it's generally a good idea to limit the number of photos you open at the same time. Try moving them in batches of 100 or fewer, closing the opened images after each batch.
Looking at this again it might possibly be a recursion problem, if copying files is quicker than Qt's thumbnail generation and display.
I think I've found the problem, but no solution yet.
The importer runs in its own thread for maximum speed. After each image has been copied the thread sends a signal to the main thread to update the image area thumbnail display. During this process Qt's processEvents
is called to keep the display updated, but that can also trigger processing of another signal from the importer thread, even though the previous one hasn't been fully processed yet.
I think commit 0e18604 might be all that's needed to fix this.
@jim-easterbrook do you think that there are picutures that could have disapeared instead of moved? I could recover them from backup if needed, but I can't recall the original number of photos.
I don't think so, but if the Python interpreter crashes in the middle of moving a file I don't know what could happen.
I'm closing this, there was a crash again, but I didn't have the verbose flag so I can't provide more information at this time, when running photini a second time it did't detect missing files, so I assume that it crashed after doing the work.
I'm reopening it again. :)
I'm not totally sure my fix is robust and I really need to find a better way.
I hope commit 1bcd9f7 is a better solution.
My earlier mutex solution is not working for me since I updated my OS version. (It never was a nice solution.) In commit 0ce6148 I've implemented a much simpler solution which I hope will be more reliable.
I am importing a directory with a couple hundred of photos, photini works for a time (I set it to move the photos), but at the end it stops without any message. All the photos of the directory are moved apparently but I can't be sure. Photini version is current HEAD: c403b5f337cc2a78475419a6bb0a1ed2aa4c740f Kubuntu 20.04 with neon packages Python 3.8.2