Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFix crash on exit. #13445
Merged
Fix crash on exit. #13445
+25
−167
Conversation
This comment has been minimized.
This comment has been minimized.
thanks! |
xbmc/commons/Exception.cpp
Outdated
|
||
void Exception::LogThrowMessage(const char* prefix) const | ||
{ | ||
CLog::Log(LOGERROR,"EXCEPTION Thrown (%s) : %s", classname.c_str(), message.c_str()); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
xbmc/platform/posix/main.cpp
Outdated
@@ -88,7 +87,6 @@ void XBMC_POSIX_HandleSignal(int sig) | |||
int main(int argc, char* argv[]) | |||
{ | |||
// set up some xbmc specific relationships |
This comment has been minimized.
This comment has been minimized.
xbmc/platform/win32/WinMain.cpp
Outdated
@@ -127,7 +126,6 @@ INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR commandLine, INT) | |||
int status; | |||
{ | |||
// set up some xbmc specific relationships |
This comment has been minimized.
This comment has been minimized.
xbmc/threads/Thread.cpp
Outdated
@@ -226,7 +223,7 @@ void CThread::Action() | |||
} | |||
catch (...) | |||
{ | |||
LOG(LOGERROR, "%s - thread %s, Unhandled exception caught in thread process, aborting. auto delete: %d", __FUNCTION__, m_ThreadName.c_str(), IsAutoDelete()); | |||
CLog::Log(LOGERROR, "%s - thread %s, Unhandled exception caught in thread process, aborting. auto delete: %d", __FUNCTION__, m_ThreadName.c_str(), IsAutoDelete()); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Okay, Dealt with the issues that @Rechi pointed out. |
… on CThreads (and Exception) using XbmcContext rather than the means prescribed by GlobalHandling. XbmcContext was originally supposed to be the "down payment" on a dependency injection approach to modularizing the code but it never went anywhere so it's now removed all together.
This comment has been minimized.
This comment has been minimized.
Commits now squashed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
jimfcarroll commentedJan 26, 2018
•
edited
This crash seems to be due to the logger being set on CThreads (and Exception) using XbmcContext rather than the means prescribed by GlobalHandling.
Description
XbmcContext was originally supposed to be the "down payment" on a dependency injection approach to modularizing the code but it never went anywhere so it's now removed all together. All of the code that was dependent on this functionality has been reverted to the standard means.
Motivation and Context
Crash on exit.
How Has This Been Tested?
Ran it several time on Linux so far to make sure it doesn't crash. Since the crash was rare this isn't a foolproof means of testing. @FernetMenta was able to reproduce it relatively easily.
Screenshots (if appropriate):
Types of change
Checklist: