You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to modify PlaneMesh geometry with code (via MeshDataTool).
To do that, I construct ArrayMesh and copy PlaneMesh's arrays to it (obtained with get_mesh_arrays()).
It works perfectly on PC, but failed on Android.
The error was:
E 0:00:01:0300 Soil.gd:23 @ _fill_grass(): Index r[i] = 16256 is out of bounds (vcount = 144).
<C++ Source> scene/resources/mesh_data_tool.cpp:72 @ create_from_surface()
<Stack Trace> Soil.gd:23 @ _fill_grass()
Soil.gd:15 @ _ready()
After some debugging I found out that arrays 12th array (ARRAY_INDEX as is declared here) is full of seemingly leftover uninitialized junk.
PC values:
Android values:
Steps to reproduce
Create a new project
Add a node, attach a script
Put
var pm = PlaneMesh.new()
var arrays = pm.get_mesh_arrays()
Set a breakpoint
Run with remote debug on an Android device
Observe arrays 12th element going nuts in Stack Variables
Godot version
4.0, 4.1 stable
System information
Godot v4.1.stable - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Tue, 04 Jul 2023 08:39:22 +0000 - Vulkan (Mobile) - dedicated AMD Radeon RX 6700 XT (RADV NAVI22) () - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)
Issue description
I'm trying to modify PlaneMesh geometry with code (via MeshDataTool).
To do that, I construct ArrayMesh and copy PlaneMesh's arrays to it (obtained with get_mesh_arrays()).
It works perfectly on PC, but failed on Android.
The error was:
After some debugging I found out that arrays 12th array (ARRAY_INDEX as is declared here) is full of seemingly leftover uninitialized junk.
PC values:
Android values:
Steps to reproduce
Minimal reproduction project
test.zip
The text was updated successfully, but these errors were encountered: