Almost true, but for an error that is repeated multiple times:
fatal error: sys/cdefs.h: No such file or directory
Which is fixed with:
sudo apt-get install gcc-multilib g++-multilib
I tried to add the jme3-bullet-native-3.2.0-SNAPSHOT.jar to the libraries instead of the 3.1.0-beta2 but stills the same issue. However, if I remove it, it stills giving the same issue (just with the jme3-bullet-3.2.0-SNAPSHOT.jar).
The only libs on the projects are: core, lwjgl, desktop, terrain, bullet-3.2.0-SNAPSHOT.
The same issue with all libs replaced by the 3.2 ones.
Can you - just to ensure we use exactly the same-
create a selfrunning jar/zip file of project with all stuff in it, so I can run exactly the same code, with exactly the same classes, compilers, binarys?
Of course, I’ll do it, but not now, maybe in some hours… or tomorrow (for sure before tuesday). But it is happening in the latest sdk version so I think it should have the exact same libraries, doesn’t it?. The code is just the simple test case I posted, there is no more than that. I’ll try it on windows too btw and see if it is because of the os.
I was looking at the code because I’m curious that way. While I don’t know much about the issue, I do see something strange.
In CollisionShape.java:
You can see that it reads the scale like it should (and wrote it like it should).
However, note that usually changing the scale requires calling a native method to have it actually take effect:
It seems wrong to me that the local scale is never applied… I also don’t know if that’s dangerous to do before the rest of the mesh data is read. I also don’t know why that would cause a crash because it means the scale of the object would still just be 1,1,1.
…I also don’t know why it would cause a crash for some and not others.
But it definitely seems wrong to me.
Edit: looking at the subclasses like MeshCollisionShape, it creates the shape when it’s done reading and that does set the scale. So I don’t know.
Well, next time you have 3 minutes. Run the test case in the debugger. Set a breakpoint on MeshCollisionShape’s read method. “Go”. Then when you reach the break point, step, step, step until crash.
Well… here a project with all the needed libs packed. The only thing missing is the jre. I tried with the one bundled with the sdk and with a system-installed oracle and openjdk versions.
Ok… that was my fault (the compiled .so library was still there between executions)
Great, can you @RiccardoBlb make a pullrequest out of it? I will merge it asap then. (plz also make merge request against 3.1 branch, as this should probably be fixed there as well)
Ok, I made a slightly different patch with some refactoring on createShape, in this way is cleaner and you don’t have to manually call setScale inside the read method.