From 25f31dc1cbedf2815c00812e809e8e41c7739aa7 Mon Sep 17 00:00:00 2001 From: cmurug728 <111862827+cmurug728@users.noreply.github.com> Date: Fri, 13 Oct 2023 23:31:30 +0530 Subject: [PATCH] SERXIONE-2617: WPEProcess crash with TTS::TTSManager::interrupted (#4526) Reason for change: During Destruction Process of TTSSpeaker m_callback is set to NULL and it accessed by GstremerThreadFuc which leads to crash Signed-off-by: Chockalingam Murugan Test Procedure: Sanity Testing in apps Priority: P1 Risks: None Co-authored-by: Ramasamy Thalavay Pillai --- TextToSpeech/CHANGELOG.md | 6 +++++- TextToSpeech/TextToSpeech.cpp | 2 +- TextToSpeech/impl/TTSManager.cpp | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/TextToSpeech/CHANGELOG.md b/TextToSpeech/CHANGELOG.md index 2812632fdb..039fc9ec2a 100644 --- a/TextToSpeech/CHANGELOG.md +++ b/TextToSpeech/CHANGELOG.md @@ -16,7 +16,11 @@ All notable changes to this RDK Service will be documented in this file. * For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README. -## [1.0.16] - 2023-10-18 +# [1.0.17] - 2023-10-20 +### Fixed +- Fixed crash with TTS::TTSManager::interrupted signature + +# [1.0.16] - 2023-10-18 ### Changed - Added missing TTS Event Logs diff --git a/TextToSpeech/TextToSpeech.cpp b/TextToSpeech/TextToSpeech.cpp index 09ed51c946..07e20f9c24 100644 --- a/TextToSpeech/TextToSpeech.cpp +++ b/TextToSpeech/TextToSpeech.cpp @@ -21,7 +21,7 @@ #define API_VERSION_NUMBER_MAJOR 1 #define API_VERSION_NUMBER_MINOR 0 -#define API_VERSION_NUMBER_PATCH 16 +#define API_VERSION_NUMBER_PATCH 17 #define API_VERSION_NUMBER 1 namespace WPEFramework { diff --git a/TextToSpeech/impl/TTSManager.cpp b/TextToSpeech/impl/TTSManager.cpp index b635fcd967..cfb4fccc23 100644 --- a/TextToSpeech/impl/TTSManager.cpp +++ b/TextToSpeech/impl/TTSManager.cpp @@ -41,7 +41,8 @@ TTSManager::TTSManager(TTSEventCallback *callback) : TTSManager::~TTSManager() { TTSLOG_TRACE("TTSManager::~TTSManager"); - m_callback = NULL; + TTSEventCallback dummyCallback; + m_callback = &dummyCallback; // Clear Speaker Instance if(m_speaker) {