Game may run out of VRAM on mobile systems?

Aperta
#655 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Ambito
backend

Direzione di ricerca

Start by reviewing the crash trace at client/src/ui/Label.lua:72 and client/src/scenes/Lobby.lua:210, then check the text-handling changes in linked PR #649, which the issue says may already address the problem. Look for additional evidence that the Android VRAM crash persists after those changes; done means identifying a reproducible cause and a justified fix, or closing the issue if the PR resolved it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

android bug needs repro priority: 2 - low

mato got this following crash once:

Error: Please share your crash.log with the developers to get help with this!

Stack Trace: 
    [C]: in function 'newText'
    client/src/ui/Label.lua:72: in function 'setText'
    client/src/scenes/Lobby.lua:210: in function 'update'
    client/src/NavigationStack.lua:162: in function 'update'
    client/src/Game.lua:379: in function 'update'
    main.lua:85: in function 'update'
    client/src/CustomRun.lua:126: in function 'runInternal'
    client/src/CustomRun.lua:212: in function <client/src/CustomRun.lua:210>
    [C]: in function 'xpcall'
Username: mato_touch
Theme: Panel Attack Modern
Error Message: client/src/ui/Label.lua:72: Could not create buffer with 3072 bytes (out of VRAM?)
Engine Version: 048
Build Version: stable 1742579832
Operating System: OS: Android
Love Version: 12.0.0
Renderer Info: OpenGL ES;OpenGL ES 3.2 [email protected] (GIT@95db91f, Ifbc588260a, 1600958831) (Date:09/24/20);Qualcomm;Adreno (TM) 616
UTC Time: 2025-03-22 22:09:44
Scene: Lobby

First time I've seen this and this should not happen easily.
The only idea I have about this is to correct the way newText is being used for labels because Lobby in particular throws all its labels away and creates new ones on every single server status update (but even then, crashing from being out of VRAM is a bit ridiculous, these should still get cleared by the GC). Text handling has been reworked in #649 so if it was actually text and not the thing it crashed on that might have gotten better.
I'll probably end up closing this with the PR mentioned above if there are no new insights.

Lingua principale
Lua
Stelle
30
Fork
20
Merge medio
4g 19h
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di panel-attack/panel-game

Tutte le issue di panel-attack/panel-game

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.