AlynxZhou / alynx-live-wallpaper

An android app that allows you choose a video as wallpaper.
https://livewallpaper.alynx.xyz/
Apache License 2.0
93 stars 38 forks source link

RuntimeException with Huawei Kirin #7

Closed thanhca259 closed 4 years ago

thanhca259 commented 4 years ago

Fatal Exception: java.lang.RuntimeException Compile failed. ERROR: 0:34: 'texture' : no matching overloaded function found ERROR: 0:34: 'assign' : cannot convert from 'float' to 'fragment out 4-component vector of float' ERROR: 2 compilation errors. No code generated.

CODE line: GLES.Utils.compileShaderResourceGLES30 (Utils.java:102) GLES.GLES30WallpaperRenderer.onSurfaceCreated (GLES30WallpaperRenderer.java:144)

I have seen this comment line in your .glsl file // Some Android phone driver needs to put pre-processor in the first line. (e.g. Huawei Kirin)

Can you explain more specifically?

AlynxZhou commented 4 years ago

I have seen this comment line in your .glsl file // Some Android phone driver needs to put pre-processor in the first line. (e.g. Huawei Kirin)

Can you explain more specifically?

This is not related to this bug, I've already put pre-processor in the first line, it just reminds me that comment cannot at head.

Please tell me your CPU and GPU if available.

thanhca259 commented 4 years ago

Thank you your feedback.

This is information device crash: Brand: Xiaomi Model: HM Note 2 Orientation: Portrait RAM free: 579.23 MB Disk free: 1.06 GB

I don't understand what happened but firebase overwrites the above bug into a new bug. Fatal Exception: java.lang.RuntimeException: 0:5: P0003: Extension 'GL_OES_EGL_image_external' not supported 0:28: L0001: Expected token '{', found 'identifier' .GLES.Utils.compileShaderResourceGLES30(Utils.java:102) at .GLES.GLES30WallpaperRenderer.onSurfaceCreated(GLES30WallpaperRenderer.java:144) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1539) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1278)

Do you have any suggestions for me to fix this new bug? Thank you

AlynxZhou commented 4 years ago

No, GL_OES_EGL_image_external is required for this program, you phone is too old and it does not support it.

thanhca259 commented 4 years ago

Thank you your feedback. Have a nice day !