Blender crash when creating node tree links with Python #55020

Closed
opened 2018-05-09 23:18:12 +02:00 by Cody · 18 comments

System Information
Operating system: Windows 10 Home
Graphics card: Intel HD Graphics 505, Intel HD Graphics 2500

Blender Version
Broken: 2.78c, 2.79, 2.79b
Worked: Untested on other Blender versions

Short description of error
When a Python script creates a node tree in bpy.data.node_groups, creates nodes in that tree using node_tree.nodes.new(), and attempts to create a link between nodes using node_tree.links.new(), there is a 5-10% chance that the link creation step fails. During such a failure, Blender crashes, and the console prints Error: EXCEPTION_ACCESS_VIOLATION. This can happen when the script is run from Blender's text editor or from an add-on. This is confirmed to occur in Blender 2.78c, 2.79, and 2.79b on two separate Windows 10 Home computers. It does not occur when running Blender in Ubuntu 17.10 using VirtualBox on those same computers.

Exact steps for others to reproduce the error
Open the attached file Node_Tree_Link_Bug.blend and repeatedly run the Python script named Text. A crash may occur the first time the script is run, or a crash may occur after the script is run several times. It is occasionally necessary to run the script dozens of times before a crash occurs.

Note that the attached file produces two links. When a crash occurs, it almost always (>95% of the time) occurs when the first link is being made, and if the first link is successfully made, then the second one is virtually always made as well. I've only seen the second link cause a crash once out of hundreds of script executions.
Node_Tree_Link_Bug.blend

**System Information** Operating system: Windows 10 Home Graphics card: Intel HD Graphics 505, Intel HD Graphics 2500 **Blender Version** Broken: 2.78c, 2.79, 2.79b Worked: Untested on other Blender versions **Short description of error** When a Python script creates a node tree in bpy.data.node_groups, creates nodes in that tree using node_tree.nodes.new(), and attempts to create a link between nodes using node_tree.links.new(), there is a 5-10% chance that the link creation step fails. During such a failure, Blender crashes, and the console prints Error: EXCEPTION_ACCESS_VIOLATION. This can happen when the script is run from Blender's text editor or from an add-on. This is confirmed to occur in Blender 2.78c, 2.79, and 2.79b on two separate Windows 10 Home computers. It does not occur when running Blender in Ubuntu 17.10 using VirtualBox on those same computers. **Exact steps for others to reproduce the error** Open the attached file Node_Tree_Link_Bug.blend and repeatedly run the Python script named Text. A crash may occur the first time the script is run, or a crash may occur after the script is run several times. It is occasionally necessary to run the script dozens of times before a crash occurs. Note that the attached file produces two links. When a crash occurs, it almost always (>95% of the time) occurs when the first link is being made, and if the first link is successfully made, then the second one is virtually always made as well. I've only seen the second link cause a crash once out of hundreds of script executions. [Node_Tree_Link_Bug.blend](https://archive.blender.org/developer/F3318081/Node_Tree_Link_Bug.blend)
Author

Added subscriber: @bldebg

Added subscriber: @bldebg
Author

This comment was removed by @bldebg

*This comment was removed by @bldebg*

Added subscriber: @RainerTrummer

Added subscriber: @RainerTrummer
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Seems I cant reproduce.
Made several runs in both master and 2.79 (each running the script 100 times)

Does this happen on other computers as well?
Does this happen with Factory settings as well?

Seems I cant reproduce. Made several runs in both master and 2.79 (each running the script 100 times) Does this happen on other computers as well? Does this happen with Factory settings as well?
Author

@lichtwerk

“Does this happen on other computers as well?”

Yes, I confirmed the same exact crashes in 2.78c on a different PC running Windows 10 Home. However, when I run the Blender scripts in Ubuntu 17.10 using VirtualBox on those same computers, the crashes do not happen. I've updated the task description with these details as well.

“Does this happen with Factory settings as well?”

Yes. I uninstalled Blender, deleted Blender's temporary and hidden configuration files, reinstalled 2.79b, and the crashes still happen in the default Blender installation.

Please let me know if there is additional information I can provide to help solve this issue.

@lichtwerk “Does this happen on other computers as well?” Yes, I confirmed the same exact crashes in 2.78c on a different PC running Windows 10 Home. However, when I run the Blender scripts in Ubuntu 17.10 using VirtualBox on those same computers, the crashes do not happen. I've updated the task description with these details as well. “Does this happen with Factory settings as well?” Yes. I uninstalled Blender, deleted Blender's temporary and hidden configuration files, reinstalled 2.79b, and the crashes still happen in the default Blender installation. Please let me know if there is additional information I can provide to help solve this issue.
Member

OK, seems like a Windows issue then (I'm on linux as well).
Someone here on Windows can reproduce?

OK, seems like a Windows issue then (I'm on linux as well). Someone here on Windows can reproduce?

Added subscriber: @ErickNyanduKabongo

Added subscriber: @ErickNyanduKabongo

I tried this on win 7 gtx 550ti master hash d5c1c0b, every things seems okay, I run the script till my Mem was 50.90M i don't remember how many times but more than needed :)

I tried this on win 7 gtx 550ti master hash d5c1c0b, every things seems okay, I run the script till my Mem was 50.90M i don't remember how many times but more than needed :)
Author

Video of the error: https://www.dropbox.com/s/zvw4c1v78n55wef/Blender_Tree_Link_Bug.mp4?dl=0

I can provide any additional information that anything thinks is useful in solving this bug.

Video of the error: https://www.dropbox.com/s/zvw4c1v78n55wef/Blender_Tree_Link_Bug.mp4?dl=0 I can provide any additional information that anything thinks is useful in solving this bug.

Added subscriber: @DarioMambro

Added subscriber: @DarioMambro

Added subscriber: @ZedDB

Added subscriber: @ZedDB

Is this still an issue if you use the latest intel drivers?

Is this still an issue if you use the latest intel drivers?
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Jacques Lucke self-assigned this 2019-03-07 15:34:22 +01:00
Member

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

Added subscriber: @mauromazzei

Added subscriber: @mauromazzei

I've tested the project file on 2.8.1 and 2.8.2 on Windows 10 and still crash.
On OSX is working without any problem....

I've tested the project file on 2.8.1 and 2.8.2 on Windows 10 and still crash. On OSX is working without any problem....
Sign in to join this conversation.
No Milestone
No project
No Assignees
8 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#55020
No description provided.