-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nasty Crash correlated with a Malt Node Tree #560
Comments
This is a much more cut-down version of the blend. Same reproduction steps, just need to open the file and then attempt to open another one. It'll immediately crash. I got back the progress I had made on that character file, redoing a bunch of stuff from the past couple of days, and I wound up running into the same crash on load again. Only started to happen once I started making changes to that node tree. I'm guessing the node tree is corrupted, so I'm just going to rebuild the node tree from scratch in that character project and hope it doesn't happen again. |
The issue seems to happen specifically with the |
I think I'm running into a similar corruption issue, seems to happen when I try to undo something like adding an image node though I haven't been able to reliably reproduce it. It also affects previous autosaves and incremental saves where they crash immediately when opening Blender. Since it's a Blender bug I guess there's no choice but to wait. In the meantime, does this mean it would be safer to use code based materials for now? For anyone else trying to recover their work, here are the steps I took:
|
It's back 😢 I was working on the same character project file for a bit, it seemed fine. Then I tried to load it about an hour ago and it's crashing on load. It seems to have started occurring in a different node tree. I've appended it out and isolated as before. Blender crashes on trying to load a project after loading this one. I can also crash blender by just simply trying to delete either of the two remaining nodes in the node tree. I was able to get rid of every other node just fine. Are these crashes still being caused by the Line Width Property? I haven't even touched it since starting these projects. But the last thing I did before the crashes started up again was plug that combine node into the main pass out.
Unfortunately, this isn't working for me. Blender crashes upon using the clean up operator. Edit: If I delete the input props on the main pass, I can delete the node, but attempting to delete the combine will still crash. So it looks like it's corrupted too. |
I don't think it's only caused by Line Width, I've had it happen with Image and Color Gradient in node trees where Line Width is not connected. Did you ever undo anything in the node tree? My theory is undo-ing causes something between Blender and Malt to go out of sync, at least from what I understand from one of my Malt crash logs while trying to reproduce the crash by deleting and undo-ing an Image node.
malt 2024-06-15(22-03).log
Try saving the file before running the clean up operation, I had one attempt where though it crashed when running clean up, re-opening the file after the crash showed that the node was deleted. |
I didn't mean to say it can only happen with I've been looking deeper into this and I found a workaround to prevent the crash, but it requires patching Blender itself, and I doubt a workaround like that would be accepted without knowing what causes the corruption in the first place, so I'll have to look further into it. |
👍 Thanks for looking into it! |
I can't figure out the reason why this happens, so this is the best I can do for now: Here's a custom build of Blender 4.1 that should allow you to load corrupted files without crashes This version also prints the name of the corrupted property. For example: I've also updated the Development and Node Groups versions of Malt to fully remove the use of the old Blender's So, long story short:
|
I had to run the patched Blender from Powershell to see the output, this is what I got from 2 separate corrupted files though still haven't found a reliable way to reproduce it Will feedback on the new Malt version later |
So I tried the latest Node Group version, no problems so far. In fact, I don't know if it's my imagination or not, but it seems a little smoother/faster now. |
Unfortunately I got a corrupted file again though it didn't crash while I was working on it but when I reopened the saved file.
|
could we have a custom build of blender 4.2 that fix this bug? My file fail to open again in blender 4.2 |
Here you have it! :) I'm still looking into this, but it's quite tricky to figure out. |
I think I've gotten the file corruption to happen consistently, but it won't cause a crash itself.
After that, the blend file is corrupted and it will crash when loading. |
I can confirm this works for me too, the patched build reports the corrupted property as
@pragma37 I think you've been waiting for this |
Yes! Thank you so much @Teelron! I've been able to set up a super simple reproduction script that doesn't even require Malt: import bpy
C = bpy.context
C.scene["test"] = [1.0,1.0,1.0,1.0]
C.scene.id_properties_ui("test").update(default = [1.0,1.0,1.0,1.0])
C.scene["test"] = 1.0
C.scene.id_properties_ui("test").update(default = 1.0) I'll open a report in the Blender bug tracker and try to find a fix/workaround. |
This is finally fixed! :) Aside from that, I've also implemented a simple workaround on the Malt side, so this should no longer be an issue even in unpatched Blender versions. |
Thanks for the quick fix! And thanks @Teelron for the repro too! |
Malt version
Node Groups
Blender version
Blender 4.1.1
OS
Windows 10
Hardware info
AMD Ryzen Threadripper 1920x 12-Core Processor, 3950 Mhz, 24 Logical Processors | 32GB RAM | NVIDIA GeForce GTX 1080 Ti
Issue description and reproduction steps
I'm not 100% positive that this crash is being caused due to Malt, I can reproduce via this file with factory defaults as well. The node tree was appended out of a project that was crashing on load, I was trying to figure out what was causing the crash and then I happened upon this node tree.
There's some bad nodes in there, I don't think they're the source of the issue, but I couldn't delete them because that'll cause blender to immediately crash.
To reproduce, all you should have to do is open the file and then open a new or different file. Blender should immediately crash.
Attachments
malt 2024-06-10(01-28).log
nodetree bug.crash.txt
nodetree bug.zip
Here's the crash from the character file, maybe it's the same thing.
Corsi Vinifera.crash.txt
The text was updated successfully, but these errors were encountered: