Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install in Engine or Game #270

Open
SJOEC opened this issue Oct 25, 2023 · 13 comments
Open

Unable to install in Engine or Game #270

SJOEC opened this issue Oct 25, 2023 · 13 comments

Comments

@SJOEC
Copy link

SJOEC commented Oct 25, 2023

Running AutomationTool...
Using bundled DotNet SDK version: 6.0.302
Starting AutomationTool...
Parsing command line: BuildPlugin -Unversioned -Plugin=C:\Users\johan\AppData\Local\Temp\UnrealLink\Dudovyl\RiderLink.uplugin -Package=C:\Users\johan\AppData\Local\Temp\UnrealLink\Porupuz
Initializing script modules...
Total script module initialization time: 0.26 s.
Executing commands...
Copying 394 file(s) using max 64 thread(s)
Reading plugin from C:\Users\johan\AppData\Local\Temp\UnrealLink\Porupuz\HostProject\Plugins\RiderLink\RiderLink.uplugin...
Building plugin for host platforms: Win64
Running: E:\Unreal\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "E:\Unreal\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" UnrealEditor Win64 Development -Project="C:\Users\johan\AppData\Local\Temp\UnrealLink\Porupuz\HostProject\HostProject.uproject" -plugin="C:\Users\johan\AppData\Local\Temp\UnrealLink\Porupuz\HostProject\Plugins\RiderLink\RiderLink.uplugin" -noubtmakefiles -manifest="C:\Users\johan\AppData\Local\Temp\UnrealLink\Porupuz\HostProject\Saved\Manifest-UnrealEditor-Win64-Development.xml" -nohotreload -log="C:\Users\johan\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Unreal+UE_5.3\UBT-UnrealEditor-Win64-Development.txt"
Log file: C:\Users\johan\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Unreal+UE_5.3\UBT-UnrealEditor-Win64-Development.txt
Total execution time: 5.10 seconds
Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'element')
at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit)
Failed to build RiderLink plugin for E:\Unreal\UE_5.3
Failed to build RiderLink plugin

I have my projects in the disk "E:".

@SJOEC
Copy link
Author

SJOEC commented Oct 25, 2023

UBT-UnrealEditor-Win64-Development.txt

here's the log file

@nikolaipaul
Copy link

Have the same issue

@DecoyRS
Copy link
Contributor

DecoyRS commented Nov 7, 2023

Hello folks!
What version of UE are you using? I mean, is it from source, or from Epic Games Launcher?
Logs say that the crash happened in the line that doesn't correspond to the UE 5.3.1 from EGS.
If you have custom Unreal Engine version, would you be so kind as to add logs to Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs file.
In protected void AddAllValidModulesToTarget(ILogger Logger) function, add
Logger.LogDebug("Check if {Module} is responsible for crash", ModuleName);
before
if (!ModuleRules.IsValidForTarget(RulesType, Rules, out string? InvalidReason)) line
and share the logs again.

@nikolaipaul
Copy link

@DecoyRS

I only have this problem when directly trying to open the .uproject with Rider.

  • Im using UE 5.3.1
  • Its from the Epic Games Launcher

Here is my log with the addition:
Log_GPF.txt

This is the error Rider is showing:
11:20:01.038: Log file: C:\Users\Nikolai\AppData\Local\UnrealBuildTool\Log_GPF.txt 11:20:01.126: Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64. 11:20:01.126: See the log file for detailed information 11:20:01.131: Generating Rider project files: 11:20:01.623: Writing project files... 11:20:01.623: Exception while generating include data for Target:UnrealEditor, Platform: Win64, Configuration: Development 11:20:01.632: System.ArgumentNullException: Value cannot be null. (Parameter 'element') 11:20:01.632: at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit) 11:20:01.632: at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](MemberInfo element) 11:20:01.632: at UnrealBuildTool.ModuleRules.IsValidForTarget(Type ModuleType, ReadOnlyTargetRules TargetRules, String& InvalidReason) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\ModuleRules.cs:line 1623 11:20:01.632: at UnrealBuildTool.UEBuildTarget.AddAllValidModulesToTarget(ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3886 11:20:01.632: at UnrealBuildTool.UEBuildTarget.PreBuildSetup(ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3354 11:20:01.632: at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, UnrealIntermediateEnvironment IntermediateEnvironment, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1366 11:20:01.632: at UnrealBuildTool.RiderProjectFile.WriteProjectFile(List1 InPlatforms, List1 InConfigurations, PlatformProjectGeneratorCollection PlatformProjectGenerators, JsonWriterStyle Minimize, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\Rider\RiderProjectFile.cs:line 110 11:20:03.282: Writing project files... 100%

@jeffkasunic
Copy link

I'm not sure if we are having the same problem. But I was getting similar error messages, and was able to fix it with these steps:

  1. Uninstall Unreal Engine.
  2. Uninstall Rider.
  3. Install Visual Studio
  4. Install Unreal Engine using Visual Studio as the IDE. UE Editor Preferences - Source Code - Visual Studio
  5. Made a test C++ project using Visual Studio.
  6. Install Rider.

Basically, try uninstalling everything. Reinstall things with Rider being the final step.

@nikolaipaul
Copy link

I'm not sure if we are having the same problem. But I was getting similar error messages, and was able to fix it with these steps:

  1. Uninstall Unreal Engine.
  2. Uninstall Rider.
  3. Install Visual Studio
  4. Install Unreal Engine using Visual Studio as the IDE. UE Editor Preferences - Source Code - Visual Studio
  5. Made a test C++ project using Visual Studio.
  6. Install Rider.

Basically, try uninstalling everything. Reinstall things with Rider being the final step.

Thanks. It did work.

@edelmeier
Copy link

Thanks for sharing your insights.
I also have the same issue. C'mon...reinstall everything? Anyone got an idea how to get rid of this?

@bluebright
Copy link

Sorry for leaving my comment here. I have the same issue too.

"Failed to build RiderLink plugin" message show me in Only UE 5.3.2
(But another lastest version of UE is working 4.27 / 5.0 / 5.1 / 5.2)

In my Environment

  • Engine install in Drive "D"
  • Path value in "Regedit" is correct (\HKEY_LOCAL_MACHINE\SOFTWARE\EpicGames\Unreal Engine\5.3)
  • Installed VS Pro 2019, but 2022 is Build Tools
  • Rider Version 2023.3.4 (There was the same issue in the last two versions.). Reinstall rider is not work...

ps. Sorry for bad english

UBT-UnrealEditor-Win64-Development.txt

@linqen
Copy link

linqen commented Apr 30, 2024

Hey, check my answer here:
#278 (comment)

@bluebright
Copy link

Hey, check my answer here: #278 (comment)

Sorry. Not working...

@DecoyRS
Copy link
Contributor

DecoyRS commented Jun 12, 2024

Hello folks, sorry for taking forever to get back to this issue. It's been years and we're still trying to get a proper repro for this case, as It happens seemingly randomly and it randomly resolves itself after some time e.g. cleaning project doesn't work, rebooting PC doesn't work, leaving PC and doing nothing for couple of hours randomly fixes the issue and allows to update the plugin normally >< Unfortunately, this is not an actionable solution in any shape or form.
We're still knee deep in the investigation, though we hope we'll be able to dig to the bottom of it with Epic Games this time.

@linqen
Copy link

linqen commented Jun 14, 2024

Hi @DecoyRS , reinstalling the engine worked to me. In my opinion this is related to changes inside the engine and Rider cached information on AppData.

The fix I proposed in my comment didn't even lasted for long...

@knejadfard
Copy link

knejadfard commented Oct 1, 2024

Hi @DecoyRS , reinstalling the engine worked to me. In my opinion this is related to changes inside the engine and Rider cached information on AppData.

The fix I proposed in my comment didn't even lasted for long...

A little late to the game but wanted to report same here! Reinstalling the 5.4.4 engine worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants