Crash when assigning via python a collection to a GeometryNodes modifier. #88594

Closed
opened 2021-05-26 13:29:22 +02:00 by Lukas Sabaliauskas · 9 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.11

Blender Version
Broken: version: 2.93.0 Beta, branch: master, commit date: 2021-05-15 16:29, hash: 610c0ecc3b

Short description of error
Blender crashes when I assign an unchecked collection that contains at least one mesh and one curve to a GeometryNodes modifer via python (script or python console)

Exact steps for others to reproduce the error

On a new blend file :

  • Add a new GeometryNodes modifier to the cube.
  • Add a "point instance" node with the collection option turned on, and plug its input "Collection" to the "Group input".
  • Now we can access this collection via the modifer.
  • Create a new collection with a curve object (Bezier for example)
  • Uncheck the collection
  • Finally assign this new collection to the modifer via python :
  • >>> bpy.data.objects["Cube"].modifiers["GeometryNodes"]['Input_5'] = bpy.data.collections["Collection 2"]
  • When trying to interact with our Cube (move/change the modifer/go into edit mode), blender crashes.

On the blend file:
crashGeoNodesPythonCollectionCurve.blend
crashGeoNodesPythonCollectionCurve.png

  • Execute the script
  • Move the cube

Notes :

  • Assigning the collection manually works.
  • Unchecked collections with only mesh objects work.

Thanks!

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.11 **Blender Version** Broken: version: 2.93.0 Beta, branch: master, commit date: 2021-05-15 16:29, hash: `610c0ecc3b` **Short description of error** Blender crashes when I assign an unchecked collection that contains at least one mesh and one curve to a GeometryNodes modifer via python (script or python console) **Exact steps for others to reproduce the error** On a new blend file : - Add a new GeometryNodes modifier to the cube. - Add a "point instance" node with the collection option turned on, and plug its input "Collection" to the "Group input". - Now we can access this collection via the modifer. - Create a new collection with a curve object (Bezier for example) - Uncheck the collection - Finally assign this new collection to the modifer via python : - `>>> bpy.data.objects["Cube"].modifiers["GeometryNodes"]['Input_5'] = bpy.data.collections["Collection 2"]` - When trying to interact with our Cube (move/change the modifer/go into edit mode), blender crashes. On the blend file: [crashGeoNodesPythonCollectionCurve.blend](https://archive.blender.org/developer/F10142974/crashGeoNodesPythonCollectionCurve.blend) ![crashGeoNodesPythonCollectionCurve.png](https://archive.blender.org/developer/F10142975/crashGeoNodesPythonCollectionCurve.png) - Execute the script - Move the cube Notes : - Assigning the collection manually works. - Unchecked collections with only mesh objects work. Thanks!

Added subscriber: @Trukas

Added subscriber: @Trukas
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can reproduce the crash for 3.0.0 alpha, Hash: 43153e2324, commit date: 2021-05-24.

Crash is reproducible for 2.93.0 and 2.92.0 as well.

I can reproduce the crash for 3.0.0 alpha, Hash: `43153e2324`, commit date: `2021-05-24`. Crash is reproducible for 2.93.0 and 2.92.0 as well.
Jacques Lucke self-assigned this 2021-06-21 13:18:11 +02:00
Member

I can't reproduce it anymore, can you?

I can't reproduce it anymore, can you?
Member

I am able to reproduce on 2.93.6 (0930a70e8110) but not on master and blender-v3.0-release

Will search for the fix tomorrow to backport it

I am able to reproduce on 2.93.6 (`0930a70e8110`) but not on master and `blender-v3.0-release` Will search for the fix tomorrow to backport it
Member

Commit that fixes the crash on master: b9febb54a4

I don't think this commit will be backported to 2.93 (that will introduce bunch of new issues in LTS)

Commit that fixes the crash on master: b9febb54a4 I don't think this commit will be backported to 2.93 (that will introduce bunch of new issues in LTS)
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

Thanks for checking. Feels unlikely that this is going to be backported to 2.93 indeed. So I'm closing this.

Thanks for checking. Feels unlikely that this is going to be backported to 2.93 indeed. So I'm closing this.
Thomas Dinges added this to the 2.93 LTS milestone 2023-02-07 18:46:14 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#88594
No description provided.