Undefined Geometry nodes cause a crash when connected to a Group Output node #89004

Closed
opened 2021-06-09 17:20:47 +02:00 by Fen · 16 comments

System Information
Operating system: Linux-5.8.0-55-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: Quadro K1000M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.143

Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: 84da05a8b8
Worked: Also crashes in 2.92

Short description of error
Undefined geometry nodes cause a crash when they are plugged into a Group Output node, either indirectly or directly.

Exact steps for others to reproduce the error

  1. Load the attached file in Blender 2.9.3
  2. Go into the Geometry Nodes tab
  3. Plug the Undefined node into the Group Output node's "Geometry" input
  4. Crash

To produce an Undefined node, you can create a Material Assign node in Blender 3.0.0a.

The crash also occurs if you plug the Undefined node into something else, and then plug that node's geometry output into the Group Output node.

If the nodes were connected in the file, then Blender crashes immediately when you try to load it.

Stacktrace: crash-test.crash.txt

Test File:
crash-test.blend

**System Information** Operating system: Linux-5.8.0-55-generic-x86_64-with-glibc2.31 64 Bits Graphics card: Quadro K1000M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.143 **Blender Version** Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: `84da05a8b8` Worked: Also crashes in 2.92 **Short description of error** Undefined geometry nodes cause a crash when they are plugged into a Group Output node, either indirectly or directly. **Exact steps for others to reproduce the error** 1. Load the attached file in Blender 2.9.3 2. Go into the *Geometry Nodes* tab 3. Plug the *Undefined* node into the *Group Output* node's "Geometry" input 4. Crash To produce an *Undefined* node, you can create a *Material Assign* node in Blender 3.0.0a. The crash also occurs if you plug the *Undefined* node into something else, and then plug *that* node's geometry output into the *Group Output* node. If the nodes were connected in the file, then Blender crashes immediately when you try to load it. Stacktrace: [crash-test.crash.txt](https://archive.blender.org/developer/F10164432/crash-test.crash.txt) Test File: [crash-test.blend](https://archive.blender.org/developer/F10164428/crash-test.blend)
Author

Added subscriber: @chemicalcrux

Added subscriber: @chemicalcrux

#88685 was marked as duplicate of this issue

#88685 was marked as duplicate of this issue

Added subscriber: @Zandman

Added subscriber: @Zandman

Confirmed on macOS Big Sur M1 with the official 2.93.0 release.

To produce an Undefined node, you can create a Material Assign node in Blender 3.0.0a.

So you're using a 3.0.0 feature in 2.93.0? Maybe that shouldn't be supported? I don't think Blender should crash, though. Maybe refuse to load the newer Blend.

Confirmed on macOS Big Sur M1 with the official 2.93.0 release. > To produce an Undefined node, you can create a Material Assign node in Blender 3.0.0a. So you're using a 3.0.0 feature in 2.93.0? Maybe that shouldn't be supported? I don't think Blender should crash, though. Maybe refuse to load the newer Blend.
Author

It's not really a new feature; it's just a node that Blender doesn't know about. I would expect the same to happen after removing an add-on that introduced new nodes (not sure if that's possible though :p )

It already handles this by showing an Undefined node. It just needs to not crash when that node is connected to an output.

image.png

I see a commit that talks about preventing a crash with undefined nodes, so perhaps there was a regression?

https://developer.blender.org/rBSc5569ba140382015c32bd638532097ea05168607

It's not really a new *feature*; it's just a node that Blender doesn't know about. I would expect the same to happen after removing an add-on that introduced new nodes (not sure if that's possible though :p ) It already handles this by showing an *Undefined* node. It just needs to not crash when that node is connected to an output. ![image.png](https://archive.blender.org/developer/F10164461/image.png) I see a commit that talks about preventing a crash with undefined nodes, so perhaps there was a regression? https://developer.blender.org/rBSc5569ba140382015c32bd638532097ea05168607
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Not sure if this report will be considered as a bug or else. Better to wait for other developer's or triager's reply :)

Not sure if this report will be considered as a bug or else. Better to wait for other developer's or triager's reply :)
Author

I tested this out with a freshly-compiled copy of Blender by hex-editing the .blend file so that the node name was bogus. It does not crash. 2.93 crashes on the same file. You can try it out yourself here:

crash-test.blend

The geometry node modifier has gotten a significant rewrite between blender-v2.93-release and the current master, judging by a casual diffing.

So, whatever the problem was is already gone from 3.0.0, but it's still alive in 2.9.3. Since I'm not really aware of people hot-swapping geometry nodes, this might be minor enough to just ignore (:

I tested this out with a freshly-compiled copy of Blender by hex-editing the .blend file so that the node name was bogus. It does not crash. 2.93 crashes on the same file. You can try it out yourself here: [crash-test.blend](https://archive.blender.org/developer/F10164730/crash-test.blend) The geometry node modifier has gotten a significant rewrite between `blender-v2.93-release` and the current `master`, judging by a casual diffing. So, whatever the problem was is already gone from 3.0.0, but it's still alive in 2.9.3. Since I'm not really aware of people hot-swapping geometry nodes, this might be minor enough to just ignore (:
Member

Added subscribers: @Jeroen-Bakker, @JacquesLucke

Added subscribers: @Jeroen-Bakker, @JacquesLucke
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Jacques Lucke self-assigned this 2021-06-10 16:07:57 +02:00
Member

@Jeroen-Bakker here is a relatively straight forward patch that fixes this in blender-v2.93-release: P2167. It just disables geometry nodes when there are undefined nodes or sockets. While I want to commit the changes that are not in MOD_nodes.cc in master as well, the fix is not necessary there. The new evaluator in master should handle this case more gracefully. Can you commit this in the release branch or should I do it?

Just FYI, the problem here is not actually that there is an undefined node, but that there is an undefined socket type (the material socket).

@Jeroen-Bakker here is a relatively straight forward patch that fixes this in `blender-v2.93-release`: [P2167](https://archive.blender.org/developer/P2167.txt). It just disables geometry nodes when there are undefined nodes or sockets. While I want to commit the changes that are not in `MOD_nodes.cc` in `master` as well, the fix is not necessary there. The new evaluator in master should handle this case more gracefully. Can you commit this in the release branch or should I do it? Just FYI, the problem here is not actually that there is an undefined node, but that there is an undefined socket type (the material socket).
Author

Ah, good catch. I didn't think of that. Thanks for having a look!

Ah, good catch. I didn't think of that. Thanks for having a look!
Member

Added subscribers: @Vyach, @CreatorSiSo, @lichtwerk

Added subscribers: @Vyach, @CreatorSiSo, @lichtwerk

This issue was referenced by 7573e45103

This issue was referenced by 7573e4510346afd6db6489183316c4043454159f
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
6 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#89004
No description provided.