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'.
 

Attached Files:

Name Date Download
crash.blend 2010-09-26 21:26 Download

Changes:

Field Old Value Date By
ResolutionInvestigate2010-11-04 17:15campbellbarton
close_date2010-11-04 17:152010-11-04 17:15campbellbarton
status_idOpen2010-11-04 17:15campbellbarton
ResolutionFixed2010-09-30 17:07campbellbarton
status_idClosed2010-09-30 17:07campbellbarton
ResolutionNew2010-09-27 12:45campbellbarton
close_date2010-09-27 12:452010-09-27 12:45campbellbarton
status_idOpen2010-09-27 12:45campbellbarton
ResolutionNone2010-09-27 01:47jesterking
assigned_tonone2010-09-27 01:47jesterking
File Added12880: crash.blend2010-09-26 21:26artfunkel