Skip to content

[LTS 26.1-rc.1] Project crashes if calling Geometry2D polygons blending functions #1176

Closed

Description

@VanoGG42

Tested versions

Reproducible in:
26.1-rc.1
26.1-beta.0
Not Reproducible in:
4.4 or below

System information

Redot v26.1.rc.1 - Windows 11 (build 26100) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce GTX 1060 with Max-Q Design (NVIDIA; 32.0.15.8129) - Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 threads) - 15.85 GB memory

Issue description

If i try in Geometry2D class call this polygons blending function this will cause to crash project

Geometry2D.intersect_polygons()
Geometry2D.clip_polygons()
Geometry2D.merge_polygons()
Geometry2D.exclude_polygons()

Error:
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 1).
at: get (./core/templates/cowdata.h:189)
GDScript backtrace (most recent call first):
[0] _ready (res://control.gd:8)

This issue i discovered while i use Breakable Glass(https://github.com/Stand43/godot_breakable_glass_custom) asset in assets library

Steps to reproduce

Create a new project in Redot Engine LTS 26.1-beta.0 or -rc.1
Add simple script, where in _ready function calling Geometry2D class function intersect_polygons, or clip_polygons, or exclude_polygons, or merge_polygons
Run the project.
Project will crash with no errors, if not exported.

Minimal reproduction project (MRP)

This project contains one scene, control.tscn. control.tscn has a script control.gd attached which handles blend polygons and print output to logs, but this cause crash in LTS versions.

polygon-blending-crash.zip

Activity

  1. JoltedJon commented on Jan 26, 2026

    @JoltedJon
    Contributor

    Ran a Bisect and it was spawned from @mcdubhghlas 's optimization

    c97ca14537f3bd97777a4192c42f313579eb3ccb is the first bad commit
    commit c97ca14537f3bd97777a4192c42f313579eb3ccb
    Author: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>
    Date:   Thu May 22 16:14:28 2025 -0500
    
  2. Arctis-Fireblight commented on Jan 27, 2026

    @Arctis-Fireblight
    Contributor

    Fixed with #1177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions