Skip to content

Android : Crash on 3D scene load with compatibility renderer only #112956

@SeleDreams

Description

@SeleDreams

Tested versions

Tested in 4.5.1 then 4.6.Dev4

System information

Android 15 - Xiaomi HyperOS 2.0.205.0 (Poco M7 Pro 5G)

Issue description

When loading a new 3D scene, by deleting the children of the current and then loading the next by adding an instantiated PackedScene as a child, it seems like godot crashes without specific information in the log.
This only happen on the opengl compatibility renderer on mobile. I tested and the Mobile vulkan renderer works fine

Steps to reproduce

  • Create a project with compatibility renderer and android export target
  • Create a subviewport
  • Create a 3D scene inside the subviewport.
  • Make a scene switch logic that changes the scene inside the subviewport by clearing children then adding the packedscene of the new ones
  • The game will crash

Minimal reproduction project (MRP)

https://github.com/SeleDreams/godot-android-crash-reproduction-project
I was able to make a very simple reproduction project that immediately produces the crash when the game starts. mobile renderer works fine, only compatibility crashes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions