I am trying to run the RigiBodyCollisionDemo example, Linux Ubuntu 22.04 Intel CORE GPU using vscode. And it fails around the 1.32s with the segment error
PositionBasedDynamics 2.2.1
OpenGL version 4.6
Vendor: Intel
Renderer: Mesa Intel(R) UHD Graphics (TGL GT1)
Version: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Loading /home/monem/PhD_projects/PositionBasedDynamics/bin/resources/models/cube.obj
Number of triangles: 12
Number of vertices: 8
Loading /home/monem/PhD_projects/PositionBasedDynamics/bin/resources/models/cylinder.obj
Number of triangles: 760
Number of vertices: 382
Loading /home/monem/PhD_projects/PositionBasedDynamics/bin/resources/models/torus.obj
Number of triangles: 800
Number of vertices: 400
Loading /home/monem/PhD_projects/PositionBasedDynamics/bin/resources/models/cube_5.obj
Number of triangles: 300
Number of vertices: 152
Loading /home/monem/PhD_projects/PositionBasedDynamics/bin/resources/models/sphere.obj
Number of triangles: 760
Number of vertices: 382
double free or corruption (out)
Aborted (core dumped)
Or some times when I re-run it, the last 2 lines change to :
malloc(): unsorted double linked list corrupted
Aborted (core dumped)
or
free(): invalid size
free(): invalid size
free(): invalid size
Aborted (core dumped)
Also, I am trying the library on a different Windows 11 with NVIDIA GeForce 3060 machine using visual studio. And apparently this example and JointDemo, RigidBodyClothCoupelingDemo, RigidBodyCollisionDemo, SceneLoaderDemo, StretchBendingTwistingDemo are not built and I can't find them in the excutables list at all! Any idea why?
In addition, on Linux Intel the Demos are running much much slower that Windows NVIDIA.