Clop icon indicating copy to clipboard operation
Clop copied to clipboard

Crash on NSProgress data race when using CLI

Open NBaLogn opened this issue 1 year ago • 3 comments

Here's the relevant settings for the app. SCR-20240922-quhd SCR-20240922-qtmu SCR-20240922-qvwx

I just downloaded the app for a few days, and was using it to optimize a few folders of mixed files (PDF and videos). Since there's a lot of files, I used the CLI command "clop optimize -garn *" to optimize aggressively for all files in the folder and subfolders, no progress bar in the terminal but in the GUI instead.

However, sometimes while optimizing a video, the terminal shows this error SCR-20240922-oauu which indicates process exit, while the GUI shows the process still works in the background, just that it skips that (those) item(s).

After waiting for a while, it'd show that subsequent items in the folders would not be optimized, so I clicked on "Stop and clear", but then some items would be missing, not appearing anywhere. There appears to be attempts to recover from the app itself, but it still lost a lot of videos.

I don't know if this is mainly a CLI bug, or just an app bug in general; I've mainly only used the CLI, and the majority of that bug appeared there. It could be that it's an app bug that could appear during background/clipboard optimization but I didn't encounter/notice.

I was able to restore them from Time Machine, but it seems this is a notable bug. If there's some workaround or some settings I set that lead to this result, please inform me.

NBaLogn avatar Sep 22 '24 23:09 NBaLogn