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"

BuildCookRun.Automation.cs crashes when project file is missing (fix included)

Hi,

BuildCookRun.Automation.cs crashes in some cases when the project file is missing.

The code normally will set the private variable ProjectFullPath but one code path it can fail to do so which causes a crash before even throwing the "Could not find a project file {0}" exception.

The fix is fairly simple: replace these lines (around line 335):

 if (!FileExists_NoExceptions(ProjectFullPath.FullName))
 {
     throw new AutomationException("Could not find a project file {0}.", ProjectName);
 }

with these:

 if (GameProj == null || !FileExists_NoExceptions(ProjectFullPath.FullName))
 {
     throw new AutomationException("Could not find a project file {0}.", ProjectName);
 }
 

Cheers, Laurent

Product Version: UE 4.12
Tags:
more ▼

asked Sep 08 '16 at 04:49 PM in Bug Reports

avatar image

Laurent.Nvizzio
11 7 4

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

1 answer: sort voted first

Hi Laurent,

Thank you for pointing this out. Typically if you already have a possible fix for an issue, we suggest that you submit a pull request on GitHub. This provides us with a better way of tracking and evaluating the suggested fix. If you are unable to submit a pull request, or prefer not to, please let me know.

Tim

more ▼

answered Sep 09 '16 at 08:40 PM

avatar image

Tim C ♦♦ STAFF
18.2k 423 69 286

(comments are locked)
10|2000 characters needed characters left
Your answer
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