This line (simplified to debug this problem)
var w = dc.getTextWidthInPixels("X", Gfx.FONT_SMALL );
the first time this function is called, crashes in the Vivoactive 4 Sim with a
Error: Symbol Not Found Error
Details: Failed invoking <symbol>
I've tried Sim 4.1.6, 4.1.7, 4.2.1, 4.2.2 and 4.2.3.
They all crash in the same way when running the VA 4 Sim.
They all work as expected when running the VA 4S Sim as well as the Sim for other models.
The Sim is acting as if the function getTextWidthInPixels() doesn't exist in the VA 4 Sim.