Skip to content

Game may run out of VRAM on mobile systems? #655

@Endaris

Description

@Endaris

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 V@0502.0 (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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions