WebODM icon indicating copy to clipboard operation
WebODM copied to clipboard

WebODM freezing in Chrome with long filenames

Open ivangayton opened this issue 1 year ago • 3 comments

How did you install WebODM (docker, installer, etc.)?

Docker install on Ubuntu 22.04

What's your browser and operating system?

Chrome 110 on Linux (Ubuntu 22.04)

What is the problem?

When I upload a large batch of photos (a few thousand) with long descriptive filenames (e.g. MyArea_Mission_15B_Flight_01_00002) it begins uploading, and then Chrome freezes completely, requiring me to kill it from a console. When I restart Chrome, I can go back into the WebODM portal, I find that the task exists, but only contains some of the files (the first few hundred or thousand, depending how long the filenames were).

Workaround: I can rename the files to be much shorter but still unique (e.g. 15B_01_00002) and the whole batch uploads without any issues. Sadly, if I forget to do the same to my geo.txt file, my life becomes substantially less enjoyable as my task proceeds to undertake matching of thousands of photos without georeferencing (incidentally, some kind of warning that none of the lines in the geo.txt match any of the filenames might have saved me some heartache!

How can we reproduce this? (What steps trigger the problem? What parameters are you using for processing? Include screenshots. If you are having issues processing a dataset, you must include a copy of your dataset uploaded on Dropbox, Google Drive or https://dronedb.app)

I expect you can trigger the problem by attempting to upload a dataset with lots of photos and long filenames (if of interest, I can give you access to an FTP site with directories full of photos that have crashed in this fashion; they're a little big for GDriving).

ivangayton avatar Mar 10 '23 02:03 ivangayton

Thanks for the report!

Could you provide us with one such full filename and how many files were in that Task that crashed?

I'm interested in seeing what the total character count is.

Also, if possible, having the path or length of the path would be helpful as that is likely prepended to the filenames and would then count towards the total character count.

Saijin-Naib avatar Mar 10 '23 02:03 Saijin-Naib

Ah, strange; no need to upload a dataset, we can probably generate a test one using a script. Thanks for the report.

pierotofy avatar Mar 10 '23 02:03 pierotofy

Actually, that's a very interesting thought about the paths; I suppose an additional workaround would be to move the directory full of images into the home folder to shorten the full path.

Which would be a hell of a lot easier and less risky than batch renaming 6,000 files.

ivangayton avatar Mar 10 '23 05:03 ivangayton