UE 5 crashing on build

I can confirm that this bug (UE-148515) was fixed in 5.0.2

Version 5.0.3, the problem seems to be back:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff

UnrealEditor_SourceCodeAccess!FSourceCodeAccessModule::HandleModularFeatureRegistered() [D:\build\++UE5\Sync\Engine\Source\Developer\SourceCodeAccess\Private\SourceCodeAccessModule.cpp:156]
UnrealEditor_SourceCodeAccess!TBaseRawMethodDelegateInstance<0,FSourceCodeAccessModule,void __cdecl(FName const &,IModularFeature *),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:470]
UnrealEditor_Core!TMulticastDelegate<void __cdecl(FName const &,IModularFeature *),FDefaultDelegateUserPolicy>::Broadcast() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:967]
UnrealEditor_Core!FModularFeatures::RegisterModularFeature() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Features\ModularFeatures.cpp:45]
UnrealEditor_RiderSourceCodeAccess!FRiderSourceCodeAccessModule::GenerateUprojectAccessors() [D:\build\++UE5\Sync\Engine\Plugins\Developer\RiderSourceCodeAccess\Source\RiderSourceCodeAccess\Private\RiderSourceCodeAccessorModule.cpp:78]
UnrealEditor_RiderSourceCodeAccess!FRiderSourceCodeAccessModule::StartupModule() [D:\build\++UE5\Sync\Engine\Plugins\Developer\RiderSourceCodeAccess\Source\RiderSourceCodeAccess\Private\RiderSourceCodeAccessorModule.cpp:20]
UnrealEditor_Core!FModuleManager::LoadModuleWithFailureReason() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp:579]
UnrealEditor_Projects!FModuleDescriptor::LoadModulesForPhase() [D:\build\++UE5\Sync\Engine\Source\Runtime\Projects\Private\ModuleDescriptor.cpp:690]
UnrealEditor_Projects!FPluginManager::TryLoadModulesForPlugin() [D:\build\++UE5\Sync\Engine\Source\Runtime\Projects\Private\PluginManager.cpp:1583]
UnrealEditor_Projects!FPluginManager::LoadModulesForEnabledPlugins() [D:\build\++UE5\Sync\Engine\Source\Runtime\Projects\Private\PluginManager.cpp:1658]
UnrealEditor!FEngineLoop::LoadStartupModules() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4118]
UnrealEditor!FEngineLoop::PreInitPostStartupScreen() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3469]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:137]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Specifications:

  • System: Windo ws 11
  • GPU: NVidia GeForce RTX 3060
  • NVidia Driver: 516.94 (August 9, 2022 version)

I have restored the default 3D settings from NVidia, and my system is fully up to date. I don’t know what else to do. I also tried to run it as administrator, without more success.

Uninstall Rider
Have you Install Rider? I have this problem too.
I install Rider before,I think Rider maybe not support to edit UE5 temporary,So I uninstall Rider,and I run UE5 successfully,I also install Visual Studio,you could have a try,just uninstall Rider