Laminar web UI mostly missing, wrong chartjs version

Bug #1970987 reported by Peter Hartley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
laminar (Ubuntu)
New
Undecided
Unassigned

Bug Description

I installed the laminard package (laminard_1.1-1build1) on Ubuntu 22.04LTS on a Raspberry Pi 3 (64-bit ARM). But most of Laminar's Web UI is missing when you go to http://localhost:8080 (you just get a grey bar across the top of the screen).

Using browsers' "developer tools" mode, the Web UI's Javascript is erroring trying to use 'Chart.scaleService', which is a Chart.js 2.x API that was removed in Chart.js 3.0.

The Chart.js version in question is compiled into the laminard package at package-build time. Looking into the Ubuntu/Debian changes to this package (laminar_1.1-1build1.debian.tar.xz) there is a patch that changes upstream's fetching of Chart.js 2.x specifically, to a reference to a local-to-the-build-host copy of Chart.js with no version checking. If the build host had a 3.x copy of Chart.js in that location, then that would explain the failure: the package would build without any visible failure, but the Javascript would fail at runtime with the symptoms described.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.