Comments (7)
Have more detailed logs ?
I do not have an Android Pie device. So I just run the project on the simulator. And I just got an UnsatisfiedLinkError.
It seems that when compile the RenderScript code, only x86 platform dynamic libs are generated. But the libhoko_blur.so is built for the x86_64 platform. If the device is running on x86_64 platform, an
UnsatisfiedLinkError will be thrown. Now I fixed the problem.
If your error is not an UnsatisfiedLinkError, please show me the stacktrace. 😀
from hokoblur.
09-27 00:10:21.271 25849-25869/com.example.hokoblurdemo E/OpenGLRenderer: GL error: GL_INVALID_OPERATION 09-27 00:10:21.271 25849-25869/com.example.hokoblurdemo A/OpenGLRenderer: glViewport error! GL_INVALID_OPERATION (0x502) 09-27 00:10:21.271 25849-25869/com.example.hokoblurdemo A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 25869 (RenderThread), pid 25849 (le.hokoblurdemo)
Here is the Stacktrace. I'm using a Pixel 2 XL with Android 9. If you try running it on an emulator with Api level 28, it does'nt crash but the BlurDrawable renders nothing. Talking about the blurred background on MainActivity.
It seems to be related to the GL drawing in ScreenBlurRenderer. If you comment away drawOneDimenBlur(..) and upscale(..) methods from the onDrawFrame it does'nt crash but it naturally does not render anything eiter :)
from hokoblur.
Looks like GLES20.glDrawElements(GLES20.GL_TRIANGLES, drawOrder.length, GLES20.GL_UNSIGNED_SHORT, mDrawListBuffer); makes it crash for some reason
from hokoblur.
If you run the project on the emulator of macOS, the BlurDrawable renders a strange effect. If you use the emulator of Windows, the BlurDrawable works normally. It seems to be related to difference of hardware render between these platforms.
I still cannot figure out just according to the GL_INVALID_OPERATION stacktrace. To solve it , I think I should try to get a device or add more GLError checks before calling glDrawElements method. GPU trace may be helpful.
from hokoblur.
I tried upgrading the shaders to Opengl 3.0, no longer crashes but nothing renders to the screen, works on Android Api level below 28 though 😌
from hokoblur.
Remove the dynamic blur
from hokoblur.
https://github.com/HokoFly/HokoBlurDrawable fix it
from hokoblur.
Related Issues (20)
- 接入高德地图崩溃 Too large blur size, check width < 1800 and height < 3200 HOT 10
- 开了硬件加速,但是BlurDrawable还是无效 HOT 3
- 可否将 RenderScript 换成系统的 HOT 8
- Is it useful on VideoView? I need use it on VideoView to play video HOT 3
- opengl的shader的写法存在机型兼容性问题 HOT 1
- Mac 电脑中编译报错了,是要用Windows编译吗? HOT 1
- 建议删除Library中不必要的内容 HOT 2
- x86_64模拟器下无法链接so HOT 1
- Migrate from JCenter to MavenCentral HOT 3
- 编译正常,运行报这个错 HOT 1
- OPENGL scheme is causing a memory leak HOT 15
- Strange unblurred line when using custom sampleFactor HOT 2
- React Native support
- Demo打开就闪退了 HOT 1
- 在Fragment里初始化的时候显示黑色 HOT 2
- 能否将多个模糊模式分开 HOT 3
- OverlayColor特性的支持 HOT 12
- 闪退问题 HOT 8
- Add a License HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hokoblur.