x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UnrealBuildTool generates System.IO.PathTooLongException

UnrealBuildTool seems to be using .net 4.5 which has a known bug that causes System.IO.PathTooLongException to be thrown on paths longer than 260 characters (yes I know this crops up in lots of legacy windows APIs, but its not a modern limitation). This has been causing us grief recently on our automated build machine (which generates unique directories for each build), as well as cropping up from time to time from different devs that clone our project to different directories. We have worked around this on our CI machine by mounting as close to the root as possible, but some of the paths are still awfully close to the limit and make us a bit uncomfortable (~250 characters).

The good news is that .net 4.6.2 fixes the issue (see: https://blogs.msdn.microsoft.com/dotnet/2016/08/02/announcing-net-framework-4-6-2/#bcl), so ideally UnrealBuildTool updates its target .net version and we can stop forcing everyone to clone directly to their C drive.

Product Version: UE 4.16
Tags:
more ▼

asked Jul 18 '17 at 10:44 PM in Bug Reports

avatar image

zdoles
46 2 2 3

avatar image Phil.McardleCG Sep 27 '17 at 02:56 PM

Fwiw, I tried retargeting UBT myself using the provided instructions, but it eventually fails in DynamicCompilation.cs, and I'm not enough of a C# programmer to try to remedy that.

It would be good if Epic could update their tools to take advantage of this change in Windows.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question