Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Jakob Flierl

When I run bpp (built with make -f Makefile.Debug) in gdb on Debian / Jessie, I see this:

(gdb) r
Starting program: /home/koppi/tmp/bpp/bpp 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1d7ecdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt
#0  0x00007ffff1d7ecdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1  0x00007ffff7dea9ba in call_init (l=<optimized out>, argc=argc@entry=1, 
    argv=argv@entry=0x7fffffffebd8, env=env@entry=0x7fffffffebe8)
    at dl-init.c:78
#2  0x00007ffff7deaaa3 in call_init (env=0x7fffffffebe8, argv=0x7fffffffebd8, 
    argc=1, l=<optimized out>) at dl-init.c:36
#3  _dl_init (main_map=0x7ffff7ffe1a8, argc=1, argv=0x7fffffffebd8, 
    env=0x7fffffffebe8) at dl-init.c:126
#4  0x00007ffff7ddd1ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fffffffede7 in ?? ()
#7  0x0000000000000000 in ?? ()

Is this similar to your backtrace?

Jakob Flierl
can you send me the output of "ldd bpp"?
Jaime Vives Piqueres

`Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2b5bdfc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt

#0 0x00007ffff2b5bdfc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

#1 0x00007ffff7dea13a in call_init (l=<optimized out>, argc=argc@entry=1,

argv=argv@entry=0x7fffffffdfb8, env=env@entry=0x7fffffffdfc8)
at dl-init.c:78

#2 0x00007ffff7dea223 in call_init (env=<optimized out>,

argv=<optimized out>, argc=<optimized out>, l=<optimized out>)
at dl-init.c:36

#3 _dl_init (main_map=0x7ffff7ffe1c8, argc=1, argv=0x7fffffffdfb8,

env=0x7fffffffdfc8) at dl-init.c:126

#4 0x00007ffff7ddb30a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2

#5 0x0000000000000001 in ?? ()

#6 0x00007fffffffe31c in ?? ()

#7 0x0000000000000000 in ?? ()

Jakob Flierl
can you send me the output of "ldd bpp"?
On my Debian/Jessie installation this looks suspicious:
$ ldd bpp
    linux-vdso.so.1 (0x00007fff25d1f000)
    libQGLViewer.so.2 => /usr/lib/x86_64-linux-gnu/libQGLViewer.so.2 (0x00007fd3db8d8000)
    libGLEW.so.1.10 => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.10 (0x00007fd3db64c000)
    libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fd3db3dd000)
    libglut.so.3 => /usr/lib/x86_64-linux-gnu/libglut.so.3 (0x00007fd3db192000)
    libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fd3daef8000)
    libBulletSoftBody.so.2.82 => /usr/lib/x86_64-linux-gnu/libBulletSoftBody.so.2.82 (0x00007fd3dacb1000)
    libBulletDynamics.so.2.82 => /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.82 (0x00007fd3daa1f000)
    libBulletCollision.so.2.82 => /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.82 (0x00007fd3da72e000)
    libLinearMath.so.2.82 => /usr/lib/x86_64-linux-gnu/libLinearMath.so.2.82 (0x00007fd3da50e000)
    liblua5.2.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 (0x00007fd3da2db000)
    libluabind.so.0.9.1 => /usr/lib/libluabind.so.0.9.1 (0x00007fd3da0bd000)
    libassimp.so.3 => /usr/lib/libassimp.so.3 (0x00007fd3d9845000)
    libQt5OpenGL.so.5 => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007fd3d95ea000)
    libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fd3d8d95000)
    libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fd3d8a37000)
    libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007fd3d87fa000)
    libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fd3d80c4000)
    libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fd3d7987000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd3d776a000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd3d745f000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd3d715d000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd3d6f47000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd3d6b9c000)
    libQtXml.so.4 => /usr/lib/x86_64-linux-gnu/libQtXml.so.4 (0x00007fd3d6954000)
    libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007fd3d6652000)
    libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007fd3d5962000)
    libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007fd3d5472000)
    libXmu.so.6 => /usr/lib/x86_64-linux-gnu/libXmu.so.6 (0x00007fd3d5259000)
    libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007fd3d5049000)
    libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fd3d4e36000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fd3d4af3000)
    libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fd3d48ed000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fd3d46c3000)
    libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fd3d4499000)
    libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fd3d4296000)
    libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fd3d408f000)
    libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fd3d3e8d000)
    libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fd3d3c74000)
    libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fd3d3a6e000)
    libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fd3d386b000)
    libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fd3d3668000)
    libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fd3d3460000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fd3d323e000)
    libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fd3d303c000)
    libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fd3d2e2e000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd3d2c2a000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd3d2a0e000)
    libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fd3d27bb000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fd3d24ac000)
    libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0
Jaime Vives Piqueres
linux-vdso.so.1 =>  (0x00007ffd08720000)
libQGLViewer.so.2 => /usr/lib/x86_64-linux-gnu/libQGLViewer.so.2 (0x00007f232f7b8000)
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f232f548000)
libglut.so.3 => /usr/lib/x86_64-linux-gnu/libglut.so.3 (0x00007f232f2f8000)
libGL.so.1 => /usr/lib/nvidia-340/libGL.so.1 (0x00007f232efa8000)
liblua5.2.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 (0x00007f232ed70000)
libBulletDynamics.so.2.81 => /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.81 (0x00007f232eb10000)
libBulletCollision.so.2.81 => /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.81 (0x00007f232e828000)
libLinearMath.so.2.81 => /usr/lib/x86_64-linux-gnu/libLinearMath.so.2.81 (0x00007f232e608000)
libassimp.so.3 => /usr/lib/libassimp.so.3 (0x00007f232dd90000)
libQt5OpenGL.so.5 => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007f232db28000)
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f232d2f8000)
libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f232d0b8000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f232ca68000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f232c3c0000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f232c0b8000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f232bdb0000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f232bb98000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f232b7d0000)
libQtXml.so.4 => /usr/lib/x86_64-linux-gnu/libQtXml.so.4 (0x00007f232b588000)
libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f232b288000)
libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f232a5d0000)
libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f232a0e8000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2329db0000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f2329ba0000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f2329998000)
libnvidia-tls.so.340.96 => /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.96 (0x00007f2329790000)
libnvidia-glcore.so.340.96 => /usr/lib/nvidia-340/libnvidia-glcore.so.340.96 (0x00007f2326b78000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f2326960000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2326758000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2326538000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2326318000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f23260c0000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2325db8000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2325b90000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f2325938000)
libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f2325530000)
libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f23251b0000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2324fa8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f232fa50000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2324d00000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f2324af0000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f23248b0000)
libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f2324698000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f2324490000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f2324270000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2324050000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f2323e48000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2323c08000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f23239e8000)
libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f2322178000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.s
Jakob Flierl
I see it is linked against libQtGui.so.4 and libQt5Gui.so.5
my guess is, that the package libqglviewer-dev is the cause for this (on Debian/Jessie there's no version for Qt5 only a version for Qt4).
Jaime Vives Piqueres
That seems to be the case also on ubuntu 14.04... the package description says "This package contains the files needed to develop and compile programs using QGLViewer linked with Qt version 4."
Jakob Flierl
I've updated the info at https://github.com/bullet-physics-playground/bpp/wiki/Build-on-Linux – currently testing this on Debian/Jessie..
Jakob Flierl
I got it running now on Debian/Jessie with a workaround, see above link with updated info:
In case you have a version of the Debian package libqglviewer installed linked against Qt4 remove as a workaround: sudo apt remove --purge libqglviewer* # this will break other Debian / apps that require libqglviewer linked against Qt4 however.
Jaime Vives Piqueres
After the "apt-get source libqglviewer-dev" step, I get lost... it creates a folder and other files:
libqglviewer-2.5.0+dfsg (folder)
Jaime Vives Piqueres
Ok, I compiled and installed the one at libqglviewer-2.5.0+dfsg/QGLViewer ...let's see if bpp works now.
Seems to work now... at least it starts. I'm going for dinner and will start playing later.
Jakob Flierl
Screenshot from 2016-05-06 04-51-17.png
Jakob Flierl
A marble race with Duplo:
Screenshot from 2016-05-06 16-17-34.png
Jakob Flierl
Screenshot from 2016-05-06 16-31-30.png
Jaime Vives Piqueres
Very nice... seems you're having a lot of fun with openscad.
I only had time to play a bit with the new bpp, and just toyed a bit with the old samples: everything seems to work fine except for my car simulations, which are behaving very different and badly.
Jakob Flierl
Screenshot from 2016-05-07 17-01-03.png
I'm currently fixing the POV-Ray mesh2 export..
Jaime Vives Piqueres
Neat, this can save some external conversions.
BTW, openscad seems to not be working for me... when I load your demos I only get the plane. Should I install something for the openscad support?
Jakob Flierl
There was a request on news.povray.org to export only one instance of the mesh2 if multiple Mesh() object instances have the same mesh data. But I did not yet figure out howto implement this.
http://www.openscad.org/ - a "$ sudo apt-get -y install openscad" should fix this.
it's a runtime dependency in BPP.
Jaime Vives Piqueres
Thanks, I was just trying that...
Jakob Flierl
did it work?
Jaime Vives Piqueres
Hmmm... now loading the scene just makes bpp hang on the open script window.
About the mesh instancing, yes, it should be done that way. But I guess this could be done only if bpp allowed mesh instancing itself (it does? I don't remember).
Jakob Flierl
when the gui freezes, wait a bit - openscad is running in the background
mesh instancing is not implemented yet. I need to think a bit howto do this in a correct way.
can you point me to the source code of other programs, that do mesh instancing?
Jaime Vives Piqueres
I force closed the window... it was running for a few minutes already, so I thought it wasn't working.
Jakob Flierl
openscad rendering should be creating the mesh within fractions of seconds.
the gui should not freeze, if you open 00-hello.lua (the version I updated a few minutes ago.)
Jaime Vives Piqueres
I did try with 01-openscad-template and it worked, but it took a few seconds, and any change to the openscad code freezes bpp for a few seconds too. Looks like it's workig very slow on my system...
Jakob Flierl
I could fix the gui freezes by introducing some multithreaded concepts, but I leave this part for now. The openscad package on Ubuntu 16.04 comes in the version 2015.03-1+df.
they have a google summer of code project, where they are trying to do the cgal calculations in a multithreaded manner.