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 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
StatusIncomplete2012-10-02 04:42campbellbarton
status_idOpen2012-10-02 04:42campbellbarton
close_dateNone2012-10-02 04:42campbellbarton
assigned_tonone2012-09-29 14:24campbellbarton
StatusNew2012-09-29 14:24campbellbarton
File Added22203: armat.blend2012-09-29 11:06vagran
File Added22204: system-info.txt2012-09-29 11:06vagran