Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui/message.lua:53: attempt to index local 'message' (a nil value) #87

Closed
Bastrabun opened this issue May 10, 2023 · 1 comment
Closed
Labels
Bug Something isn't working

Comments

@Bastrabun
Copy link

Bastrabun commented May 10, 2023

Looks suspiciously similar to #84

This is the commit we're on: 8dcfc7d

That's how it happened:

2023-05-09 13:47:18: ACTION[Server]: [yl_commons] formspec "mail:compose": whosit submitted {"bcc":"","body":"","cc":"","send":"Send","subject":"VERY LONG TEXT","to":"whosit"}
2023-05-09 13:47:22: ACTION[Server]: [yl_commons] lua is using 176.3 MB
2023-05-09 13:47:23: ACTION[Server]: [yl_commons] formspec "mail:inbox": whosit submitted {"quit":"true"}
2023-05-09 13:47:32: ACTION[Server]: [yl_commons] lua is using 222.4 MB
2023-05-09 13:47:36: ACTION[Server]: [yl_commons] formspec "mail:inbox": whosit submitted {"filter":"","inbox":"CHG:1:0","sortdirection":"1","sortfield":"1"}
2023-05-09 13:47:36: ACTION[Server]: [yl_commons] formspec "mail:inbox": whosit submitted {"filter":"","inbox":"CHG:2:0","sortdirection":"1","sortfield":"1"}
2023-05-09 13:47:40: ACTION[Server]: [yl_commons] formspec "mail:inbox": whosit submitted {"filter":"","inbox":"DCL:2:0","sortdirection":"1","sortfield":"1"}
2023-05-09 13:47:42: ACTION[Server]: [yl_commons] lua is using 250.9 MB
2023-05-09 13:47:47: ACTION[Server]: [yl_commons] formspec "mail:message": whosit submitted {"replyall":"Reply all"}
2023-05-09 13:47:47: ACTION[Main]: Server: Shutting down

I tried to reproduce with the steps above, but couldn't get it to crash again in the same way. Since a "new mail" is involved, it can't be a migration issue as suspected in #84

Stacktrace:

2023-05-09 13:47:49: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'mail' in callback on_playerReceiveFields(): .../5.6.1/Minetest_test/bin/../mods/mail_mod/ui/message.lua:53: attempt to index local 'message' (a nil value)
2023-05-09 13:47:49: ERROR[Main]: stack traceback:
2023-05-09 13:47:49: ERROR[Main]: 	.../5.6.1/Minetest_test/bin/../mods/mail_mod/ui/message.lua:53: in function 'replyall'
2023-05-09 13:47:49: ERROR[Main]: 	.../5.6.1/Minetest_test/bin/../mods/mail_mod/ui/message.lua:114: in function 'func'
2023-05-09 13:47:49: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:100>
2023-05-09 13:47:49: ERROR[Main]: 	.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:432: in function <.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:418>

For my reference 4447

@BuckarooBanzay BuckarooBanzay added the Bug Something isn't working label May 10, 2023
@BuckarooBanzay
Copy link
Member

same issue as in #84 closing

@BuckarooBanzay BuckarooBanzay closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants