Shader compilation failed and screen unreadable #10

Closed
opened 2014-07-09 16:24:08 +02:00 by player1537 · 2 comments
player1537 commented 2014-07-09 16:24:08 +02:00 (Migrated from github.com)

I'm having some issues getting this to work. I'm using an HP Chromebook 14, with Crouton (Ubuntu 12.04.4) installed. I installed the Qt5.2.1 binaries from issue #8, set up my $PATH, and make && sudo make install from the konsole-qml-plugin directory, which went well and without any errors.

When I try to run it (from within GNOME 3), I get errors about a shader failing to compile, and the screen is unreadable (no matter which settings I use). I don't know enough about shaders yet to know why this error is happening, but I could look into it. I just figured I'd ask to make sure I'm not doing something stupid.

Thanks for the help and for writing this! I've been looking for a program like this for years.

Here's what the screen looks like:

screenshot

And here's the log from running it:

Error:    Overlays not supported; Ignoring overlay specification for key <LWIN>
Error:    Overlays not supported; Ignoring overlay specification for key <AB09>
Error:    Overlays not supported; Ignoring overlay specification for key <LEFT>
Error:    Overlays not supported; Ignoring overlay specification for key <RGHT>
Error:    Overlays not supported; Ignoring overlay specification for key <UP>
Error:    Overlays not supported; Ignoring overlay specification for key <DOWN>
Error:    Overlays not supported; Ignoring overlay specification for key <FK01>
Error:    Overlays not supported; Ignoring overlay specification for key <FK02>
Error:    Overlays not supported; Ignoring overlay specification for key <FK03>
Error:    Overlays not supported; Ignoring overlay specification for key <FK04>
Error:    Overlays not supported; Ignoring overlay specification for key <FK05>
Error:    Overlays not supported; Ignoring overlay specification for key <FK06>
Error:    Overlays not supported; Ignoring overlay specification for key <FK07>
Error:    Overlays not supported; Ignoring overlay specification for key <FK08>
Error:    Overlays not supported; Ignoring overlay specification for key <FK09>
Error:    Overlays not supported; Ignoring overlay specification for key <FK10>
Error:    Overlays not supported; Ignoring overlay specification for key <AE01>
Error:    Overlays not supported; Ignoring overlay specification for key <AE02>
Error:    Overlays not supported; Ignoring overlay specification for key <AE03>
Error:    Overlays not supported; Ignoring overlay specification for key <AE04>
Error:    Overlays not supported; Ignoring overlay specification for key <AE05>
Error:    Overlays not supported; Ignoring overlay specification for key <AE06>
Error:    Overlays not supported; Ignoring overlay specification for key <AE07>
Error:    Overlays not supported; Ignoring overlay specification for key <AE08>
Error:    Overlays not supported; Ignoring overlay specification for key <AE09>
Error:    Overlays not supported; Ignoring overlay specification for key <AE10>
Error:    Overlays not supported; Ignoring overlay specification for key <AE11>
Error:    Overlays not supported; Ignoring overlay specification for key <AE12>
Error:    Overlays not supported; Ignoring overlay specification for key <BKSP>
Error:    Overlays not supported; Ignoring overlay specification for key <LALT>
Error:    Overlays not supported; Ignoring overlay specification for key <RALT>
Error:    Overlays not supported; Ignoring overlay specification for key <RWIN>

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",
loadAllColorSchemes 
Loading settings: {"ambient_light":0,"brightness":0.2760663507109005,"contrast":1,"fontIndexes":[7,4,0],"fontScalingIndexes":[8,2,0],"fps":0,"frameReflections":true,"show_terminal_size":true,"window_scaling":1}{"background_color":"#000000","bloom_strength":0.4,"brightness_flickering":0.07,"fontIndex":4,"font_color":"#ffffff","frames_index":1,"glowing_line_strength":0.13,"horizontal_sincronization":0,"jitter":0.08,"motion_blur":0.3,"noise_strength":0.03,"rasterization":1,"screen_distortion":0.1}
QOpenGLShader::compile(Fragment): 0:7(104): error: type mismatch
0:8(25): error: Cannot access field `r' of non-structure / non-vector.
0:8(25): error: type mismatch
0:8(32): error: Operands to arithmetic operators must be numeric
0:8(43): error: Cannot access field `g' of non-structure / non-vector.
0:8(43): error: type mismatch
0:8(50): error: Operands to arithmetic operators must be numeric
0:8(50): error: Operands to arithmetic operators must be numeric
0:8(61): error: Cannot access field `b' of non-structure / non-vector.
0:8(61): error: type mismatch
0:8(61): error: Operands to arithmetic operators must be numeric
0:8(67): error: Operands to arithmetic operators must be numeric

*** Problematic Fragment shader source code ***
#define lowp
#define mediump
#define highp
uniform lowp float qt_Opacity;uniform lowp sampler2D source;uniform highp vec2 delta;varying highp vec2 qt_TexCoord0;

             uniform highp vec2 virtual_resolution;uniform lowp sampler2D blurredSource;void main() {vec2 coords = qt_TexCoord0;
                    coords.y = floor(virtual_resolution.y * coords.y) / virtual_resolution.y;coords = coords + delta;vec4 vcolor = texture2D(source, coords).r * 256.0;
         float color = vcolor.r * 0.21 + vcolor.g * 0.72 + vcolor.b + 0.04;float blurredSourceColor = texture2D(blurredSource, coords).a * 256.0;blurredSourceColor = blurredSourceColor - blurredSourceColor * 0.19000000000000017;color = step(1.0, color) * color + step(color, 1.0) * blurredSourceColor;gl_FragColor.a = floor(color) / 256.0;} 
***
QQuickCustomMaterialShader: Shader compilation failed:
"0:7(104): error: type mismatch
0:8(25): error: Cannot access field `r' of non-structure / non-vector.
0:8(25): error: type mismatch
0:8(32): error: Operands to arithmetic operators must be numeric
0:8(43): error: Cannot access field `g' of non-structure / non-vector.
0:8(43): error: type mismatch
0:8(50): error: Operands to arithmetic operators must be numeric
0:8(50): error: Operands to arithmetic operators must be numeric
0:8(61): error: Cannot access field `b' of non-structure / non-vector.
0:8(61): error: type mismatch
0:8(61): error: Operands to arithmetic operators must be numeric
0:8(67): error: Operands to arithmetic operators must be numeric
" 
QOpenGLShader::compile(Fragment): 0:8(104): error: type mismatch
0:9(25): error: Cannot access field `r' of non-structure / non-vector.
0:9(25): error: type mismatch
0:9(32): error: Operands to arithmetic operators must be numeric
0:9(43): error: Cannot access field `g' of non-structure / non-vector.
0:9(43): error: type mismatch
0:9(50): error: Operands to arithmetic operators must be numeric
0:9(50): error: Operands to arithmetic operators must be numeric
0:9(61): error: Cannot access field `b' of non-structure / non-vector.
0:9(61): error: type mismatch
0:9(61): error: Operands to arithmetic operators must be numeric
0:9(67): error: Operands to arithmetic operators must be numeric

*** Problematic Fragment shader source code ***
#define lowp
#define mediump
#define highp
uniform lowp float qt_Opacity;uniform lowp sampler2D source;uniform highp vec2 delta;varying highp vec2 qt_TexCoord0;

             uniform highp vec2 virtual_resolution;uniform lowp sampler2D blurredSource;void main() {vec2 coords = qt_TexCoord0;
                    coords.y = floor(virtual_resolution.y * coords.y) / virtual_resolution.y;
                        coords.x = floor(virtual_resolution.x * coords.x) / virtual_resolution.x;coords = coords + delta;vec4 vcolor = texture2D(source, coords).r * 256.0;
         float color = vcolor.r * 0.21 + vcolor.g * 0.72 + vcolor.b + 0.04;float blurredSourceColor = texture2D(blurredSource, coords).a * 256.0;blurredSourceColor = blurredSourceColor - blurredSourceColor * 0.15999999999999992;color = step(1.0, color) * color + step(color, 1.0) * blurredSourceColor;gl_FragColor.a = floor(color) / 256.0;} 
***
QQuickCustomMaterialShader: Shader compilation failed:
"0:8(104): error: type mismatch
0:9(25): error: Cannot access field `r' of non-structure / non-vector.
0:9(25): error: type mismatch
0:9(32): error: Operands to arithmetic operators must be numeric
0:9(43): error: Cannot access field `g' of non-structure / non-vector.
0:9(43): error: type mismatch
0:9(50): error: Operands to arithmetic operators must be numeric
0:9(50): error: Operands to arithmetic operators must be numeric
0:9(61): error: Cannot access field `b' of non-structure / non-vector.
0:9(61): error: type mismatch
0:9(61): error: Operands to arithmetic operators must be numeric
0:9(67): error: Operands to arithmetic operators must be numeric
" 
Storing settings: {"ambient_light":0,"brightness":0.2760663507109005,"contrast":1,"fontIndexes":[7,4,0],"fontScalingIndexes":[8,2,0],"fps":0,"frameReflections":true,"show_terminal_size":true,"window_scaling":1}
Storing profile: {"background_color":"#000000","bloom_strength":0.65,"brightness_flickering":0.1,"fontIndex":0,"font_color":"#ff8100","frames_index":1,"glowing_line_strength":0.2,"horizontal_sincronization":0.1,"jitter":0,"motion_blur":0.45,"noise_strength":0.14,"rasterization":2,"screen_distortion":0.05}
I'm having some issues getting this to work. I'm using an HP Chromebook 14, with Crouton (Ubuntu 12.04.4) installed. I installed the Qt5.2.1 binaries from issue #8, set up my $PATH, and `make && sudo make install` from the `konsole-qml-plugin` directory, which went well and without any errors. When I try to run it (from within GNOME 3), I get errors about a shader failing to compile, and the screen is unreadable (no matter which settings I use). I don't know enough about shaders yet to know why this error is happening, but I could look into it. I just figured I'd ask to make sure I'm not doing something stupid. Thanks for the help and for writing this! I've been looking for a program like this for years. Here's what the screen looks like: ![screenshot](https://cloud.githubusercontent.com/assets/1215969/3525571/2753eda4-0774-11e4-83fb-24c956dd3e3c.png) And here's the log from running it: ``` Error: Overlays not supported; Ignoring overlay specification for key <LWIN> Error: Overlays not supported; Ignoring overlay specification for key <AB09> Error: Overlays not supported; Ignoring overlay specification for key <LEFT> Error: Overlays not supported; Ignoring overlay specification for key <RGHT> Error: Overlays not supported; Ignoring overlay specification for key <UP> Error: Overlays not supported; Ignoring overlay specification for key <DOWN> Error: Overlays not supported; Ignoring overlay specification for key <FK01> Error: Overlays not supported; Ignoring overlay specification for key <FK02> Error: Overlays not supported; Ignoring overlay specification for key <FK03> Error: Overlays not supported; Ignoring overlay specification for key <FK04> Error: Overlays not supported; Ignoring overlay specification for key <FK05> Error: Overlays not supported; Ignoring overlay specification for key <FK06> Error: Overlays not supported; Ignoring overlay specification for key <FK07> Error: Overlays not supported; Ignoring overlay specification for key <FK08> Error: Overlays not supported; Ignoring overlay specification for key <FK09> Error: Overlays not supported; Ignoring overlay specification for key <FK10> Error: Overlays not supported; Ignoring overlay specification for key <AE01> Error: Overlays not supported; Ignoring overlay specification for key <AE02> Error: Overlays not supported; Ignoring overlay specification for key <AE03> Error: Overlays not supported; Ignoring overlay specification for key <AE04> Error: Overlays not supported; Ignoring overlay specification for key <AE05> Error: Overlays not supported; Ignoring overlay specification for key <AE06> Error: Overlays not supported; Ignoring overlay specification for key <AE07> Error: Overlays not supported; Ignoring overlay specification for key <AE08> Error: Overlays not supported; Ignoring overlay specification for key <AE09> Error: Overlays not supported; Ignoring overlay specification for key <AE10> Error: Overlays not supported; Ignoring overlay specification for key <AE11> Error: Overlays not supported; Ignoring overlay specification for key <AE12> Error: Overlays not supported; Ignoring overlay specification for key <BKSP> Error: Overlays not supported; Ignoring overlay specification for key <LALT> Error: Overlays not supported; Ignoring overlay specification for key <RALT> Error: Overlays not supported; Ignoring overlay specification for key <RWIN> (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", (qmlscene:4989): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", loadAllColorSchemes Loading settings: {"ambient_light":0,"brightness":0.2760663507109005,"contrast":1,"fontIndexes":[7,4,0],"fontScalingIndexes":[8,2,0],"fps":0,"frameReflections":true,"show_terminal_size":true,"window_scaling":1}{"background_color":"#000000","bloom_strength":0.4,"brightness_flickering":0.07,"fontIndex":4,"font_color":"#ffffff","frames_index":1,"glowing_line_strength":0.13,"horizontal_sincronization":0,"jitter":0.08,"motion_blur":0.3,"noise_strength":0.03,"rasterization":1,"screen_distortion":0.1} QOpenGLShader::compile(Fragment): 0:7(104): error: type mismatch 0:8(25): error: Cannot access field `r' of non-structure / non-vector. 0:8(25): error: type mismatch 0:8(32): error: Operands to arithmetic operators must be numeric 0:8(43): error: Cannot access field `g' of non-structure / non-vector. 0:8(43): error: type mismatch 0:8(50): error: Operands to arithmetic operators must be numeric 0:8(50): error: Operands to arithmetic operators must be numeric 0:8(61): error: Cannot access field `b' of non-structure / non-vector. 0:8(61): error: type mismatch 0:8(61): error: Operands to arithmetic operators must be numeric 0:8(67): error: Operands to arithmetic operators must be numeric *** Problematic Fragment shader source code *** #define lowp #define mediump #define highp uniform lowp float qt_Opacity;uniform lowp sampler2D source;uniform highp vec2 delta;varying highp vec2 qt_TexCoord0; uniform highp vec2 virtual_resolution;uniform lowp sampler2D blurredSource;void main() {vec2 coords = qt_TexCoord0; coords.y = floor(virtual_resolution.y * coords.y) / virtual_resolution.y;coords = coords + delta;vec4 vcolor = texture2D(source, coords).r * 256.0; float color = vcolor.r * 0.21 + vcolor.g * 0.72 + vcolor.b + 0.04;float blurredSourceColor = texture2D(blurredSource, coords).a * 256.0;blurredSourceColor = blurredSourceColor - blurredSourceColor * 0.19000000000000017;color = step(1.0, color) * color + step(color, 1.0) * blurredSourceColor;gl_FragColor.a = floor(color) / 256.0;} *** QQuickCustomMaterialShader: Shader compilation failed: "0:7(104): error: type mismatch 0:8(25): error: Cannot access field `r' of non-structure / non-vector. 0:8(25): error: type mismatch 0:8(32): error: Operands to arithmetic operators must be numeric 0:8(43): error: Cannot access field `g' of non-structure / non-vector. 0:8(43): error: type mismatch 0:8(50): error: Operands to arithmetic operators must be numeric 0:8(50): error: Operands to arithmetic operators must be numeric 0:8(61): error: Cannot access field `b' of non-structure / non-vector. 0:8(61): error: type mismatch 0:8(61): error: Operands to arithmetic operators must be numeric 0:8(67): error: Operands to arithmetic operators must be numeric " QOpenGLShader::compile(Fragment): 0:8(104): error: type mismatch 0:9(25): error: Cannot access field `r' of non-structure / non-vector. 0:9(25): error: type mismatch 0:9(32): error: Operands to arithmetic operators must be numeric 0:9(43): error: Cannot access field `g' of non-structure / non-vector. 0:9(43): error: type mismatch 0:9(50): error: Operands to arithmetic operators must be numeric 0:9(50): error: Operands to arithmetic operators must be numeric 0:9(61): error: Cannot access field `b' of non-structure / non-vector. 0:9(61): error: type mismatch 0:9(61): error: Operands to arithmetic operators must be numeric 0:9(67): error: Operands to arithmetic operators must be numeric *** Problematic Fragment shader source code *** #define lowp #define mediump #define highp uniform lowp float qt_Opacity;uniform lowp sampler2D source;uniform highp vec2 delta;varying highp vec2 qt_TexCoord0; uniform highp vec2 virtual_resolution;uniform lowp sampler2D blurredSource;void main() {vec2 coords = qt_TexCoord0; coords.y = floor(virtual_resolution.y * coords.y) / virtual_resolution.y; coords.x = floor(virtual_resolution.x * coords.x) / virtual_resolution.x;coords = coords + delta;vec4 vcolor = texture2D(source, coords).r * 256.0; float color = vcolor.r * 0.21 + vcolor.g * 0.72 + vcolor.b + 0.04;float blurredSourceColor = texture2D(blurredSource, coords).a * 256.0;blurredSourceColor = blurredSourceColor - blurredSourceColor * 0.15999999999999992;color = step(1.0, color) * color + step(color, 1.0) * blurredSourceColor;gl_FragColor.a = floor(color) / 256.0;} *** QQuickCustomMaterialShader: Shader compilation failed: "0:8(104): error: type mismatch 0:9(25): error: Cannot access field `r' of non-structure / non-vector. 0:9(25): error: type mismatch 0:9(32): error: Operands to arithmetic operators must be numeric 0:9(43): error: Cannot access field `g' of non-structure / non-vector. 0:9(43): error: type mismatch 0:9(50): error: Operands to arithmetic operators must be numeric 0:9(50): error: Operands to arithmetic operators must be numeric 0:9(61): error: Cannot access field `b' of non-structure / non-vector. 0:9(61): error: type mismatch 0:9(61): error: Operands to arithmetic operators must be numeric 0:9(67): error: Operands to arithmetic operators must be numeric " Storing settings: {"ambient_light":0,"brightness":0.2760663507109005,"contrast":1,"fontIndexes":[7,4,0],"fontScalingIndexes":[8,2,0],"fps":0,"frameReflections":true,"show_terminal_size":true,"window_scaling":1} Storing profile: {"background_color":"#000000","bloom_strength":0.65,"brightness_flickering":0.1,"fontIndex":0,"font_color":"#ff8100","frames_index":1,"glowing_line_strength":0.2,"horizontal_sincronization":0.1,"jitter":0,"motion_blur":0.45,"noise_strength":0.14,"rasterization":2,"screen_distortion":0.05} ```
Swordfish90 commented 2014-07-09 19:19:13 +02:00 (Migrated from github.com)

Thank you for your feedback... There was a problem with that shader; some GPUs tolerate those casts and some don't. Please pull the last version and let me know if everything is working now...

Thank you for your feedback... There was a problem with that shader; some GPUs tolerate those casts and some don't. Please pull the last version and let me know if everything is working now...
player1537 commented 2014-07-09 19:24:50 +02:00 (Migrated from github.com)

Thank you! That fixed it, so now the screen is readable, and I don't get any errors any more (except the overlay one, but that's not the program's fault).

Thank you! That fixed it, so now the screen is readable, and I don't get any errors any more (except the overlay one, but that's not the program's fault).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#10
No description provided.