Question

'rsSendToClient' Fails with following error:

02-15 04:50:23.102: E/RenderScript(5147): Unable to open shared library (/data/data/com.isssist.magnitab//lib/librs.mono.so): Cannot load library: reloc_library[1306]: 1420 cannot locate '_Z14rsSendToClienti'...
02-15 04:50:23.102: E/RenderScript(5147): Unable to open system shared library (/system/lib/librs.mono.so): (null)

android.support.v8.renderscript.RSRuntimeException: Loading of ScriptC script failed.

 void filter() {  
   rsDebug("Number of rows:",rsAllocationGetDimX(gIn));
   for (int i = 0; i < rsAllocationGetDimX(gIn); i += 16)
    {
        const  int32_t *element = rsGetElementAt(gIn, i);
        //rsDebug("Number of rows:",sizeOf(gIn));

        //rsDebug("---------------:",(element[0]));




        int lumOne = (element[0]);
        lumOne += 128;
        pixelData[lumOne]=pixelData[lumOne]+1;

        // Bin Second Pixel Value
                    const int32_t *element2 = rsGetElementAt(gIn, i+2);
        int lumTwo = (element2[0]);
        lumTwo += 128;
        //pixelData[lumTwo]++;
        pixelData[lumTwo]=pixelData[lumTwo]+1;


    }

    rsSendToClient(1);

  }
Was it helpful?

Solution

This is a known bug. Getting "cannot locate symbol _Z17rsMatrixTranslateP12rs_matrix4x4fff" using the RenderScript Support Library? is where it was first reported. I have it fixed in AOSP, but the SDK has not been released with a fix just yet.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top