bizz84 / bizz84/codewithandrea_flutter_packages

'GL_EXT_shader_framebuffer_fetch' : extension is not supported

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
116
Forks
87
PR merge metrics
No merged PRs in 30d

Description

**I get this error in console:**
>
D/skia (11364): Shader compilation error
D/skia (11364): ------------------------
D/skia (11364): 1 #version 300 es
D/skia (11364): 2
D/skia (11364): 3 #extension GL_EXT_shader_framebuffer_fetch : require
D/skia (11364): 4 precision mediump float;
D/skia (11364): 5 precision mediump sampler2D;
D/skia (11364): 6 inout mediump vec4 sk_FragColor;
D/skia (11364): 7 uniform mediump vec4 uleftBorderColor_Stage1_c0_c0;
D/skia (11364): 8 uniform mediump vec4 urightBorderColor_Stage1_c0_c0;
D/skia (11364): 9 uniform sampler2D uTextureSampler_0_Stage1;
D/skia (11364): 10 in mediump vec4 vQuadEdge_Stage0;
D/skia (11364): 11 in mediump vec4 vinColor_Stage0;
D/skia (11364): 12 in highp vec2 vTransformedCoords_0_Stage0;
D/skia (11364): 13 mediump vec4 stage_Stage1_c0_c0_c0_c0(mediump vec4 _input) {
D/skia (11364): 14 mediump vec4 _output;
D/skia (11364): 15 mediump float t = vTransformedCoords_0_Stage0.x + 9.9999997473787516e-06;
D/skia (11364): 16 _output = vec4(t, 1.0, 0.0, 0.0);
D/skia (11364): 17 return _output;
D/skia (11364): 18 }
D/skia (11364): 19 mediump vec4 stage_Stage1_c0_c0_c1_c0(mediump vec4 _input) {
D/skia (11364): 20 mediump vec4 _output;
D/skia (11364): 21 mediump vec2 coord = vec2(_input.x, 0.5);
D/skia (11364): 22 _output = texture(uTextureSampler_0_Stage1, coord);
D/skia (11364): 23 return _output;
D/skia (11364): 24 }
D/skia (11364): 25 mediump vec4 stage_Stage1_c0_c0(mediump vec4 _input) {
D/skia (11364): 26 mediump vec4 _output;
D/skia (11364): 27 mediump vec4 t = stage_Stage1_c0_c0_c0_c0(vec4(1.0));
D/skia (11364): 28 if (t.x < 0.0) {
D/skia (11364): 29 _output = uleftBorderColor_Stage1_c0_c0;
D/skia (11364): 30 } else if (t.x > 1.0) {
D/skia (11364): 31 _output = urightBorderColor_Stage1_c0_c0;
D/skia (11364): 32 } else {
D/skia (11364): 33 _output = stage_Stage1_c0_c0_c1_c0(t);
D/skia (11364): 34 }
D/skia (11364): 35 {
D/skia (11364): 36 _output.xyz *= _output.w;
D/skia (11364): 37 }
D/skia (11364): 38 return _output;
D/skia (11364): 39 }
D/skia (11364): 40 mediump vec4 blend_multiply(mediump vec4 src, mediump vec4 dst) {
D/skia (11364): 41 return vec4(((1.0 - src.w) * dst.xyz + (1.0 - dst.w) * src.xyz) + src.xyz * dst.xyz, src.w + (1.0 - src.w) * dst.w);
D/skia (11364): 42 }
D/skia (11364): 43 void main() {
D/skia (11364): 44 mediump vec4 outputCoverage_Stage0;
D/skia (11364): 45 {
D/skia (11364): 46 mediump float edgeAlpha;
D/skia (11364): 47 mediump vec2 duvdx = dFdx(vQuadEdge_Stage0.xy);
D/skia (11364): 48 mediump vec2 duvdy = -dFdy(vQuadEdge_Stage0.xy);
D/skia (11364): 49 if (vQuadEdge_Stage0.z > 0.0 && vQuadEdge_Stage0.w > 0.0) {
D/skia (11364): 50 edgeAlpha = min(min(vQuadEdge_Stage0.z, vQuadEdge_Stage0.w) + 0.5, 1.0);
D/skia (11364): 51 } else {
D/skia (11364): 52 mediump vec2 gF = vec2((2.0 * vQuadEdge_Stage0.x) * duvdx.x - duvdx.y, (2.0 * vQuadEdge_Stage0.x) * duvdy.x - duvdy.y);
D/skia (11364): 53 edgeAlpha = vQuadEdge_Stage0.x * vQuadEdge_Stage0.x - vQuadEdge_Stage0.y;
D/skia (11364): 54 edgeAlpha = clamp(0.5 - edgeAlpha / length(gF), 0.0, 1.0);
D/skia (11364): 55 }
D/skia (11364): 56 outputCoverage_Stage0 = vec4(edgeAlpha);
D/skia (11364): 57 }
D/skia (11364): 58 mediump vec4 output_Stage1;
D/skia (11364): 59 {
D/skia (11364): 60 output_Stage1 = stage_Stage1_c0_c0(vec4(1.0, 1.0, 1.0, 1.0));
D/skia (11364): 61 }
D/skia (11364): 62 {
D/skia (11364): 63 mediump vec4 _dstColor = sk_FragColor;
D/skia (11364): 64 sk_FragColor = blend_multiply(output_Stage1, _dstColor);
D/skia (11364): 65 sk_FragColor = outputCoverage_Stage0 * sk_FragColor + (vec4(1.0) - outputCoverage_Stage0) * _dstColor;
D/skia (11364): 66 }
D/skia (11364): 67 }
D/skia (11364): 68
D/skia (11364): Errors:
D/skia (11364): ERROR: 0:3: 'GL_EXT_shader_framebuffer_fetch' : extension is not supported
D/skia (11364): ERROR: 0:6: 'inout' : syntax error
>

**Not sure if these warnings influence above**?
>
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Parameter format not correct -
C:\Users\marti\Flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.6+2\android\src\main\java\io\flutter\plugins\sharedpreferences\SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
setupChannel(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
^
1 warning
Note: C:\Users\marti\Flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.13.3\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
√ Built build\app\outputs\apk\debug\app-debug.apk.
>

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the launch from main.dart on the Android SDK built for x86 and inspect the Skia shader compilation output, especially the GL_EXT_shader_framebuffer_fetch and inout errors. Done means determining whether the shader error affects the app's rendering and identifying the relevant Flutter or Android rendering component responsible.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
computer-graphics, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.