Good Afternoon,
I've always had a bunch of Renderscript scripts to achieve canny edge detection. This has been working flawlessly up to now.
Unfortunately with a new device (Samsung Galaxy S7) all scripts seem to be failing to be compiled by bcc.
I've searched a lot on google tracker and SO but nothing that made change to the exceptions involved. I also tried to update my android environment to the latest configuration and tried several gradle build configurations. Unfortunately i couldn't get it to work and always throws me the same exception.
I then started thinking that it might be the actual C99 scripts but they are setup like other projects i have with Renderscript - that actually work on this Samsung S7.
The error messages that seem critical are:
E/RenderScript: Unable to open shared library (/xxx/package.name.xxx.cache/librs.gauss_5x1.so): (null)
E/RenderScript: Unable to open shared library (/xxx/package.name.xxx.cache/librs.gauss_1x5.so): undefined symbol: root.expand
E/RenderScript: Unable to open shared library (/xxx/package.name.xxx.cache/librs.canny_sobel.so): undefined symbol: root.expand
E/RenderScript: Unable to open shared library (/xxx/package.name.xxx.cache/librs.canny_nms.so): undefined symbol: root.expand
E/RenderScript: Child process "/system/bin/bcc" terminated with status 11
E/RenderScript: bcc: FAILS to compile 'canny_nms'
This causes then at Android Java layer the fatal exception:
E/AndroidRuntime: FATAL EXCEPTION: main
android.renderscript.RSRuntimeException: Loading of ScriptC script failed.
at android.renderscript.ScriptC.<init>(ScriptC.java:63)
at android.support.v8.renderscript.ScriptCThunker.<init>(ScriptCThunker.java:39)
at android.support.v8.renderscript.ScriptC.<init>(ScriptC.java:62)
at com.novarumreader.renderscripttest.ScriptC_canny_nms.<init>(ScriptC_canny_nms.java:42)
at com.novarumreader.renderscripttest.ScriptC_canny_nms.<init>(ScriptC_canny_nms.java:34)
....
Any orientation in how to address the issue will be much appreciated.
Thank you so much for you time,
Antonio