rive-app / rive-unreal

MIT License
88 stars 5 forks source link

Checkf triggered (crash in builds that have no debugger attached) on launch #86

Closed samaursa closed 1 month ago

samaursa commented 5 months ago

Hi!

Recently added Rive UI plugin to our project for evaluation and encounterd a checkf that is being triggered on Editor launch.

No changes to the plugin and using the latest on main with CL#6f867ee with Unreal Engine 5.4.1 (from github).

image

Callstack

>   [Inline Frame] TArray<wchar_t,TSizedDefaultAllocator<32>>::RangeCheck(int) Line 775 C++
    [Inline Frame] TArray<wchar_t,TSizedDefaultAllocator<32>>::RemoveAt(int Count, int) Line 1781   C++
    FString::RemoveAt(int Index, int Count, EAllowShrinking AllowShrinking) Line 650    C++
    [Inline Frame] FDebugLogger::UnIndent() Line 33 C++
    [Inline Frame] FScopeLogIndent::{dtor}() Line 73    C++
    UE::Rive::Renderer::Private::FRiveRendererModule::StartupModule() Line 83   C++
    FModuleManager::LoadModuleWithFailureReason(const FName InModuleName, EModuleLoadResult & OutFailureReason, ELoadModuleFlags InLoadModuleFlags) Line 674    C++
    FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type LoadingPhase, const TArray<FModuleDescriptor,TSizedDefaultAllocator<32>> & Modules, TMap<FName,enum EModuleLoadResult,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,enum EModuleLoadResult,0>> & ModuleLoadErrors) Line 696 C++
    FPluginManager::TryLoadModulesForPlugin(const FPlugin & Plugin, const ELoadingPhase::Type LoadingPhase) Line 2766   C++
    FPluginManager::LoadModulesForEnabledPlugins(const ELoadingPhase::Type LoadingPhase) Line 2903  C++
    FEngineLoop::LoadStartupModules() Line 4737 C++
    FEngineLoop::PreInitPostStartupScreen(const wchar_t * CmdLine) Line 3999    C++
    [Inline Frame] FEngineLoop::PreInit(const wchar_t *) Line 4482  C++
    [Inline Frame] EnginePreInit(const wchar_t *) Line 41   C++
    GuardedMain(const wchar_t * CmdLine) Line 136   C++
    LaunchWindowsStartup(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow, const wchar_t * CmdLine) Line 247   C++
    WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * pCmdLine, int nCmdShow) Line 298 C++
    [Inline Frame] invoke_main() Line 102   C++
    __scrt_common_main_seh() Line 288   C++
schetle commented 5 months ago

My recommendation here is to evaluate on a stable branch. I haven't been able to reproduce this issue on 5.4.1-release.