Memory corruption when starting Game Engine

Hi

I am building a little scenario for Blender’s Game Engine.
I’m using Ubuntu 10.10.
But whenever I press P to start the Game Engine, Blender crashes with this message (in the Terminal):

Detected GL_ARB_texture_env_combine
Detected GL_ARB_texture_cube_map
Detected GL_ARB_multitexture
Detected GL_ARB_shader_objects
Detected GL_ARB_vertex_shader
Detected GL_ARB_fragment_shader
Detected GL_ARB_vertex_program
Detected GL_ARB_depth_texture
Detected GL_EXT_separate_specular_color
*** glibc detected *** ./blender: malloc(): memory corruption: 0x0000000007c3fad0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x774b6)[0x7f18796124b6]
/lib/libc.so.6(cfree+0x73)[0x7f1879618c83]
./blender(_Z14BL_ConvertMeshP4MeshP6ObjectP8KX_SceneP24KX_BlenderSceneConverter+0x19c9)[0xf4c3d9]
./blender[0xf4c8c6]
./blender(_Z24BL_ConvertBlenderObjectsP4MainP8KX_SceneP15KX_KetsjiEngine15e_PhysicsEngineP16RAS_IRenderToolsP11RAS_ICanvasP24KX_BlenderSceneConverterb+0x595)[0xf4d945]
./blender(_ZN24KX_BlenderSceneConverter12ConvertSceneEP8KX_SceneP16RAS_IRenderToolsP11RAS_ICanvas+0xb1)[0xf3dea1]
./blender(StartKetsjiShell+0x894)[0xf35754]
./blender[0x9f4135]
./blender[0x9c05ae]
./blender[0x9c0c45]
./blender[0x9c13a5]
./blender(wm_event_do_handlers+0x40a)[0x9c1e8a]
./blender(WM_main+0x18)[0x9b6958]
./blender(main+0x992)[0x9b35a2]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7f18795b9d8e]
./blender[0x9b29d9]
======= Memory map: ========
00400000-01ea7000 r-xp 00000000 00:14 261140                             /home/basti/blender25/blender
020a6000-020d0000 r--p 01aa6000 00:14 261140                             /home/basti/blender25/blender
020d0000-02589000 rw-p 01ad0000 00:14 261140                             /home/basti/blender25/blender
02589000-02605000 rw-p 00000000 00:00 0 
02c64000-0842f000 rw-p 00000000 00:00 0                                  [heap]
7f185c000000-7f185c0b4000 rw-p 00000000 00:00 0 
7f185c0b4000-7f1860000000 ---p 00000000 00:00 0 
7f1861e9b000-7f186229c000 rw-s 00000000 00:04 25527                      /dev/zero (deleted)
7f186229c000-7f186229d000 ---p 00000000 00:00 0 
7f186229d000-7f1862a9d000 rw-p 00000000 00:00 0 
7f1862a9d000-7f1862a9e000 ---p 00000000 00:00 0 
7f1862a9e000-7f186394f000 rw-p 00000000 00:00 0 
7f1863bff000-7f1864000000 rw-s 00000000 00:04 25518                      /dev/zero (deleted)
7f1864000000-7f1864225000 rw-p 00000000 00:00 0 
7f1864225000-7f1868000000 ---p 00000000 00:00 0 
7f18682b6000-7f18684b6000 rw-s 0a0fb000 00:05 9843                       /dev/ati/card0
7f18684b6000-7f18686b6000 rw-s 0a0f3000 00:05 9843                       /dev/ati/card0
7f18686b6000-7f18687b6000 rw-s 0a0ed000 00:05 9843                       /dev/ati/card0
7f1868942000-7f1868a43000 rw-s 00000000 00:04 25526                      /dev/zero (deleted)
7f1868a43000-7f1868b44000 rw-s 00000000 00:04 25525                      /dev/zero (deleted)
7f1868b44000-7f1868b7a000 r-xp 00000000 00:14 432603                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/pyexpat.so
7f1868b7a000-7f1868d79000 ---p 00036000 00:14 432603                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/pyexpat.so
7f1868d79000-7f1868d7c000 r--p 00035000 00:14 432603                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/pyexpat.so
7f1868d7c000-7f1868d7e000 rw-p 00038000 00:14 432603                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/pyexpat.so
7f1868d7e000-7f1868d87000 r-xp 00000000 00:14 432589                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/array.so
7f1868d87000-7f1868f86000 ---p 00009000 00:14 432589                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/array.so
7f1868f86000-7f1868f87000 r--p 00008000 00:14 432589                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/array.so
7f1868f87000-7f1868f8a000 rw-p 00009000 00:14 432589                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/array.so
7f1868f8a000-7f1868f96000 r-xp 00000000 00:14 432639                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_socket.so
7f1868f96000-7f1869195000 ---p 0000c000 00:14 432639                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_socket.so
7f1869195000-7f1869196000 r--p 0000b000 00:14 432639                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_socket.so
7f1869196000-7f186919a000 rw-p 0000c000 00:14 432639                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_socket.so
7f186919a000-7f18691bd000 r-xp 00000000 00:14 432621                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_ctypes.so
7f18691bd000-7f18693bc000 ---p 00023000 00:14 432621                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_ctypes.so
7f18693bc000-7f18693bd000 r--p 00022000 00:14 432621                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_ctypes.so
7f18693bd000-7f18693c1000 rw-p 00023000 00:14 432621                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_ctypes.so
7f18693c1000-7f18693c2000 rw-p 00000000 00:00 0 
7f18693c2000-7f18693c7000 r-xp 00000000 00:14 432612                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/zlib.so
7f18693c7000-7f18695c6000 ---p 00005000 00:14 432612                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/zlib.so
7f18695c6000-7f18695c7000 r--p 00004000 00:14 432612                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/zlib.so
7f18695c7000-7f18695c9000 rw-p 00005000 00:14 432612                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/zlib.so
7f18695c9000-7f18695cf000 r-xp 00000000 00:14 432628                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_json.so
7f18695cf000-7f18697cf000 ---p 00006000 00:14 432628                     /home/basti/blender25/2.57/python/lib/python3.2/lib-dynload/_json.soAbgebrochen

or the same with

double free or corruption (!prev)

instead of malloc.

Tested the file on another Ubuntu System(11.04). There it just produces a Seg Fault, but deleting a few certain Objects makes it run without Problems. Deleting the same files on my System doesn’t help.
Deleting ALL objects in this Scene makes it run. Other Blend-files work perfect, it’s only this one.

I don’t know if this can be fixed somehow.
Thanks for your help

Attachments

MemoryCorruption.blend (1.29 MB)

but deleting a few certain Objects makes it run without Problems
And those certain objects are?
Have you tried with the latest version of blender.

I’ve tried with all my versions of Blender(5 or 6 different versions), one is always up to Date.
The objects I deleted are the sink, the sink valve , the kitchen_board with its doors, both dishwasher_grids and the dishwasher_door

I have updated my Ubuntu to 11.04 but still no improvements. I would appreciate any help

EDIT:
In the mean while I’ve tested the File on a few Windows Systems. When I try to load the original File (with all objects in it), blender complains about the file not being a blend-file. With these certain objects deleted (like the file I’ve uploaded) it works fine except blender crashes whenever I want to quit the game engine.

Meanwhile I tested this file a bit more on Windows.
Starting the GameEngine in Textured Mode works, but crashes when I want to quit the GE.
Starting it in any other display mode I can quit the GE but all inactive windows in blender (I mean outliner etc.) turn completely white. When I want to start it a second time, blender crashes immediatly (even before the Terminal says ‘Game Engine started’).
This does not occur on my Linux.

BTW, are there some Blender developers in this forum. I think this could be of note.

Seems like I found the problem. The chairs were causing the malloc.
The SegFault seems to appear when you use an array modifier with start and end cap.