chrono icon indicating copy to clipboard operation
chrono copied to clipboard

ubuntu demo segmentation fault (core dumped)

Open noahzn opened this issue 5 years ago • 3 comments

I followed this page to build chrono: http://api.projectchrono.org/development/tutorial_install_chrono.html

When I finished building successfully, I tried to run demos in build/bin/. But got error:

demo_collision_2d

> > Irrlicht Engine version 1.8.4
> > Linux 4.15.0-74-generic #83~16.04.1-Ubuntu SMP Wed Dec 18 04:56:23 UTC 2019 x86_64
> > Using plain X visual
> > This driver is not available in Linux. Try OpenGL or Software renderer.
> > Cannot use default video driver - fall back to OpenGL 
> > Irrlicht Engine version 1.8.4
> > Linux 4.15.0-74-generic #83~16.04.1-Ubuntu SMP Wed Dec 18 04:56:23 UTC 2019 x86_64
> > Using renderer: OpenGL 4.6.0
> > GeForce GTX 1070/PCIe/SSE2: NVIDIA Corporation
> > OpenGL driver version is 1.2 or better.
> > GLSL version: 4.6
> > Loaded texture: /home/noah/Documents/lib/chrono/build/data/fonts/arial80.bmp
> > Segmentation fault (core dumped)
> 

Any idea? Thanks in advance.

noahzn avatar Jan 19 '20 20:01 noahzn

What version of GCC are you using?

rserban avatar Feb 01 '20 09:02 rserban

What version of GCC are you using?

Hi rserban, I'm using 7.4.0

noahzn avatar Feb 01 '20 18:02 noahzn

Assuming you also use an appropriate version of Eigen (what is it by the way?), it's difficult to say where the problem is. A couple of suggestions:

  1. compile the code in debug mode and run it through gdb
  2. use valgrind

Please let us know what the results of these are. Also, please post your CMakeCache.txt file.

rserban avatar Feb 03 '20 17:02 rserban