UEGitPlugin
UEGitPlugin copied to clipboard
[bug] A quick shutdown will cause a crash
Steps to Reproduce:
- User opens the project in Unreal Editor;
- Immediately after entering the interface, quickly close the editor;
- This will ultimately trigger an error.
Assertion failed: !IsInGameThread() [File: Plugins\UEGitPlugin\Source\GitSourceControl\Private\GitSourceControlModule.h] [Line: 128]
Cause of the Crash:
static inline FGitSourceControlModule* GetThreadSafe()
{
IModuleInterface* ModulePtr = FModuleManager::Get().GetModule("GitSourceControl");
if (!ModulePtr)
{
// Main thread should never have this unloaded.
check(!IsInGameThread());
return nullptr;
}
return static_cast<FGitSourceControlModule*>(ModulePtr);
}
check triggered an assertion failure.
However, this does not seem to be a problem that can be definitively repeated.
Do you have the full call stack?
@mastercoms
Assertion failed: !IsInGameThread() [File:E:\work\VersionGit\Plugins\UEGitPlugin\Source\GitSourceControl\Private\GitSourceControlModule.h] [Line: 128]
UnrealEditor_GitSourceControl!GitSourceControlUtils::UpdateCachedStates() [E:\work\VersionGit\Plugins\UEGitPlugin\Source\GitSourceControl\Private\GitSourceControlUtils.cpp:2180]
UnrealEditor_GitSourceControl!``FGitSourceControlProvider::CheckRepositoryStatus'::`2'::<lambda_1>::operator()'::`10'::<lambda_2>::operator()() [E:\work\VersionGit\Plugins\UEGitPlugin\Source\GitSourceControl\Private\GitSourceControlProvider.cpp:170]
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_WindowsMoviePlayer
UnrealEditor_WindowsMoviePlayer
UnrealEditor_WindowsMoviePlayer
UnrealEditor_WindowsMoviePlayer
UnrealEditor_Core
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll
I think it's because of the thread.