wolftype / versor

Versor Geometric Algebra Library
wolftype.github.io/versor/devel/html/
290 stars 47 forks source link

GFX gui segfaults on ubuntu 14.04, nvidia-346 #7

Open tingelst opened 9 years ago

tingelst commented 9 years ago

The examples with a call to gui() in setup() segfaults on ubuntu 14.04 with nvidia-346 driver. I have debugged it down to the 3rd call to OnDraw() in gfx_control.h.

Tested with xFabrikChain.cpp

Seems like a problem with mWindowEventHandlers

The examples compile and run when the call to gui is commented out. Examples in glv also compiles and run.

wolftype commented 9 years ago

There was an issue which made me realize I am not building glv in the buildAll.sh script. I don't think this is causing the bug, but it theoretically could be, if a different version of glv is installed on the machine. to be sure the glv library is built with the same headers that are referenced run

cd versor
make -C ext/glv

I think you mentioned earlier though that glv is running fine from within ext/glv so it must in gfx/util/gfx_gui.h where the gui struct is defined or gfx_control.h as you mentioned.

cbames commented 8 years ago

I'm having the same problem. "make -C ext/glv " is in buildAll.sh

probably of no help, but here's what valgrind had to say when I ran "valgrind ./test_units":

==27257== Jump to the invalid address stated on the next line ==27257== at 0x0: ??? ==27257== by 0x9429290: init (dlerror.c:177) ==27257== by 0x94296D6: _dlerror_run (in /lib/x86_64-linux-gnu/libdl-2.19.so) ==27257== by 0x9429197: dlsym (dlsym.c:70) ==27257== by 0x5477C4D: ??? (in /usr/lib/nvidia-346/libGL.so.346.82) ==27257== by 0x545ABB5: ??? (in /usr/lib/nvidia-346/libGL.so.346.82) ==27257== by 0x40100FC: call_init.part.0 (dl-init.c:64) ==27257== by 0x4010222: _dl_init (dl-init.c:36) ==27257== by 0x4001309: ??? (in /lib/x86_64-linux-gnu/ld-2.19.so) ==27257== Address 0x0 is not stack'd, malloc'd or (recently) free'd

cbames commented 8 years ago

my laptop using the noveua driver builds no problem however.