I am getting an intermittent crash when trying to remove a sensor listener from Tizen::Uix::Sensor::SensorManager on app shutdown
I construct and add a listener for SENSOR_TYPE_ACCELERATION in Frame::OnInitializing, checking all the necessary return results to verify success, and checking SensorManager.IsAvailable(SENSOR_TYPE_ACCELERATION) , and using GetMinInterval to set the interval, all seems fine;
I remove the listener in Frame::OnTerminating() like so-
result r = m_SensorManager.RemoveSensorListener(*this, SENSOR_TYPE_ACCELERATION);
Which all works fine, about 90% of the time; however occaisionally the app crashes on termination with the following error in the log
SensorManager crash
result r = m_SensorManager.RemoveSensorListener(*this, SENSOR_TYPE_ACCELERATION);
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio