Lua panic error after idling in lobby

Open
#623 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
lua
Domain
game-dev

Research direction

Start by investigating the reported Linux-only crash after extended lobby idling and the Lua panic message. The issue points to LuaSocket as a possibility and gives version numbers for the client and server; compare those versions while trying to reproduce the reported timing. Done means identifying and resolving the cause so the client no longer panics while idling.

Written by the indexing model from the issue text.

Description

bug Client-side needs repro priority: 2 - low Server-side

Been reported as reproducable by chaos / Bowser; linux only
After idling for an extended amount of time, the client taps out with the following error:

PANIC: unprotected error in call to Lua API (runtime code generation failed, restricted kernel?)

According to chaos the timing of the crash is reproduceable after 17.5min on his machine.
Might be machine specific as Bowser named higher durations.

My best guess at the moment is that the issue is caused by luasocket in some way because that is the only code I could imagine to call into Lua while idling in lobby.

The love 12 release we ship with uses Luasocket 3.0.0, love 12 with SDL3 uses Luasocket 3.1.0 whereas the server uses Luasocket 3.0-rc1 (same as 11.5) so it may be worthwhile to try and update the server's luasocket to a matching version but otherwise I don't really have an idea.

Dominant language
Lua
Stars
30
Forks
20
Avg merge
3d 15h
Merged PRs (30d)
17

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from panel-attack/panel-game

All issues in panel-attack/panel-game

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.