Game may run out of VRAM on mobile systems?

Open
#655 0 comments 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
Domain
backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

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.