Complete
over 2 years ago

bug: System Error in calling GenericChannel.getDeviceConfig()

Error Name: System Error
Occurrences: 1
First Occurrence: 2022-11-18
Last Occurrence: 2022-11-18
Devices:
Edge® 530: 9.50
App Versions: 2.1.0
Languages: ita
Backtrace:
ExtHRMSensor.paired:146 var deviceCfg = GenericChannel.getDeviceConfig();
ExtHRMSensor.onMessage:92


Parents Comment Children
  • Since I'm still seeing these errors in ERA I'd like to help to hunt it down. But I am not able to reproduce it (I don't even own any of the devices that had the error). However I'd like to make a case that this has to be a VM bug:

    1. the documentation doesn't mention any possible exception being thrown by getDeviceConfig()

    2. it's a System Error

    3. I tried to reproduce it (in simulator: ): I assumed that maybe this happens when getDeviceConfig is called before setDeviceConfig in some race condition, but when do that on purpose, then nothing happens:

    class TestApp extends Application.AppBase {
    
        public function onMessage(msg as Message) as Void {}
    
        function initialize() {
            AppBase.initialize();
            var c = new Ant.GenericChannel(method(:onMessage), new Ant.ChannelAssignment(
                        Ant.CHANNEL_TYPE_RX_NOT_TX, // Bidirectional Receive (Slave)
                        Ant.NETWORK_PLUS)
                    );
            System.println("c: " + c);
            var deviceCfg = c.getDeviceConfig();
            System.println("d: " + deviceCfg);
        }
    }

    I see:

    Obj: 132
    Obj: 200
    Most of the errors are from different edge devices, but also some from epix2, fenix7:
    epix Pro (gen 2), edge 1030, 1030 plus, 1050, 830, 530, explore, fenix 7x, fenix 7x pro