[Fluxus] Master crashes on running of (build-cube)

Stephen Halter halter73 at gmail.com
Sun Apr 26 11:00:05 PDT 2009


I tried this code with similar results as before. Backtrace:

SIGSEGV fault on (nil)

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f8821c87790 (LWP 13090)]
0x00007f881e6b2fb5 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007f881e6b2fb5 in raise () from /lib/libc.so.6
#1  0x00007f881e6b4bc3 in abort () from /lib/libc.so.6
#2  0x00007f882159b481 in fault_handler (sn=<value optimized out>,
si=0x7fff29e82b70, ctx=<value optimized out>)
    at ./sighand.c:49
#3  <signal handler called>
#4  0x00000000408afa0e in ?? ()
#5  0x0000000040677000 in ?? ()
#6  0x00007f8816252230 in ?? ()
#7  0x000000000000000d in ?? ()
#8  0x000000000000024b in ?? ()
#9  0x00007f881d33c90c in ?? () from /usr/lib/libGLcore.so.1
#10 0x00007f881a3f2d5d in Fluxus::PolyPrimitive::Render
(this=0x1fb7b70) at libfluxus/src/PolyPrimitive.cpp:176
#11 0x00007f881a411d83 in Fluxus::SceneGraph::RenderWalk
(this=0x1ec77b8, node=0x1fb6b80, depth=0, cameracode=1,
    shadowgen=0x1ec7898, rendermode=Fluxus::SceneGraph::RENDER) at
libfluxus/src/SceneGraph.cpp:94
#12 0x00007f881a411e0a in Fluxus::SceneGraph::Render (this=0x1ec77b8,
shadowgen=0x1ec7898, camera=<value optimized out>,
    rendermode=Fluxus::SceneGraph::RENDER) at libfluxus/src/SceneGraph.cpp:43
#13 0x00007f881a4104d3 in Fluxus::Renderer::Render (this=0x1ec7710) at
libfluxus/src/Renderer.cpp:138
#14 0x00007f881a3b0633 in fluxus_render (argc=<value optimized out>, argv=0x0)
    at modules/fluxus-engine/src/FluxusEngine.cpp:149
#15 0x00007f881847e1d7 in ?? ()
#16 0x00007f881b36c008 in ?? ()
#17 0x00007f88160aeaea in ?? ()
#18 0x00007fff00000000 in ?? ()
#19 0x0000000000000005 in ?? ()
#20 0x0000000000000001 in ?? ()
#21 0x00007f8821842d58 in scheme_multiple_values () from
/usr/local/lib/libmzscheme3m-4.1.5.so
#22 0x00007f88218114a0 in disappeared_binding_symbol () from
/usr/local/lib/libmzscheme3m-4.1.5.so
#23 0x0000000000000000 in ?? ()

In trying out your code, I found that just typing the following into
the REPL was enough to cause the crash:
(define p (build-sphere 10 10))
This and others would cause a similar crash:
(define p (draw-cube))

libfluxus/src/PolyPrimitive.cpp:176, seems to be the common
denominator in all the crashes, though depending on the command the
stack bellow it might be slightly different.

I was wondering if the fact that I get this output while configuring
the build might make a difference.
Checking for C function dInitODE2()... no

Thanks for all your help,
Stephen Halter


On Sun, Apr 26, 2009 at 7:03 AM, Dave Griffiths <dave at pawfal.org> wrote:
> On Sun, 2009-04-26 at 11:40 +0200, gabor papp wrote:
>> > I'm not sure it really does but I've added what I've got.  Maybe it
>> > means more to you than it does to me.
>> it seems to be the same crash what Stephen is getting. it crashes on
>> glDrawArrays, so i suspect there is some subtle bug in fluxus that
>> causes this behaviour.
>>
>
> Yes. A similar sounding thing was happening a while back - vertex array
> counts not matching the expected primitive type, e.g. for quads
> vert-count % 4 != 0, if you see what I mean. I added checks for this,
> but maybe there are other similar cases.
>
> Another possibility is some state mess up with glEnableClientState();
> for colour/normal/etc arrays.
>
> The fact that this happens with any poly primitive is interesting
> though.
>
> Could you try this:
>
> (clear)
> (define p (build-sphere 10 10))
>
> (with-primitive p
>    (poly-convert-to-indexed))
>
> Indexed polys don't use glDrawArrays, might narrow it down...
>
> cheers,
>
> dave
>
>



More information about the Fluxus mailing list