Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tingelst opened this issue Aug 10, 2015 · 3 comments
Open

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

tingelst opened this issue Aug 10, 2015 · 3 comments

Comments

@tingelst
Copy link
Contributor

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
Copy link
Owner

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
Copy link

cbames commented Sep 30, 2015

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
Copy link

cbames commented Sep 30, 2015

my laptop using the noveua driver builds no problem however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants