问题
so my app is crashing mainly on any device running less than 4.4 and this is what the crash log is reporting to me:
android.support.v8.renderscript.RSRuntimeException: Loading of ScriptC script failed.
at android.support.v8.renderscript.ScriptC.<init>(ScriptC.java:69)
at com.apporio.glitchr.ScriptC_translate.<init>(ScriptC_translate.java:41)
at com.apporio.glitchr.ImageEffects.fastTransform(ImageEffects.java:417)
at com.apporio.glitchr.ImageEffects.doNewVHS(ImageEffects.java:308)
at com.apporio.glitchr.EffectFactory.vhsEffect(EffectFactory.java:70)
at com.apporio.glitchr.EffectFactory.doEffect(EffectFactory.java:28)
at com.apporio.glitchr.EffectActivity$8.run(EffectActivity.java:303)
at java.lang.Thread.run(Thread.java:864)
The point in the Java it's crashing at is:
ScriptC_overlay e = new ScriptC_overlay(rs, context.getResources(),
R.raw.overlay);
The rs file has this kernel:
void root(const uchar4 *v_in, uchar4 *v_out, const void *usrData, uint32_t x, uint32_t y) {
rs_matrix4x4 matrix;
rsMatrixLoadIdentity(&matrix);
rsMatrixTranslate(&matrix, xAmt, yAmt, 0.0f); //CRASH?
For the life of me, I can't figure out what's wrong. Any ideas, Stack Overflow? Thanks for the help!
回答1:
We had many missing symbols in the support library unfortunately. This bug (and other missing symbols) are all fixed in AOSP right now, but you will have to wait for an SDK update before making use of it.
来源:https://stackoverflow.com/questions/21001383/getting-cannot-locate-symbol-z17rsmatrixtranslatep12rs-matrix4x4fff-using-the