Segmentation Fault in Ubuntu

So it seems I can compile Blender 2.5 ok because the scons output ends with
“scons: done building targets.” but when I launch blender (./blender) I get this

found bundled python: /home/linuxbox/blender25-svn/install/linux2/.blender/python
Traceback (most recent call last):
File “/home/linuxbox/blender25-svn/install/linux2/.blender/ui/buttons_objects.py”, line 172, in <module>
bpy.types.register(OBJECT_PT_context_object)
TypeError: validating class error: enum “BUTTONS_WINDOW” not found in (‘EMPTY’, ‘VIEW_3D’, ‘GRAPH_EDITOR’, ‘OUTLINER’, ‘PROPERTIES’, ‘FILE_BROWSER’, ‘IMAGE_EDITOR’, ‘INFO’, ‘SEQUENCE_EDITOR’, ‘TEXT_EDITOR’, ‘AUDIO_WINDOW’, ‘DOPESHEET_EDITOR’, ‘NLA_EDITOR’, ‘SCRIPTS_WINDOW’, ‘TIMELINE’, ‘NODE_EDITOR’, ‘LOGIC_EDITOR’, ‘CONSOLE’, ‘USER_PREFERENCES’)
unable to import /home/linuxbox/blender25-svn/install/linux2/.blender/ui/buttons_objects
Traceback (most recent call last):
File “/home/linuxbox/blender25-svn/install/linux2/.blender/ui/buttons_physic_cloth.py”, line 195, in <module>
bpy.types.register(PHYSICS_PT_cloth)
TypeError: validating class error: enum “BUTTONS_WINDOW” not found in (‘EMPTY’, ‘VIEW_3D’, ‘GRAPH_EDITOR’, ‘OUTLINER’, ‘PROPERTIES’, ‘FILE_BROWSER’, ‘IMAGE_EDITOR’, ‘INFO’, ‘SEQUENCE_EDITOR’, ‘TEXT_EDITOR’, ‘AUDIO_WINDOW’, ‘DOPESHEET_EDITOR’, ‘NLA_EDITOR’, ‘SCRIPTS_WINDOW’, ‘TIMELINE’, ‘NODE_EDITOR’, ‘LOGIC_EDITOR’, ‘CONSOLE’, ‘USER_PREFERENCES’)
unable to import /home/linuxbox/blender25-svn/install/linux2/.blender/ui/buttons_physic_cloth
Segmentation fault

I’m assuming that I have something incorrect with my python install but I am unsure. Can anyone point me in the right direction? This was working within the last few weeks.

Normally I would ask at #blendercoders but I do not have access at work.
note: when I do a python -v I get
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2

Thanks,

you need python 3.1 to compile blender 2.5 and since it’s not in ubuntu 9.04 you need to compile python 3.1 on yourself or add the ubuntu 9.10 dev pakages to your software list or simply search the forum… there are more topics like this :stuck_out_tongue:

Your running a new blender with older scripts “BUTTONS_WINDOW” was renamed to “PROPERTIES”

Very much true. I deleted my build and install directories and built again and those issues when away but I still get the segmentation fault error. I should have mentioned that I do have python 3.1.1 installed in /usr/libs/.

Python 3.1.1 (r311:74480, Aug 20 2009, 19:54:00)
[GCC 4.3.3] on linux2

Currently when I try to run Blender I get this:
found bundled python: /home/linuxbox/blender25-svn/install/linux2/.blender/python
Segmentation fault

I’ve grabbed a build from graphicall to see if I get the same results from a build there which I do not but it doesn’t run either. I downloaded the build edi did on the 20th and I get this when I try to run.

./blender: symbol lookup error: ./blender: undefined symbol: PyUnicodeUCS4_FromString

I don’t care to get the build from graphicall to run but I added the error as it might indicate the issue. Maybe I built the wrong version of python? Is there any more information that would be useful? By the way, thank you for the help.

re: graphicall
./blender: symbol lookup error: ./blender: undefined symbol: PyUnicodeUCS4_FromString
Python can be built with 2byte or 4byte UTF support, For portable blender’s python should be statically linked.

re: segfault, try running blender with gdb. eg.
gdb ./blender
(“r” key, enter,… wait for segfault, “bt”, enter… post errors)

Well I learn a little each day. I knew nothing of gdb… Here is the output:
found bundled python: /home/linuxbox/blender25-svn/install/linux2/.blender/python
[New Thread 0x7faa8295d710 (LWP 11299)]
[New Thread 0x7faa6fdd2950 (LWP 11306)]
[Thread 0x7faa6fdd2950 (LWP 11306) exited]
[New Thread 0x7faa6fdd2950 (LWP 11307)]
[New Thread 0x7faa6f5d1950 (LWP 11308)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7faa8295d710 (LWP 11299)]
0x0000000000921130 in BKE_ptcache_id_time ()
Current language: auto; currently asm
(gdb) bt
#0 0x0000000000921130 in BKE_ptcache_id_time ()
#1 0x00000000009c2a09 in smokeModifier_do ()
#2 0x000000000096008a in smokeModifier_deformVerts ()
#3 0x0000000000976c8f in mesh_calc_modifiers ()
#4 0x0000000000977604 in mesh_build_data ()
#5 0x00000000009f16d3 in object_handle_update ()
#6 0x000000000069a6c9 in wm_event_do_notifiers ()
#7 0x000000000069a830 in WM_main ()
#8 0x0000000000696a0f in main ()

Nortmobile, can you upload the blendfile?, then I can see the exact line in BKE_ptcache_id_time that fails.

Yeah so it was my b25.blend file in my home directory. I just deleted it and Tada! it started to work. Thank you very much. When I saw the output from gdb figured it was from the default blend file which I thought was in the tmp directory but it is actually in the home directory of my user. What can I say, I’m new to linux. The b25.blend file had a scene setup with smoke and particles already defined in it and once I saw where the segmentation fault was occuring I figured that was the issue. Thank you very much! I can now continue on with my “oh new feature!..build…run… oh, that’s awesome!..now if I only had talent” endevors. Thank you for your time.

Um I could not find a way on my site to do a simple link. Let me know if you want me to place it somewhere else. i do have a bug tracker username but I am unable to find a good spot for it.
http://www.osstesters.com/LinkClick.aspx?fileticket=Uriej3vTHPc%3D&tabid=62
(Please don’t mind the web site, it’s a work in progress…)