New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when batch importing files #49
Comments
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. |
Processing events could cause problems when importer runs at high speed (e.g. copying files on local disc) as discussed in bug #49.
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. |
...if image display can't keep up. This should be a more robust solution to bug #49.
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: c403b5f
Kubuntu 20.04 with neon packages
Python 3.8.2
The text was updated successfully, but these errors were encountered: