Search Issue Tracker

In Progress

Fixed in 2022.3.29f1



Found in





Issue ID




[Android] Memory increases continuously after calling Java code via JNI bridge



Reproduction steps:
1. Open the attached project “ReproProject”
2. Open the scene “Assets/Scenes/SampleScene.unity'
3. Go to "File > "Build Settings and choose the Android platform
4. Ensure Development Build and Autoconnect Profiler is enabled
5. Build And Run
6. Observe the Console Window for messages

Expected result: The memory doesn’t increase continuously
Actual result: The memory increases continuously (e.g. In 5 mins from
”{{GC Reserved Memory: 0.750M GC Used Memory: 0.516M }}
{{ GC Reserved Memory: 4.246M GC Used Memory: 2.723M}}" )

Reproducible with: 2022.3.8f1, 2022.3.25f1, 2023.2.19f1, 6000.0.0b15
Not reproducible with: 2021.3.37f1, 2022.3.7f1

Reproducible with these devices:
VLNQA00518 - Google Pixel 4 (Pixel 4), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 12
VLNQA00414 - Galaxy Note10+ 5G (SM-N976V), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 9
VLNQA00591 - Samsung Galaxy S23 (SM-S911B), CPU: Snapdragon 8 Gen 2 (SM8550), GPU: Adreno 740, OS: 14
VLNQA00278 - Xiaomi Redmi Note 7 (Redmi Note 7), CPU: Snapdragon 660, GPU: Adreno 512, OS: 9.0.0
VLNQA00139 - Vivo Xplay6 (vivo Xplay6), CPU: Snapdragon 820 MSM8996, GPU: Adreno 530, OS: 7.1.1

Testing environment: Windows 11 23H2 (22631.3007), Windows 11 (10.0.22621) 64bit (user’s)
Not reproducible environment: No other environment tested

Comments (3)

  1. porpercris

    Apr 14, 2024 16:45


  2. amdaniaminsupardi

    Apr 12, 2024 23:08

    I make game in unity

  3. amdaniaminsupardi

    Apr 12, 2024 23:07

    I make game in united

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.