Closed kung-foo closed 1 month ago
Thank you for the details. If possible, it would be great if you could send a sample to support@ente.io so that we can try to reproduce this.
There are two issues here:
Normally errors in the worker in be caught, and the app will move forward without a thumbnail, but for these files it looks like libheif is hitting an unrecoverable assert that comlink cannot catch.
Hi @mnvr, I'll send a sample and reference this issue. This doesn't seem to be a "rare" incident though. I'm in the process of doing a Google Takeout with ~165000 photos, and the desktop app makes it about 1000 photos before hanging. This necessitates an app restart and it continues on (not sure if it skips the file, or if it randomizes the input list). Note: the files open just fine in xviewer on Linux.
Thank you for the samples. There does not seem to be anything specific to these files, we were able to import them just fine on both Ente Photos Windows and macOS (on macOS we have an alternative non-libheif conversion method, and that also worked for these files, thus it's nothing in those sample files). So I'm not sure what's going on.
Meanwhile, as a workaround, you could either (a) complete your upload sans the HEICs, then later upload them from the web/mobile app, or (b) just try the entire upload via the web or mobile app. The web app might also hit the same scenario, since the line of code which triggers the web worker for the HEIC conversion is the same for the Windows desktop and web apps, but it is also possible that the web app might work because of the difference in the browser runtime vs the Electron app runtime.
I can't really upload these any other way because this is a Google Takeout export (~1 TB and 160k files). Using the desktop app in Windows, it always stalls after 1000-2000 files (maybe a leak?). I've tried on the Linux desktop app (appimage) but run into different issues importing the Google Takeout (similar to https://github.com/ente-io/ente/discussions/2145)
Thank you. I agree, the "maybe a leak?" or something similar sounds likely given how it seems to manifest differently. I've forked off a separate thread in the feature requests category so that people can vote on it - https://github.com/ente-io/ente/discussions/3420, closing the current one.
Description
When uploading a batch of images (via Google Takeout), there appears to be a error converting some of the files. This causes all four workers to stall until the app is restarted.
console log:
Version
v1.7.4
What product are you using?
Ente Photos
What platform are you using?
Mobile - iOS, Desktop - Windows