0

Recently , I rebuild fountain_v11 renderscript test apk, and found it cannot run on Android 4.3 platform.

It always crash in function root() in file Fountain.rs.

This will crash:

        if ((p->position.y > height) && (p->delta.y > 0)) {
        p->delta.y *= -0.3f;
    }

I am not sure why this operation is illegal?

Is there someone who can help me?

Thanks

james
  • 335
  • 1
  • 5
  • 18
  • Are you compiling with the 4.3 SDK? What device are you attempting to run this on (and what version of Android is it running)? – Stephen Hines Aug 24 '13 at 04:39
  • Yes, I am compiling with 4.3 SDK, and I found the error is caused by attribute, if I removed packed(1) from the attribute the apk can run correctly. Or add an meaningless variable such as char or float before the variable of delta in struct Point_t, it worked also. And the device I used is Sam Sung I9260 – james Sep 02 '13 at 02:55
  • Right, you should probably remove the "packed" attribute permanently, since it can cause portability issues. – Stephen Hines Sep 03 '13 at 00:52
  • Do you know why? Since with 4.2 SDK, the packed attribute is there and can ran correctly. But after move to 4.3 SDK, is the problem with RS complier, also I haven't any clue from git of RS. thanks – james Sep 04 '13 at 07:30

0 Answers0