Blender crashes instantly when connecting nodes with node wrangler #104744

Open
opened 2023-07-10 11:24:57 +02:00 by EvenT · 12 comments

System Information
Operating system: macOS-13.4.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Max 1.2

Blender Version
Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb
Worked: I don't remember, it's been a problem for a while

Addon Information
Name: Node Wrangler (3, 46)
Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer

Short description of error
In render view, if I Alt+RMB drag a connection to another node, Blender instantly crashes. It does not freeze, but close down immediately.

Exact steps for others to reproduce the error

  1. Create a material for the default cube
  2. Enable render view
  3. Create a new node, for example the noise texture node
  4. While render view is enabled, Alt+RMB drag a connection "cable" from the noise texture node into the Principled BDSF node
  5. It crashes

*Sometimes it does not crash if it's first has to load render kernels.
**It does not happen if I SHIFT+CTRL click a node to preview it. Only when I Alt+RMB drag connections to a new node (as long as the node ends up in the Material Output node.

**System Information** Operating system: macOS-13.4.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Max 1.2 **Blender Version** Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: `c7fc78b81ecb` Worked: I don't remember, it's been a problem for a while **Addon Information** Name: Node Wrangler (3, 46) Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer **Short description of error** In render view, if I Alt+RMB drag a connection to another node, Blender instantly crashes. It does not freeze, but close down immediately. **Exact steps for others to reproduce the error** 1. Create a material for the default cube 2. Enable render view 3. Create a new node, for example the noise texture node 4. While render view is enabled, Alt+RMB drag a connection "cable" from the noise texture node into the Principled BDSF node 5. It crashes *Sometimes it does not crash if it's first has to load render kernels. **It does not happen if I SHIFT+CTRL click a node to preview it. Only when I Alt+RMB drag connections to a new node (as long as the node ends up in the Material Output node.
EvenT added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-07-10 11:24:58 +02:00
Member

Hi, thanks for the report. I'm not able to confirm the crash on Windows.
Could it be a crash due to incompatible shaders in Metal viewport backend? Can you verify the crash with OpenGL backend?
Also share crash logs: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos

Hi, thanks for the report. I'm not able to confirm the crash on Windows. Could it be a crash due to incompatible shaders in Metal viewport backend? Can you verify the crash with OpenGL backend? Also share crash logs: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-08-08 12:17:17 +02:00
Author

Hi, thanks for the report. I'm not able to confirm the crash on Windows.
Could it be a crash due to incompatible shaders in Metal viewport backend? Can you verify the crash with OpenGL backend?
Also share crash logs: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos

Hi, sorry for late answer.
It does not happen on OpenGL, so it might be the Metal backend.
It only happens while render preview is activated.

The crash log is attached to this comment.

> Hi, thanks for the report. I'm not able to confirm the crash on Windows. > Could it be a crash due to incompatible shaders in Metal viewport backend? Can you verify the crash with OpenGL backend? > Also share crash logs: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos Hi, sorry for late answer. It does not happen on OpenGL, so it might be the Metal backend. It only happens while render preview is activated. The crash log is attached to this comment.
Member

Thanks. Can you check if crash happens:

Thanks. Can you check if crash happens: - in EEVEE render/~~sold~~ solid mode - in recent 3.6.3/4.0 build: https://builder.blender.org/download/daily/ - without node wrangler (i.e. simply joining `noise texture` and `Principled BDSF` node with noddle)
Author

It crashes on eevee render. (3.6.0) with node wrangler.

What is sold mode?

I'll try with the newest builds, and without node wrangler soon

It crashes on eevee render. (3.6.0) with node wrangler. What is sold mode? I'll try with the newest builds, and without node wrangler soon
Author

I tried by joining noise texture and Principled BDSF node, however that did not instigate a crash.
However, joining a Normal map node with a Principled BDSF node made it crash. Which is what I tested in the crash logs under:

4.0.0 cycles with node wrangler: Crash (…094527.ips)
4.0.0 cycles without node wrangler: no crash
4.0.0 eevee with node wrangler: Crash (…094747.ips)
4.0.0 eevee without node wrangler: no crash
3.6.3 cycles with node wrangler: Crash (…094859.ips)
3.6.3 cycles without node wrangler: no crash
3.6.3 eevee with node wrangler: Crash (…095046.ips)
3.6.3 eevee without node wrangler: no crash

I tried by joining noise texture and Principled BDSF node, however that did not instigate a crash. However, joining a Normal map node with a Principled BDSF node made it crash. Which is what I tested in the crash logs under: 4.0.0 cycles with node wrangler: Crash (…094527.ips) 4.0.0 cycles without node wrangler: no crash 4.0.0 eevee with node wrangler: Crash (…094747.ips) 4.0.0 eevee without node wrangler: no crash 3.6.3 cycles with node wrangler: Crash (…094859.ips) 3.6.3 cycles without node wrangler: no crash 3.6.3 eevee with node wrangler: Crash (…095046.ips) 3.6.3 eevee without node wrangler: no crash
Member

Thanks. @mano-wii , can you confirm?

What is sold mode?

typo :)
I meant "solid" shading mode

Thanks. @mano-wii , can you confirm? > What is sold mode? typo :) I meant "solid" shading mode
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-08-21 11:44:33 +02:00

I can confirm the crash on Mac.
It has to do with drawing Python API.
Investigating...

I can confirm the crash on Mac. It has to do with drawing Python API. Investigating...

Well, I was using a Debug build, and I ended up mistaking an assert for a crash, but I actually can't replicate this bug.

The .ips files showing also don't seem to make it clear where the problem is.

I have however created another report which is dedicated only to the identified assert -> blender/blender#111370

@EvenT, could you check that other report? If the file there crashes too, it is an indication that it is the same issue.

Well, I was using a Debug build, and I ended up mistaking an assert for a crash, but I actually can't replicate this bug. The .ips files showing also don't seem to make it clear where the problem is. I have however created another report which is dedicated only to the identified assert -> blender/blender#111370 @EvenT, could you check that other report? If the file there crashes too, it is an indication that it is the same issue.
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Confirmed
labels 2023-08-22 05:23:15 +02:00
Author

Well, I was using a Debug build, and I ended up mistaking an assert for a crash, but I actually can't replicate this bug.

The .ips files showing also don't seem to make it clear where the problem is.

I have however created another report which is dedicated only to the identified assert -> blender/blender#111370

@EvenT, could you check that other report? If the file there crashes too, it is an indication that it is the same issue.

Hi, I tried with that file too, and it did not crash. A gradient line appeared in the 3D view, but I guess that was just the script doing its job.
Tested on 3.6.0 and 4.0.0 alpha

> Well, I was using a Debug build, and I ended up mistaking an assert for a crash, but I actually can't replicate this bug. > > The .ips files showing also don't seem to make it clear where the problem is. > > I have however created another report which is dedicated only to the identified assert -> blender/blender#111370 > > @EvenT, could you check that other report? If the file there crashes too, it is an indication that it is the same issue. > Hi, I tried with that file too, and it did not crash. A gradient line appeared in the 3D view, but I guess that was just the script doing its job. Tested on 3.6.0 and 4.0.0 alpha
Author

Thanks. @mano-wii , can you confirm?

What is sold mode?

typo :)
I meant "solid" shading mode

I tried in solid mode, it did not crash

EDIT: It did crash now, see comment under

> Thanks. @mano-wii , can you confirm? > > > What is sold mode? > > typo :) > I meant "solid" shading mode I tried in solid mode, it did not crash EDIT: It did crash now, see comment under
Author

I'm not used to doing bug report, so I'm sorry if this is messy, but here's some more info from trying it today.

This is a bit weird, but I tried replicating the crashes today and I could not initially replicate it in 4.0.0.
However, I then opened one of the projects I encountered the crash with originally, and tried connecting the normal map to the shader node with node wrangler inside that project and it crashed instantly.

When I tried replicating the crash again afterwards with a clean project and just a cube in solid mode, it crashed again.
So it seemed like the crash happened after working in a bigger project, then going back to trying again in a clean project. Can it be something that happens with the data stored in memory from the big project, causing a crash in an empty scene?

On the files under "...093731" is the crash happening on 3.6.0 on a clean file, connecting a normal map to cube with the node wrangler on solid mode right after it had crashed on a complex project.
"...151419" is the exact same scenario with a clean project crash after a complex project crash.
"...094747" is the crash happening in a "complex" project on 4.0.0

I did not manage to make the crash on a clean file on 4.0,0 yet. Might just be because the crash does not happen consistently, sometimes I need to reopen Blender a couple times until it happens.

I also attached one of the "problem files", a complex project where it sometimes crashes if you connect the Bump node into the Principlied BDSF by alt-dragging (left side of the screen). If it does not happen on the first try, I often have success closing Blender completely and reopening the project and trying again. However you might have to try a couple times. Should crash in Solid mode too.
Last file, "...094747" is a crash in that project file.

I'm not used to doing bug report, so I'm sorry if this is messy, but here's some more info from trying it today. This is a bit weird, but I tried replicating the crashes today and I could not initially replicate it in 4.0.0. However, I then opened one of the projects I encountered the crash with originally, and tried connecting the normal map to the shader node with node wrangler inside that project and it crashed instantly. When I tried replicating the crash again afterwards with a clean project and just a cube in solid mode, it crashed again. So it seemed like the crash happened after working in a bigger project, then going back to trying again in a clean project. Can it be something that happens with the data stored in memory from the big project, causing a crash in an empty scene? On the files under "...093731" is the crash happening on 3.6.0 on a clean file, connecting a normal map to cube with the node wrangler on solid mode right after it had crashed on a complex project. "...151419" is the exact same scenario with a clean project crash after a complex project crash. "...094747" is the crash happening in a "complex" project on 4.0.0 I did not manage to make the crash on a clean file on 4.0,0 yet. Might just be because the crash does not happen consistently, sometimes I need to reopen Blender a couple times until it happens. I also attached one of the "problem files", a complex project where it _sometimes_ crashes if you connect the Bump node into the Principlied BDSF by alt-dragging (left side of the screen). If it does not happen on the first try, I often have success closing Blender completely and reopening the project and trying again. However you might have to try a couple times. Should crash in Solid mode too. Last file, "...094747" is a crash in that project file.
Member

@mano-wii , can you check the example file uploaded in last comment?

@mano-wii , can you check the example file uploaded in last comment?
Sign in to join this conversation.
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-addons#104744
No description provided.