godotengine / godotengine/godot

Editing StandardMaterial3D on Android Editor fills RAM until OOM (Compatibility)

Open
#117,293 8 comments 2 reactions 0 assignees View on GitHub
needs testing platform:android topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproductible in: Godot 4.7-dev2

### System information

Android 12 - Godot 4.7-dev2 - GL Compatibility - Helio G85 - 4GB Ram

### Issue description

Godot starts to stutter after 10 minutes in project, and the ram is very full, low memory killer force closed the godot app. When I first started the project, the Ram still has quite a lot left (fully loaded).

Edit:
The memory leaks happen after i opened the Material tab (StandardMaterial3D), after i open it once, it's just getting laggy and laggy until Low memory killer force closing Godot.

### Steps to reproduce

Copying and pasting textured mesh until the ram is full.
(Correction: Copying and pasting textured mesh for like 10 times)

Edit:
Steps above are incorrect.
To reproduce the bug, you need to open StandardMaterial3D.

### Minimal reproduction project (MRP)

[mrp.zip](https://github.com/user-attachments/files/25876675/mrp.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached mrp.zip on Android 12 using Godot 4.7-dev2 in GL Compatibility mode, then open the StandardMaterial3D material tab and monitor RAM while reproducing the reported lag. Trace the StandardMaterial3D editor path and verify that repeated access does not cause unbounded memory growth or an eventual low-memory kill.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
computer-graphics, mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.