HighStock Boost module Chrome browser error - highcharts

I want to load many stock charts on a single page. ~1500 charts with 1 year timeseries data.
I use the boost module but get the following error on Chrome Console and midway the Chrome goes to a black screen, however it recovers from it yet the error persists
when compiling fragment shader:
highstock.js:473 [highcharts boost] - unable to init WebGL renderer
highstock.js:473 [highcharts boost] shader error - when compiling vertex shader:
How to get rid of this error?

Related

Vaadin 23 TypeError: error loading dynamically imported module

In Firefox browser, not always (but very often) I see the following error in the console (and page is unable to load):
TypeError: error loading dynamically imported module
Only after Ctrl + F5 the page is loaded correctly.
Also in the Network tab I may see the following:
Uncaught (in promise) TypeError: error loading dynamically imported module router.js:525:10
ready router.js:525
(Async: promise callback)
render router.js:517
__onNavigationEvent router.js:932
setRoutes router.js:419
index.ts:32
There is no any other information. In Chrome, everything works fine. What may be the reason of this issue?
I noticed this after upgrade to Vaadin 23.2.1
Also, from time to time I have the following error:

PSPNet evalution issue

I am working on PSNet and When I reached on third step evaluation and run the code with command ./run.sh I have facing these errors shown in Image and also code is:
Error using importdata
unable to open file.
Error in eval_sub (line 3)
list = importdata(fullfill(data_root,eval_list));
Error in eval_all (line_35)
eval_sub(data_name,data_root,eval_list,model_weight,model_deploy,fea_cha,crop_size_h,crop_size_w,data_class,data_colormar,...
I am working on laptop cpu don't have gpu etc
Please guide me
Regards

Error when running CARET R (only works the first time after updating package without loading other libraries)

I have a peculiar problem with AdaBoost.M1 function in Caret.
After run a regular AdaBoost.M1 code, I get the error:
Error in .rowNamesDF<-(x, value = value) : invalid 'row.names' length
If I check CARET updates and I update CARET package, the algorithm works perfectly, but if I call some other packages after that, when I run AdaBoost.M1 again it crashes and only if reinstall CARET package it works.
Thanks for your help.
(code example of AdaBoost.M1): unable to use Adaboost with R's caret package

gl_FragData must be constant zero

I'm having an issue trying to compile a fragment shader. I keep getting this error:
Uncaught Error: Fragment Shader Compiler Error: ERROR: 0:21: '[' :
array index for gl_FragData must be constant zero ERROR: 0:21: '[' :
array index for gl_FragData must be constant zero ERROR: 0:21: '[' :
array index for gl_FragData must be constant zero
This is the code:
#ifdef GL_EXT_draw_buffers
#extension GL_EXT_draw_buffers : require
#endif
#ifdef GL_ES
precision highp float;
#endif
void main() {
gl_FragData[0] = vec4(1.,2.,3.,4.);
gl_FragData[1] = vec4(1.,2.,3.,4.);
gl_FragData[2] = vec4(1.,2.,3.,4.);
gl_FragData[3] = vec4(1.,2.,3.,4.);
}
The whole setup works fine if I'm setting gl_FragColor (with the 4 textures attached to the frame buffer), but trying to do the code above (indexing the buffers to output to) seems to not compile. I have seen this working fine in WebGL1 using extensions. I'm using WebGL2, so perhaps something is different in this context? (I'm trying it in the latest version of Chrome).
So it appears there's some changes to consider going from WebGL1 to WebGL2. Given #gman's comment I thought it best to link to his article, since I know he's really the expert here. ;)
WebGL 1 to WebGL 2 conversion: https://webgl2fundamentals.org/webgl/lessons/webgl1-to-webgl2.html
I also found it helpful to remember the version differences:
WebGL 1.0 is based on OpenGL ES 2.0 and provides an API for 3D
graphics. It uses the HTML5 canvas element and is accessed using
Document Object Model (DOM) interfaces.
WebGL 2.0 is based on OpenGL ES 3.0 and made guaranteed availability
of many optional extensions of WebGL 1.0 and exposes new APIs.
In a nutshell (referring also to the first link on the history):
My shader code was designed for examples I've seen for WebGL 1 (OpenGL ES 2) using extensions. This worked fine because OpenGL 2.0 supported multiple color values via gl_FragData.
Switching to WebGL 2 (OpenGL ES 3) this is depreciated in favour of a different way. Now there are out declarations required, like out vec4 out_0; main(void) { out_0 = vec4(1.0, 0.0, 0.0, 1.0); }. But I was still having some problems. It seems I needed to specify the buffer locations. Also, I was getting this error:
ERROR: must explicitly specify all locations when using multiple fragment outputs
Which means that I needed to add #version 300 es to the top of my program, so the correct code for WebGL 2 looks more like this:
#version 300 es
layout(location = 0) out vec4 out_0;
layout(location = 1) out vec4 out_1;
main(void) {
out_0 = vec4(1.0, 0.0, 0.0, 1.0);
out_1 = vec4(1.0, 0.0, 0.0, 1.0);
}
At one point I had the wrong version, which caused this error:
invalid version directive ERROR: 0:24: 'out' : storage qualifier
supported in GLSL ES 3.00 and above only
But I found out that the version for WebGL 2 specifically is #version 300 es (notice the es part), which worked!
Note: The version specifier must be on the FIRST line, and, unfortunately, cannot be in a preprocessor directive (i.e. #ifdef), so I had to dynamically change the string before sending it to be compiled. If not, you'll get this:
#version directive must occur before anything else, except for comments and white space
For vertex shaders, if compiled for WebGL 2 (ES 3) note that attribute is now in instead. The version of the vertex shader must ALSO match that of the fragment being compiled, or else you'll get this:
ERROR: Shader Linking Error: Versions of linked shaders have to match.
I hope glueing all this confusion together helps save someone else lots of time. ;)

highcharts error "undefined is not an object" when clicking a chart column in Safari

I have a highchart column chart that gives an error when clicking a column.
This occurs only in Safari on Max OS X, not in other browsers (including iPad)
The error is:
TypeError: 'undefined'is not an object (evaluating 'u.isList')
Can anyone tell me what happens? I'm not easily able to build a reproduceable jsFiddle...

Resources