Orientation Sensor makes companion app crash sometimes

The same problem happens in this project (which I found in the gallery) in AccelerometerSensor component

  • The companion crashes after a certain time
  • In addition, I noticed that the change of orientation causes the components in the canvas to move out of place (even after returning to the previous orientation position)
    FindTheGoldApp.aia (181.4 KB)