Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load runtime libRSDriver_adreno.so, loading default #147

Open
leo-liao opened this issue Aug 16, 2014 · 2 comments
Open

Failed to load runtime libRSDriver_adreno.so, loading default #147

leo-liao opened this issue Aug 16, 2014 · 2 comments

Comments

@leo-liao
Copy link

When I develop an app using Renderscript feature base on Android L Nexus 4 V5.0, it comes out
E/RenderScript(28428): Failed to load runtime libRSDriver_adreno.so, loading default

Here's my log:
E/RenderScript(28428): Failed loading RS driver: dlopen failed: could not load library "librs_adreno.so" needed by "libRSDriver_adreno.so"; caused by could not load library "libCB.so" needed by "librs_adreno.so"; caused by cannot locate symbol "gsl_set_constraint" referenced by "libCB.so"...

My test code:
public static Bitmap blurBitmap(Context context, Bitmap bitmap){
//Let's create an empty bitmap with the same size of the bitmap we want to blur
Bitmap outBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);
//Instantiate a new Renderscript
rs = RenderScript.create(context.getApplicationContext());
//Create an Intrinsic Blur Script using the Renderscript
ScriptIntrinsicBlur blurScript = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
//Create the in/out Allocations with the Renderscript and the in/out bitmaps
Allocation allIn = Allocation.createFromBitmap(rs, bitmap);
Allocation allOut = Allocation.createFromBitmap(rs, outBitmap);
//Set the radius of the blur
blurScript.setRadius(25.f);
//Perform the Renderscript
blurScript.setInput(allIn);
blurScript.forEach(allOut);
//Copy the final bitmap created by the out Allocation to the outBitmap
allOut.copyTo(outBitmap);
//recycle the original bitmap
bitmap.recycle();
//After finishing everything, we destroy the Renderscript.
rs.destroy();
return outBitmap;
}

@Sykopompos
Copy link

Thank you for bringing that to my attention. Those are actually new proprietary binaries there so it is possible that they aren't working so well

@MapleDev
Copy link

MapleDev commented Feb 15, 2017

Bitmap outBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);

Are you set the same iamge(like Imgae URL are the same)? You should set the Bitmap.Congfig.xxx same.
eg:

             Picasso.with(getContext())
                    .load(avatarUrlString)
                    .placeholder(R.drawable.default_512)
//                    .config(Bitmap.Config.RGB_565)
                    .config(Bitmap.Config.ARGB_8888)
                    .into(iv_avatar);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants