didigw / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Bullet crashing when neon part is enabled for ios device #794

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Compiling and running bullet using libgdx for ios crashes on real device.Runs 
fine in simulator(x86)

2.The crash goes away when the library is compiled without neon support.
3.The crash should happen at the function getGLSubMatrix in Matrix3x3.cpp   
neon implementation part.

What is the expected output? What do you see instead?
I expect to see neon part working successfully.

What version of the product are you using? On what operating system?
Using 2.82; It is bullet compiled for ios in .a format used in libgdx

Please provide any additional information below.

Original issue reported on code.google.com by jithees...@gmail.com on 19 Feb 2014 at 6:45

GoogleCodeExporter commented 8 years ago
getOpenGLSubMatrix requires the output 'm' to be 16-byte aligned. Did you make 
sure it is 16-byte aligned?

Have you tested any of the demos or unit tests?

Original comment by erwin.coumans on 19 Feb 2014 at 6:54

GoogleCodeExporter commented 8 years ago
Yes i have tested. 
The crash is only when neon part is enabled and that too in device. 
When i disabled the flag BT_NEON_ENABLE it works fine in device too. but the 
performance has minor issues in ipad1
It works fine in simulator.

It is a port of bullet for libgdx. The tests and everything is working 
perfectly on x86 not on apple --neon--.

Original comment by jithees...@gmail.com on 20 Feb 2014 at 5:13

GoogleCodeExporter commented 8 years ago
I didn't mean demos or unit tests using libgdx.
Do the original Bullet demos and unit tests work or not? (not using libgdx)?

It seems likely that the output of getOpenGLSubMatrix is not aligned.

ATTRIBUTE_ALIGNED16(char destmatrix[16]);
m.getOpenGLSubMatrix(destmatrix);

If this still crashes, please provide a callstack of the crash. And make sure 
not to use libgdx to reproduce this crash.

Original comment by erwin.coumans on 20 Feb 2014 at 5:25

GoogleCodeExporter commented 8 years ago
please provide a small reproduction case in one of the Bullet demos, and report 
it again in the github repository (this googlecode tracker is closing)

https://github.com/bulletphysics/bullet3/issues

we can't fix it without repro case.

Original comment by erwin.coumans on 30 Mar 2014 at 4:57