smartdevicelink / sdl_core

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

Core crash during App unregistered with PROTOCOL_VIOLATION #3871

Closed VjKlepikov closed 2 years ago

VjKlepikov commented 2 years ago

Bug Report

Core crash during App unregistered with PROTOCOL_VIOLATION

Occurrences: ~0.1%
Reproduction Steps
  1. Set StopStreamingTimeout = 3000 in SDL .INI file
  2. Start SDL, HMI, connect Mobile device
  3. Register PROJECTION (App_1) and NAVIGATION (App_2) applications
  4. Activate App_1 and start Video streaming
  5. Deactivate App_1 (streaming still continue since app has STREAMABLE state)
  6. Activate App_2
Expected Behavior

SDL does: send OnHMIStatus(FULL, STREAMABLE) notification to App_2 send OnHMIStatus(LIMITED, NOT_STREAMABLE) notification to App_1 send Navi.OnVideoDataStreaming(false) notification to HMI start 1st 'StopStreamingTimeout' timeout

Once timeout is expired SDL does:

Observed Behavior

Core crash

OS & Version Information

OS/Version: Ubuntu 18.04 SDL Core Version: 8.0 + develop (8.1 release candidate)

Test Case, Sample Code, and / or Example App

./test_scripts/Defects/6_1/3139_03_Stop_streaming_forcibly_app_continue_streaming.lua

Logs:

2022-02-28_05-18-50.845_failed.tar.gz

VjKlepikov commented 2 years ago

Please notice this is a non-regression issue. It's also reproduced on release 8.0

ShobhitAd commented 2 years ago

Closed via https://github.com/smartdevicelink/sdl_core/pull/3920