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

server crash attempt to index local 'message' (a nil value) #115

Closed
nonfreegithub opened this issue Oct 22, 2023 · 6 comments · Fixed by #116
Closed

server crash attempt to index local 'message' (a nil value) #115

nonfreegithub opened this issue Oct 22, 2023 · 6 comments · Fixed by #116
Labels
Bug Something isn't working
Milestone

Comments

@nonfreegithub
Copy link
Contributor

  • Minetest version: 5.8.0-dev

  • Game version: MineClone2 master branch commit f941817c390d0b607b9d173ddad3db0e58aad999

  • Mail mod version: master branch commit 7754e7e

  • Issues related:

#114

#110

ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'mail' in callback on_playerReceiveFields(): .../minetest/bin/../mods/mail/ui/message.lua:21: attempt to index local 'message' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]: 	.../minetest/bin/../mods/mail/ui/message.lua:21: in function 'show_message'
ERROR[Main]: 	.../minetest/bin/../mods/mail/ui/events.lua:220: in function <.../minetest/bin/../mods/mail/ui/events.lua:17>
ERROR[Main]: 	.../minetest/bin/../builtin/common/register.lua:26: in function <.../minetest/bin/../builtin/common/register.lua:12>
@BuckarooBanzay BuckarooBanzay added the Bug Something isn't working label Oct 22, 2023
@BuckarooBanzay
Copy link
Member

can you elaborate what the possible cause could be? (someone reading/deleting something, etc)

@Athozus
Copy link
Member

Athozus commented Oct 22, 2023

Seems like get_message returns nothing o_O

@nonfreegithub
Copy link
Contributor Author

can you elaborate what the possible cause could be? (someone reading/deleting something, etc)

I have tried to reproduce it to specify the steps to reproduce, but I cannot reproduce it

This happens on my server and I find this crash in the server log

Maybe it is related to the mail mod integration of the mtui

@BuckarooBanzay
Copy link
Member

#116 should fix that but the root-cause is still unknown 🤷

@Bastrabun
Copy link

We just ran into the same issue. User says he simply "scrolled down the list"

For my reference 5414

@a-tour-ist
Copy link

repro:
hit the "read"-button without selecting a mail in the table.

@Athozus Athozus added this to the 1.4.0 milestone Oct 23, 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

Successfully merging a pull request may close this issue.

5 participants