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
[#32692] Crash on Python console autocompletion
Date:
2012-09-29 11:06
Priority:
3
State:
Closed
Submitted by:
Artyom Lebedev (
vagran
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Won't-Fix / Closed
Relates to:
Duplicates:
Patches:
Summary:
Crash on Python console autocompletion
Detailed description
Crash sometimes occurs when using Python console autocompletion. I did not managed to find exact reproduction scenarios, crashes occur spontaneously. Hope fault location will help:
blender[3648] general protection ip:1070205 sp:7fffdae10930 error:0 in blender[400000+3a26000]
System info file and loaded model file attached.
Followup
Message
Date
: 2012-09-29 14:24
Sender
:
Campbell Barton
This is not enough info to redo the crash.
You need to give steps to redo the crash, even if it happens only one in 10 times, the steps you go through to get the crash to happen are really important.
marking as incomplete.
Date
: 2012-10-01 12:52
Sender
:
Sebastian Nell
i can confirm (random?) crashes on auto-complete, but not provide any steps to reproduce it either.
IIRC, it happened for me when auto-completing variable attributes, and the variable was a ref to blender data, like:
var = bpy.context.object
# do stuff here
var.<strg+spacebar> CRASH
the problem might have to do with a context, that changes over time, and accessing attributes might try to read from invalid memory address - but it's just a wild guess
Date
: 2012-10-02 04:42
Sender
:
Campbell Barton
This is likely invalid memory access: see
http://www.blender.org/documentation/blender_python_api_2_63_release/info_gotcha.html#edit-mode-memory-access
there is a cmake build time option that checks for this but slows down blender/python execution too. - WITH_PYTHON_SAFETY
closing. can re-open if you find steps to redo which are not accessing freed data (which is known limitation)
Date
: 2012-10-02 14:04
Sender
:
Sebastian Nell
pretty sure it's invalid memory access:
Edit mode:
>>> p=bpy.context.object.data.polygons[0]
>>> p
bpy.data.meshes['Cube'].polygons[0]
Object mode
>>> p
bpy.data.meshes['Cube'].polygons[-292049]
auto-completing p does crash blender, as the reference is bad. So we just need to be careful with vars which refer to geometry and have been assigned in edit mode.
Attached Files:
Name
Date
Download
armat.blend
2012-09-29 11:06
Download
system-info.txt
2012-09-29 11:06
Download
Changes:
Field
Old Value
Date
By
Status
Incomplete
2012-10-02 04:42
campbellbarton
status_id
Open
2012-10-02 04:42
campbellbarton
close_date
None
2012-10-02 04:42
campbellbarton
assigned_to
none
2012-09-29 14:24
campbellbarton
Status
New
2012-09-29 14:24
campbellbarton
File Added
22203: armat.blend
2012-09-29 11:06
vagran
File Added
22204: system-info.txt
2012-09-29 11:06
vagran