Open sgpinkus opened 8 years ago
Hey, the problem seems to be with your GL setup. There are various things that look a bit weird with this backtrace like the window pointers being NULL for example. Another one is that I see you are building Cinder under root which I wouldn't consider as the best option in general for various reasons. Is there a rationale behind this decision and not running as a normal user ?? The reason that it segfaults is because the strVersion
pointer on the first stack frame is NULL which means that glload for some reason blows up in your system..
A bit more background on your setup ( GL configuration, graphics card and drivers version, output of glxinfo
) together with the output of CMake during configuration of both Cinder and the sample app would probably give more hints about the root of the problem.
Hi Thanks for the feedback. The reason for the root is basically I'm lazy. I don't have bare metal to put Ubuntu15 on and my my native OS (Debian7) is missing some of the deps. Didn't bother creating a new user account since VM is more or less throw away for testing.
I'm still trying to get it to work but decided to shift my efforts to trying to learn how to program in VS (ARGH!) as it's a bit pressing. I will comment back if I figure it out.
If you're trying to run on a VM, only VMWare is known to work with Cinder. VirtualBox curently doesn't support the necessary OpenGL profile or Cinder. You can find a full set of instructions on how to get going with VMWare here: https://github.com/chaoticbob/Cinder/wiki/Cinder-for-Linux-on-VMWare
Just to note, I tried to build on a bare metal Debian 8 (close enough to Ubuntu 15) and got exactly the same error. Will have to try Ubuntu 15 to be sure I guess.
sam@acerbox:~/cinder/Cinder/samples/BasicApp/linux$ uname -a Linux acerbox 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux sam@acerbox:~/cinder/Cinder/samples/BasicApp/linux$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.1 (jessie) Release: 8.1 Codename: jessie
It sounds like what @PetrosKataras mentioned: the OpenGL driver isn't setup to handle core profile. Can you post the results of this (case sensitive):
glxinfo | grep OpenGL
$ glxinfo | grep OpenGL libGL error: failed to authenticate magic 9 libGL error: failed to load driver: i965 OpenGL vendor string: VMware, Inc. OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.5, 128 bits) OpenGL version string: 3.0 Mesa 10.3.2 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions:
I also get that "libGL error: failed to load driver: i965" when I run a basic Open GL example application, but the application still runs.
I know that Cinder does not officially support Linux, but there are instructions available on this github. Builds fine but the segfaults:
strchr.S
... need to have linux source available?Also I have to suspect this issue has been raised before but I could not find it so apologies if duplicating.