-
Notifications
You must be signed in to change notification settings - Fork 177
Description
This is a modified version of Quirk, used for this online course.
It runs fine on my laptop (Windows 10, Microsoft Edge), but is unusable on my phone (Android 8, Chrome)
Error Message:
Defaulted to NaN results. Computing circuit values failed.
URL
https://www.quantum-quest.org/quirky/QuirkyQuest1.html
BROWSER
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Netscape
5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
RECOVERY DETAILS
{"circuitDefinition": {"cols": []}}
ERROR OBJECT
Error: WebGLShader: Shader compile failed.
Info: 0:1: S0033: no default precision defined for function 's1605'�
Source:
precision highp float;
precision highp int;
///////////// makeFloatCoderOutput2 ////////////
vec2 outputFor(float k);
uniform vec2 _gen_output_size;
uniform float _gen_secret_half;
float len_output() {
return _gen_output_size.x * _gen_output_size.y;
}
//////// body ////////
uniform float state;
vec2 outputFor(float k) {
return vec2(float(k == state), 0.0);
}
void main() {
vec2 xy = gl_FragCoord.xy - vec2(_gen_secret_half, _gen_secret_half);
float k = xy.y * _gen_output_size.x + xy.x;
vec2 v = outputFor(k);
gl_FragColor = vec4(v.x, v.y, 0.0, 0.0);
}
ERROR LOCATION
Error: WebGLShader: Shader compile failed.
Info: 0:1: S0033: no default precision defined for function 's1605'�
Source:
precision highp float;
precision highp int;
///////////// makeFloatCoderOutput2 ////////////
vec2 outputFor(float k);
uniform vec2 _gen_output_size;
uniform float _gen_secret_half;
float len_output() {
return _gen_output_size.x * _gen_output_size.y;
}
//////// body ////////
uniform float state;
vec2 outputFor(float k) {
return vec2(float(k == state), 0.0);
}
void main() {
vec2 xy = gl_FragCoord.xy - vec2(_gen_secret_half, _gen_secret_half);
float k = xy.y * _gen_output_size.x + xy.x;
vec2 v = outputFor(k);
gl_FragColor = vec4(v.x, v.y, 0.0, 0.0);
}
at Function.compileShader (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:540743)
at new i (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:538993)
at $traceurRuntime.createClass.initializedValue.initializer (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:537819)
at $traceurRuntime.createClass.initializedValue.initializedValue (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:535541)
at e.renderToFunc (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:538149)
at e.renderTo (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:531249)
at e.renderToFunc (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:519273)
at e.renderTo (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:531249)
at e._renderToElseDealloc (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:531414)
at e.toVec2Texture (https://www.quantum-quest.org/quirky/QuirkyQuest1.html:317:532672)