Skip to content

android.renderscript.RSIllegalArgumentException:Bitmap has an unsupported format for this operation #1407

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

Open
Felix1030 opened this issue Dec 24, 2020 · 1 comment
Assignees
Labels

Comments

@Felix1030
Copy link

描述 Bug

图片高斯模糊时出错

  • AndroidUtilCode 的版本:utilcode:1.29.0
  • 出现 Bug 的设备型号:华为 BG2 W09
  • 设备的 Android 版本:Android 6.0

相关代码

put your code here

异常堆栈

put the stack of crash here

截图

image
image

@Felix1030
Copy link
Author

出错堆栈
android.renderscript.Allocation.validateBitmapFormat(Allocation.java:562)

2 android.renderscript.Allocation.copyTo(Allocation.java:1386)
3 com.blankj.utilcode.util.m.a(SourceFile:1275)

使用代码
Bitmap bitmap = ImageUtils.renderScriptBlur(resource, 20f, true);

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

No branches or pull requests

2 participants