smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
240 stars 245 forks source link

SDL Core crash 'Unhandled smart object type' during fails resumption for 1st app #3917

Open VjKlepikov opened 2 years ago

VjKlepikov commented 2 years ago

Bug Report

SDL Core crash ''Unhandled smart object type'' during fails resumption for 1st app and succeeded for 2nd app in case if HMI responds with result code to at least one request from SDL related to the 1st app

Occurrences:

0.1%

Reproduction Steps
  1. Two App are registered
  2. Apps added some resumption data
  3. Ignition On/Off
  4. App re-connected
  5. During resumption SDL sends requests to HMI
  6. HMI responds with result code to at least one request from SDL related to the 1st app
Expected Behavior

SDL does respond RegisterAppInterfaceResponse(success=true,result_code=RESUME_FAILED) to mobile application app1 SDL restores all data for app2 SDL respond RegisterAppInterfaceResponse(success=true,result_code=SUCCESS) to mobile application app2

Observed Behavior

Core crash smartDeviceLinkCore: /home/jenkins/workspace/Issue_12914_SDL_NoUT_H/src/components/smart_objects/src/smart_object.cc:723: void ns_smart_device_link::ns_smart_objects::SmartObject::duplicate(const ns_smart_device_link::ns_smart_objects::SmartObject&): Assertion `(!"Unhandled smart object type")' failed.

OS & Version Information
Test Case, Sample Code, and / or Example App

./test_scripts/Resumption/Handling_errors_from_HMI/008_resume_all_data_with_one_error_rpc_2apps_ign_off.lua

Logs:

2022-05-16_10-40-17.478_failed.tar.gz