Python: accessing DriverVariable targets causes segmentation violation #21057
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#21057
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
%%%
Python: accessing DriverVariable targets causes segmentation violation
build 26658
Ubuntu 64 bit
-------------- Python file -----------
import bpy
ob = bpy.context.object
print(ob)
adata = ob.animation_data
print(adata)
drivers = adata.drivers
print(drivers)
for fcurve in drivers:
print(fcurve)
driver = fcurve.driver
print(driver)
vars = driver.variables
print(vars)
for var in vars:
print(var.name)
print(var.type)
print(var.targets)
for targ in var.targets:
print("Print target")
print(targ)
-------- Output ----------
[BPy_StructRNA "Object" -> "rig"]
[BPy_StructRNA "AnimData"]
[BPy_PropertyRNA "AnimData" -> "drivers"]
[BPy_StructRNA "FCurve"]
[BPy_StructRNA "Driver"]
[BPy_PropertyRNA "Driver" -> "variables"]
hinge
SINGLE_PROP
[BPy_PropertyRNA "DriverVariable" -> "targets"]
Segmentation fault
%%%
Changed status to: 'Open'
%%%Closed duplicate report:
[#21054] Python: accessing color ramp causes segmentation violation
https://projects.blender.org/tracker/index.php?func=detail&aid=21054&group_id=9&atid=498
Both of these bugs are caused when trying to iterate over collections that are defined as arrays in the sdna code.
Assigning our Python wrangler-master, Campbell :)
%%%
%%%fixed in svn r26745. nice find :)%%%
Changed status from 'Open' to: 'Resolved'