Skip to content

Commit add8a2f

Browse files
authored
Merge pull request rdkcentral#5911 from hgfell683/main
SERXIONE-6067: WPEFramework crash
2 parents b7c2e6e + 26644f8 commit add8a2f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

DisplaySettings/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.
1616

1717
* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
1818

19+
## [2.0.1] - 2024-12-03
20+
### Fixed
21+
- Fixed unhandled exception that was occasionally causing a crash if thread creation failed.
22+
1923
## [2.0.0] - 2024-10-15
2024
### Removed
2125
- Get and Set Delay Offset support has been removed.

DisplaySettings/DisplaySettings.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,11 @@ namespace WPEFramework {
582582
m_service = service;
583583
m_service->AddRef();
584584

585-
m_sendMsgThread = std::thread(sendMsgThread);
585+
try {
586+
m_sendMsgThread = std::thread(sendMsgThread);
587+
} catch (const std::system_error& e) {
588+
LOGERR("Failed to start m_sendMsgThread: %s", e.what());
589+
}
586590
m_timer.connect(std::bind(&DisplaySettings::onTimer, this));
587591
m_AudioDeviceDetectTimer.connect(std::bind(&DisplaySettings::checkAudioDeviceDetectionTimer, this));
588592
m_ArcDetectionTimer.connect(std::bind(&DisplaySettings::checkArcDeviceConnected, this));

0 commit comments

Comments
 (0)