How to check submission error #176
Replies: 3 comments 7 replies
-
I have a guess of the cause of this issue, although I do not have the server logs to confirm it. When starting the bot, the mjai.app/python/mjai/http_server/server.py Lines 7 to 17 in dc9dbfb However, the player client waits only at most 10 seconds: mjai.app/python/mjai/player.py Lines 137 to 140 in dc9dbfb So if the decompression does not complete in 10 seconds, due to either limited CPU or disk I/O speed, the matches cannot start. It can explain why there were no stdout or stderr log files. (They were missing instead of empty, because empty logs would have the You can test it out by uploading a If my hypothesis is true, it can be the root cause for this similar issue too: #139 |
Beta Was this translation helpful? Give feedback.
-
After checking, I found that the issue is most likely caused by the zip file decompression leading to a timeout. The My bot.zip file is 575 MB. Considering that mjai.app limits the maximum file size to 1GB, I believe the httpserver should consider increasing the timeout limit for unzip. Alternatively, consider using Python's multiprocessing to decompress the archive, thereby fully utilizing multi-core CPU performance. |
Beta Was this translation helpful? Give feedback.
-
update: Since we identified that the timeout was caused by the unzip operation, I performed a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to submit, but it always returns a failed status, and stdout and stderr are empty.


So I pulled the image smly/mjai-client:v3 and submitted it using mjai.Simulator; the execution results indicate that everything is running normally. But it still returns failed.
Beta Was this translation helpful? Give feedback.
All reactions