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
A very rare crash occurs when registering apps which have different languages than the HMI
Reproduction Steps
Connect app with EN-US language option
Change HMI UI and TTS+VR language to DE-DE
Connect 15 apps in sequence with various appHMITypes (specifically with different default templates, such as MEDIA and NAVIGATION) and with EN-US language
Change HMI UI and TTS+VR language to ES-ES
Repeatedly connect new apps in sequence with various appHMITypes and with EN-US language
Expected Behavior
All apps register successfully
Observed Behavior
Very rarely (< 5%), SDL Core will crash during the registration process with the following DCHECK message:
After investigating more, it appears the issue occurs when BC.OnSystemCapabilityUpdated(DISPLAYS) is sent from the HMI for a specific app at the same time that the app sends GetSystemCapability(DISPLAYS). It seems that parts of the display capabilities for the are modified/discarded midway through the set_display_capabilities function here. If another thread retrieves the display capabilities while between this line and this line in the function, then parts of the object could be modified suddenly. If this modification occurs during the duplicate process, then the part of the object being duplicated could be invalidated suddenly, causing the DCHECK failure.
Two potential solutions to this (both could be implemented if desired):
Do not modify display_capabilities_ mid-function in set_display_capabilities (just create a pointer with the final capabilities at the end of the function, then call display_capabilities_.reset with that new pointer)
Bug Report
A very rare crash occurs when registering apps which have different languages than the HMI
Reproduction Steps
Expected Behavior
All apps register successfully
Observed Behavior
Very rarely (< 5%), SDL Core will crash during the registration process with the following DCHECK message:
OS & Version Information
Backtrace
The text was updated successfully, but these errors were encountered: