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

Calling minetest.chat_send_all in minetest.register_on_newplayer causes hanging #2383

Closed
rubenwardy opened this issue Feb 23, 2015 · 4 comments
Labels
@ Script API Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible

Comments

@rubenwardy
Copy link
Member

Noticed while developing my capture the flag subgame.

hanging

Pressing ctrl+c on server prints

 ^C20:24:09: INFO: sigint_handler(): Ctrl-C pressed, shutting down.

But nothing else. Server doesn't close. No error messages.

Minimal example, install as init.lua in a mod:

minetest.register_on_newplayer(function(player)
    minetest.chat_send_all(" has joined")
end)

No hanging when using minetest.register_on_joinplayer.

@rubenwardy
Copy link
Member Author

Back trace of client: https://gist.github.com/rubenwardy/b9bbb98d89f345a7d083
Server is in "usleep" whenever I backtrace it.
Discovered in cd4324e

@ShadowNinja ShadowNinja added Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible @ Script API Medium priority labels Feb 23, 2015
@rubenwardy
Copy link
Member Author

No longer a problem on latest master.

@nerzhul
Copy link
Member

nerzhul commented Mar 5, 2015

I fixed a deadlock similar as you show yesterday

@rubenwardy
Copy link
Member Author

Awesome. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Script API Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible
Projects
None yet
Development

No branches or pull requests

3 participants