Blender crash when creating node tree links with Python #55020
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#55020
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Added subscriber: @bldebg
This comment was removed by @bldebg
Added subscriber: @RainerTrummer
Added subscriber: @lichtwerk
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?
@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.
OK, seems like a Windows issue then (I'm on linux as well).
Someone here on Windows can reproduce?
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 :)
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: @ZedDB
Is this still an issue if you use the latest intel drivers?
Added subscriber: @JacquesLucke
Changed status from 'Open' to: 'Archived'
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
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....