First, I would like to state that this may be related to bug #22557:
https://projects.blender.org/tracker/index.php?func=detail&aid=22557&group_id=9&atid=498Whenever I try to open a file from python, I get a segfault. More specifically, here is the output:
leif@leif-laptop:~$ ./blender-svn/official-build/bin/blender
found bundled python: /home/leif/blender-svn/official-build/bin/.blender/python
read blend: /home/leif/leif-blends/pawns.blend
Traceback (most recent call last):
File "/home/leif/blender-svn/official-build/bin/.blender/scripts/ui/space_console.py", line 130, in execute
return execute(context)
File "/home/leif/blender-svn/official-build/bin/.blender/scripts/op/console_python.py", line 144, in execute
bpy.ops.console.scrollback_append(text=sc.prompt + line, type='INPUT')
File "/home/leif/blender-svn/official-build/bin/.blender/scripts/modules/bpy/ops.py", line 158, in __call__
ret = op_call(self.idname_py(), C_dict, kw)
SystemError: Operator bpy.ops.console.scrollback_append.poll() failed, context is incorrect
Segmentation fault
I have uploaded a file that segfaults for me, in case not all files will do this.
So, to duplicate:
1. Download pawns.blend and put it in directory foo.
2. Start up blender, and go to the python console
3. In the console type: "bpy.ops.wm.open_mainfile(filepath="foo/pawns.blend")