Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#24009] Crash when switching area types and performing ops
Date:
2010-09-26 21:26
Priority:
3
State:
Closed
Submitted by:
Tom Edwards (
artfunkel
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Crash when switching area types and performing ops
Detailed description
The following code will crash Blender:
bpy.context.area.type = 'GRAPH_EDITOR'
# (Graph ops calls, or nothing)
bpy.context.area.type = 'VIEW_3D'
bpy.ops.view3d.view_selected() # crash
See attached blend. Happens in 2.54 x64 and latest SVN x86. I'm on Windows 7 x64.
Followup
Message
Date
: 2010-09-27 01:47
Sender
:
Nathan Letwory
Context is to be used in layout and operators, I doubt the snippet is even supposed to work. Nevertheless, Blender shouldn't crash. Assigning to our python guru.
Date
: 2010-09-27 12:45
Sender
:
Campbell Barton
also tested every view3d operator to make sure none crash. (found ~7 or so more cases like this).
fixed r32149.
Date
: 2010-09-30 17:07
Sender
:
Campbell Barton
opening again, this fix messed up the menus.
Date
: 2010-09-30 21:27
Sender
:
Brecht Van Lommel
The menu problem can be fixed by setting layout.operator_context = 'INVOKE_REGION_WIN'.
Date
: 2010-11-04 17:15
Sender
:
Campbell Barton
fixed in svn r32868, closing.
Attached Files:
Name
Date
Download
crash.blend
2010-09-26 21:26
Download
Changes:
Field
Old Value
Date
By
Resolution
Investigate
2010-11-04 17:15
campbellbarton
close_date
2010-11-04 17:15
2010-11-04 17:15
campbellbarton
status_id
Open
2010-11-04 17:15
campbellbarton
Resolution
Fixed
2010-09-30 17:07
campbellbarton
status_id
Closed
2010-09-30 17:07
campbellbarton
Resolution
New
2010-09-27 12:45
campbellbarton
close_date
2010-09-27 12:45
2010-09-27 12:45
campbellbarton
status_id
Open
2010-09-27 12:45
campbellbarton
Resolution
None
2010-09-27 01:47
jesterking
assigned_to
none
2010-09-27 01:47
jesterking
File Added
12880: crash.blend
2010-09-26 21:26
artfunkel