TypeError Chrome

Troels Arvin 8 hours ago

In Traccar's web-interface, immediately after logging in, I get the following error instead of Traccar's web interface. This is the latest version of Traccar, but it has also been seen in an older version. I only see it in Google Chrome (154.0.8037.17), not in Firefox.

Is this an error in Traccar, or in Chrome?

TypeError: Cannot read properties of undefined (reading '0')
    at mp (https://FOOBAR/assets/index-BcjufgMa.js:41:46625)
    at e.screenPointToMercatorCoordinateAtZ (https://FOOBAR/assets/index-BcjufgMa.js:839:20759)
...
    at https://FOOBAR/assets/MapScale-DbEeeVK0.js:1:263
Anton Tananaev 8 hours ago

I believe it's already fixed on master.

Anton Tananaev 8 hours ago

Please try the preview:

https://www.traccar.org/preview/

Troels Arvin 6 hours ago

With the Traccar preview, my Chrome simply displays a spinning circle forever, instead of displaying the error message.
I run my Chrome in a remoted desktop, maybe that has to do with it, because its console states:

Uncaught GPUInitializationError: WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL
    at vU._setupPainter (index-DXy9311i.js:853:176517)
    at new vU (index-DXy9311i.js:853:150823)
    at index-DXy9311i.js:853:240730

When testing in another Chrome version (not through remote desktop), there is no problem with either version of Traccar. And in Edge it works fine.

So it seems my normal Chrome is simply an odd version, exacerbated by it running in a remote desktop session. It's probably not worth chasing this any longer.

Anton Tananaev 6 hours ago

Can you open chrome://gpu in your remote Chrome and provide details.

Troels Arvin 5 hours ago