Lua panic error after idling in lobby

オープン
#623 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
lua
領域
game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Lua
スター
30
フォーク
20
平均マージ
3日 15時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

panel-attack/panel-game のほかの issue

panel-attack/panel-game の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。