After many weeks of no ERA reports, I have now received several messages for data fields for 2 weeks - only on Edge 1040 and 1050 devices. All of them refer to the initial loading - or rather “not loading” of variables. I know that with data fields “onCompute” and “onUpdate” do not necessarily work synchronously - or rather - in a continuous sequence. But since the last software updates of both devices, there are suddenly problems.
-With System.getDeviceSettings() screenHeight is only successfully queried in the second run. However, since this variable is already required in the first run of onUpdate, this leads to problems there.
-The same with the loading of consumer fonts. This leads to crashes with dc.drawText because the font is only loaded in the second second.
None of this has been a problem so far. The code has not changed.
Now I have to come up with security routines to avoid the crashes.
Has anyone else noticed anything like this?
(the consumer font crashes do occure only on few devices. They are not reproducable on my devices… and do not happen on the simulator)
(on my devices I was able to reproduce the „too late reading“ of screenHeight. It also does not happen on the simulator)