You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possible Bug: .DS_Store and __MACOSX files in .zip archives #1655
I think I found a bug that might affect Mac users. I was trying to upload a dummy scoring_program for a benchmark I’m planning to host, but whenever I uploaded a dummy submission file, nothing happened until the time limit was exceeded.
After some trial and error, I found that uploading the scoring_program from a Codabench example worked—but only if I didn’t unzip and rezip it on my Mac. When I downloaded the template file and uploaded it again without unzipping, it worked as expected. But if I downloaded it, unzipped it, and then rezipped it (without changing anything), I had the same timeout issue as with my dummy program.
I realized it might have to do with hidden files that macOS adds when zipping files (either .DS_Store or __MACOSX). When I used a terminal command to zip it without these extra files, it worked again.
So, I think these hidden files might be causing something to crash internally? I hope this information is helpful!
Thank you for reporting this problem. I seems surprising to me that the .DS_Store and __MACOSX files could lead to a bug.
Maybe the problem was the way you zipped the files? Did you zip directly the files, or did you include the directory structure? Zipping the folder is known to cause problems.
Hey! Okay interesting...
When the error ocurred I just clicked on the folder containing the metadata and the .py and zipped it. To avoid the error I do zip -r -X ../scoring_program_folder.zip * via terminal to exclude these hidden files. Thats why I figured that it must be these files that cause the error... But using the command I also zip the folder and not the files..
By the way, the error only occurs when uploading the scoring program, when uploading submissions it does not care about these hidden files - if that's what's causing the problem.
I can try again by zipping only the files (and leaving in the hidden files) and let you know if anything has changed
Hello! Quick update, I tried again by zipping the collection of files instead of the folder in which they are located in. Like that it works as expected!
I strongly suggest fixing this issue. I literally spent two days figuring out this.
At first, I tried to directly upload the dataset and program, and find it wouldn't work: the evaluation failed without any log information. Then I tried to upload the given example task.zip and found that everything works. Finally, I zip the same folder using my Mac, but I can not upload it. That's how I figured out it might be the Mac zip issue...
Activity
Didayolo commentedon Nov 11, 2024
Hi,
Thank you for reporting this problem. I seems surprising to me that the
.DS_Storeand__MACOSXfiles could lead to a bug.Maybe the problem was the way you zipped the files? Did you zip directly the files, or did you include the directory structure? Zipping the folder is known to cause problems.
ToastyDom commentedon Nov 13, 2024
Hey! Okay interesting...
When the error ocurred I just clicked on the folder containing the metadata and the .py and zipped it. To avoid the error I do
zip -r -X ../scoring_program_folder.zip *via terminal to exclude these hidden files. Thats why I figured that it must be these files that cause the error... But using the command I also zip the folder and not the files..By the way, the error only occurs when uploading the scoring program, when uploading submissions it does not care about these hidden files - if that's what's causing the problem.
I can try again by zipping only the files (and leaving in the hidden files) and let you know if anything has changed
ToastyDom commentedon Nov 21, 2024
Hello! Quick update, I tried again by zipping the collection of files instead of the folder in which they are located in. Like that it works as expected!
ihsaan-ullah commentedon Nov 21, 2024
It looks like the problem is resolved. Feel free to reopen this issue if you think otherwise.
Daniel-xsy commentedon Jul 1, 2025
I strongly suggest fixing this issue. I literally spent two days figuring out this.
At first, I tried to directly upload the dataset and program, and find it wouldn't work: the evaluation failed without any log information. Then I tried to upload the given example
task.zipand found that everything works. Finally, I zip the same folder using my Mac, but I can not upload it. That's how I figured out it might be the Mac zip issue...Didayolo commentedon Jul 2, 2025
@Daniel-xsy Yes I think you are right. At the very least we should have a clear error log when this happens.
Didayolo commentedon Jul 3, 2025
Opened again the PR about solving this problem.