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"

UBT can parse content that exceeds the length of the file

Define a marco at the end of a header file: alt text

Open UnrealHeaderTool project, In the function "FBaseParser::GetChar", add a breakpoint with condition "InputPos>InputLen+1".Then start debugging UnrealHeaderTool with arguments copyed from the game project. Wait until the breadpoint is triggered: alt text

At this moment, UBT starts to parse the part of "FBaseParser::Input" which is not belonged to the header file.Then any unexpected compilation error maybe happened in other header files!!!

This bug took me a whole day to find...

Please to fix it as soon as possible :)

Product Version: UE 4.17
Tags:
ue4bug2.png (8.1 kB)
ue4bug.png (13.7 kB)
more ▼

asked Sep 15 '17 at 12:40 PM in Bug Reports

avatar image

superman_tb
66 1 2

avatar image Tim C ♦♦ STAFF Sep 20 '17 at 08:20 PM

Hi superman_tb,

When I added a macro to the end of a header file as you showed, the last \ character seemed to consume the end of file character. However, that only happened if I did not add some extra blank lines between the macro and the end of the file. If you do not include the last \ character, do you still run into this issue?

I was not able to get the conditional breakpoint that you mentioned setting to get hit. Could you clarify what arguments you are using when you start debugging UHT?

Tim

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi, Tim. alt text

I deleted the last '\' character, and this issue was solved.

The arguments of UHT were as below:

alt text

Thank you very much.

bug4.png (11.5 kB)
bug3.png (14.2 kB)
more ▼

answered Sep 22 '17 at 12:07 PM

avatar image

superman_tb
66 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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