You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the reasons why SDL is crashing on start is related to lazy initialization of the HMI/Mobile/v4 API classes. These classes are initialized on demand when some of the threads are trying to get the object of that class first time. Most likely, at SDL start might be a situation when HMI/Mobile/v4 API classes are constructing in the one thread and at that moment another thread is trying to get access to the inner data of not-yet-fully-constructed object and this causes a core crash with ~ISchemaItem() calls in stack trace. That is possible because access to these factories is not synchronized.
To avoid such situation, factory creation should be moved to AM ctor and all other sub-components should just use getters when they need to get access to API instances.
Reproduction Steps
Simulate ignition OFF followed by door open and door close. Wait until SYNC is fully powered down
Wait 2 minutes
Simulate door open, door close followed by ignition on.
Bug Report
SmartDeviceLink crash
Detailed analysis:
One of the reasons why SDL is crashing on start is related to lazy initialization of the HMI/Mobile/v4 API classes. These classes are initialized on demand when some of the threads are trying to get the object of that class first time. Most likely, at SDL start might be a situation when HMI/Mobile/v4 API classes are constructing in the one thread and at that moment another thread is trying to get access to the inner data of not-yet-fully-constructed object and this causes a core crash with ~ISchemaItem() calls in stack trace. That is possible because access to these factories is not synchronized.
To avoid such situation, factory creation should be moved to AM ctor and all other sub-components should just use getters when they need to get access to API instances.
Reproduction Steps
Expected Behavior
No crashes
Observed Behavior
Detected SmartDeviceLink core dump (once)
OS & Version Information
The text was updated successfully, but these errors were encountered: