Whole faulty scripts visible in log?


#1

Am still not getting my head around it.
The only thing why it’s done is mabye because there’s no User permission system.

But why are faulty scripts visible in the log ? That sounds so wrong and not feels really like it’s secure. This is btw on earth.

Mabye it’s only visible for users that have build right on the domain ?


#2

Are you asking why you see the log about the scripts that are running on your interface ?

or you are talking about something else?


#3

I see whole failing scripts in the log.
This just a tiny part of the end of the script.

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01102:     // initialize the result value

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01103:     vec4 result;

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01104:     // We call shadertoy their entry point here, which is mainImage for normal viewports

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01105:     // This function writes to the result value, as input we enter the position multiplied by the current worldscale

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01106:     mainImage(result, position * iWorldScale.xz);

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01107:     // Return the colour vector to our renderer in Interface

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01108:     return result;

[07/05 14:14:01] [CRITICAL] [hifi.gl] 01109: }
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01110: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01111: #line 2030
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01112: void main(void) {
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01113:     vec3 normal = normalize(_normalWS.xyz);
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01114:     vec3 diffuse = _color.rgb;
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01115:     vec3 specular = DEFAULT_SPECULAR;
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01116:     float shininess = DEFAULT_SHININESS;
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01117:     float emissiveAmount = 0.0;
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01118:     
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01119: #ifdef PROCEDURAL
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01120: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01121: #ifdef PROCEDURAL_V1
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01122:     specular = getProceduralColor().rgb;
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01123: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01124: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01125:     // Procedural Shaders are expected to be Gamma corrected so let's bring back the RGB in linear space for the rest of the pipeline
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01126:     //specular = pow(specular, vec3(2.2));
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01127:     emissiveAmount = 1.0;
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01128: #else
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01129:     emissiveAmount = getProceduralColors(diffuse, specular, shininess);
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01130: #endif
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01131: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01132: #endif
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01133: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01134:     if (emissiveAmount > 0.0) {
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01135:         packDeferredFragmentLightmap(
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01136:             normal,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01137:             1.0,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01138:             diffuse,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01139:             max(0.0, 1.0 - shininess / 128.0),
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01140:             DEFAULT_METALLIC,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01141:             specular,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01142:             vec3(clamp(emissiveAmount, 0.0, 1.0)));
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01143:     } else {
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01144:         packDeferredFragment(
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01145:             normal,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01146:             1.0,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01147:             diffuse,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01148:             max(0.0, 1.0 - shininess / 128.0),
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01149:             length(specular),
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01150:             DEFAULT_EMISSIVE,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01151:             DEFAULT_OCCLUSION,
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01152:             DEFAULT_SCATTERING);
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01153:     }
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01154: }
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01155: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01156: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] 01157: 
[07/05 14:14:01] [CRITICAL] [hifi.gl] GLShader::compileShader - errors:
[07/05 14:14:01] [CRITICAL] [hifi.gl] 0(2047) : error C1008: undefined variable "getProceduralColors"
[07/05 14:14:01] [CRITICAL] [hifi.gl] 
[07/05 14:14:01] [WARNING] [hifi.gpu.gl] GLBackend::compileBackendProgram - Shader didn't compile:
[07/05 14:14:01] [WARNING] [hifi.gpu.gl]  0(2047) : error C1008: undefined variable "getProceduralColors"
[07/05 14:14:01] [WARNING] [hifi.gpu.gl] 

Still not like the log reader in high fidelity, very small font still compared with the default menu font that is perfect in size.

It’s not my script, but from someone else !


#4

Yes, but the scripts of those “someone else” are running on your interface.


#5

hifi.gl is not a script that’s the debug log from the high fidelitys opengl renderer.