You cannot add certain languages in /bug. I added Chinese characters to report a translation issue and it crashed the game. #5842

Open
opened 2023-12-27 10:28:27 +00:00 by Jammy · 9 comments

Server crash. Please try logging in again. Livestream: https://www.twitch.tv/bailiffofhaven Contact: info@your-land.de

Server crash. Please try logging in again. Livestream: https://www.twitch.tv/bailiffofhaven Contact: info@your-land.de
Jammy changed title from Server crash. This is very severe. to You cannot add certain languages in /bug. I added Chinese characters to report a translation issue and it crashed the game. 2023-12-27 10:33:41 +00:00

Unable to reproduce on the test server, and I'll be damned before I try again on the main server

Unable to reproduce on the test server, and I'll be damned before I try again on the main server
Member
trace: https://gitea.your-land.de/your-land/log_yl_main/issues/98
2023-12-27 10:27:50: ERROR[CurlFetch]: HTTPFetch for https://gitea.your-land.de/api/v1/repos/your-land/bugtracker/issues?token=secret returned response code 500
2023-12-27 10:29:01: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_report' in callback environment_Step(): .../5.7.0/Minetest_live/bin/../mods/yl_report/functions.lua:58: attempt to concatenate field 'number' (a nil value)
2023-12-27 10:29:01: ERROR[Main]: stack traceback:
2023-12-27 10:29:01: ERROR[Main]: 	.../5.7.0/Minetest_live/bin/../mods/yl_report/functions.lua:58: in function 'result_of_gitea'
2023-12-27 10:29:01: ERROR[Main]: 	/home/mt/5.7.0/Minetest_live/bin/../mods/yl_report/init.lua:59: in function 'callback'
2023-12-27 10:29:01: ERROR[Main]: 	/home/mt/5.7.0/Minetest_live/bin/../builtin/game/misc.lua:213: in function 'func'
2023-12-27 10:29:01: ERROR[Main]: 	...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:27: in function <...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:11>
2023-12-27 10:29:01: ERROR[Main]: 	.../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:432>
``` 2023-12-27 10:27:50: ERROR[CurlFetch]: HTTPFetch for https://gitea.your-land.de/api/v1/repos/your-land/bugtracker/issues?token=secret returned response code 500 2023-12-27 10:29:01: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_report' in callback environment_Step(): .../5.7.0/Minetest_live/bin/../mods/yl_report/functions.lua:58: attempt to concatenate field 'number' (a nil value) 2023-12-27 10:29:01: ERROR[Main]: stack traceback: 2023-12-27 10:29:01: ERROR[Main]: .../5.7.0/Minetest_live/bin/../mods/yl_report/functions.lua:58: in function 'result_of_gitea' 2023-12-27 10:29:01: ERROR[Main]: /home/mt/5.7.0/Minetest_live/bin/../mods/yl_report/init.lua:59: in function 'callback' 2023-12-27 10:29:01: ERROR[Main]: /home/mt/5.7.0/Minetest_live/bin/../builtin/game/misc.lua:213: in function 'func' 2023-12-27 10:29:01: ERROR[Main]: ...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:27: in function <...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:11> 2023-12-27 10:29:01: ERROR[Main]: .../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:432> ```

My implementation begs a lot of questions. Why is this not made async?? Why do I only look at the succeed and not at the return code?

My implementation begs a lot of questions. Why is this not made async?? Why do I only look at the `succeed` and not at the return code?
flux added the
1. kind/bug
2. prio/critical
labels 2023-12-27 20:13:27 +00:00
Member

it's possible that the report failure was spurious and not related to the chinese characters - the code should be checking whether the report was a success

it's possible that the report failure was spurious and not related to the chinese characters - the code should be checking whether the report was a success
Author

Seemingly it is fixed. I tested /bug again and did not crash.

Seemingly it is fixed. I tested /bug again and did not crash.
Member

In doing so, you deliberately accepted the crash of the server. This is against all the rules. I'm expecting a serious warning for Jammy.

In doing so, you deliberately accepted the crash of the server. This is against all the rules. I'm expecting a serious warning for Jammy.

Seemingly it is fixed. I tested /bug again and did not crash.

It doesn't matter what language you put in, the server crashed because gitea failed to generate the report w/ error 500. Thus causing the report code to fail due to a nil value being concatenated.

Plus this was already tested in the testserver: #5844

> Seemingly it is fixed. I tested /bug again and did not crash. It doesn't matter what language you put in, the server crashed because gitea failed to generate the report w/ error 500. Thus causing the report code to fail due to a nil value being concatenated. Plus this was already tested in the testserver: #5844

Seemingly it is fixed. I tested /bug again and did not crash.

Response code 500 means there was an internal server error, which apparently wasn't caused by chinese characters. Do NOT test stuff that might result in a servercrash on the main server!

> Seemingly it is fixed. I tested /bug again and did not crash. Response code 500 means there was an internal server error, which apparently wasn't caused by chinese characters. Do NOT test stuff that might result in a servercrash on the main server!
Sign in to join this conversation.
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#5842
No description provided.