Page MenuHome

Crash when bmesh operation called from within a Panel draw()
Closed, ResolvedPublic

Description

--- Operating System, Graphics card ---

Windows 7
nvidia Titan

--- Blender version with error, and version that worked ---

2.66.5 revision 56275

--- Short description of error ---

Blender crashes when i create a panel with following function call in its draw() function:

bm = bmesh.from_edit_mesh(context.edit_object.data)

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---

The problem occurs only when i create a new object. when i store the blend file
and later reload it in blender then the error does not occur. Therefor i could not prepare
a blend file that immediately shows the error.

However i have attached a blend file wich prepares as much as possible and a detailed
instruction how the problem can be reproduced (on windows at least)

Here are the steps for reproduction (also included in the blend file)

1.) Run the script in the attached blend file to add the new Panel "BMesh Test"
2.) Create a cube
3.) Add a subdivision modifier (4 subdivisions)
4.) Add the standard Seams for a Cube
5.) Apply the modifier
6.) "u" -> unwrap (defautl unwrap)
7.) in UV editor "g" and move the mesh

And here is a screencast to demonstrate what happens:

http://www.youtube.com/watch?v=DLjpFVXl--s&feature=youtu.be

Event Timeline

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Apr 29 2013, 10:21 PM