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"

UE4 editor crashed while compiling!

after adding c++ code UE4 crashed while compiling it , and when i reopen it keeps crashing, please help ! I added the log file

link text

Product Version: UE 4.15
Tags:
battletank.log (12.5 kB)
more ▼

asked Mar 25 '17 at 07:43 PM in C++ Programming

avatar image

Saher M Sayed
8 1 2

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

2 answers: sort voted first

Your Log doesn't give any relevant information as far as I can tell. Try to open the Visual Studio Solution of your project (.sln) and hit F5 to debug it in visual studio. The editor should start, end when it crashes you can see where it crashes in the code. If you look at the call stack you might see a function of yours in there that causes the problem.

more ▼

answered Mar 25 '17 at 08:11 PM

avatar image

pulp_user
1.3k 46 29 59

avatar image Matthias Hölzl Mar 25 '17 at 08:19 PM

Dang, this time you were faster :D

avatar image pulp_user Mar 25 '17 at 08:25 PM

this is getting personal :D

avatar image Saher M Sayed Mar 25 '17 at 09:05 PM

Thaaaaaaanks guys it worked ..... This instance was causing the crash
LaunchBlast = CreateDefaultSubobject(FName("Collision Mesh"));

do you guys have any idea why it caused a compile time error?!! shouldn't the instance throw the error at runtime not compile time , I think

avatar image pulp_user Mar 25 '17 at 09:07 PM

Since you are using CreateDefaultSubobject i suspect this code is in a constructor? The constructors get called when the editor starts, when the map is loaded, and before you can see anything. So it crashes before you can even see the map.

Its not actual compile time! It happens at runtime.

avatar image Saher M Sayed Mar 25 '17 at 09:25 PM

Yeah you are right :D thanks alot , I appreciate your help so much

avatar image pulp_user Mar 25 '17 at 09:26 PM

Since your question is answered, please accept the answer. (So I get these sweet forum points :D)

avatar image Saher M Sayed Mar 25 '17 at 09:31 PM

Done , whatever I can do to help (Y) , Sir :D

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

I can't see anything in your log file that points to the problem, so unfortunately I can't directly help you. However, the best way to proceed if the editor crashes is to open the project in Visual Studio, switch to the DebugGame configuration (or, even better, the Debug configuration if you are using a source build), set your game project as start-up project in the solution explorer (it should already be set, but sometimes it isn't), and then start the debugger (just press F5).

VS should either point out problems with your source code during compilation, or throw you into the debugger. From the debugger you can, e.g., use the call stack pane to figure out the path through your code that caused the crash.

more ▼

answered Mar 25 '17 at 08:19 PM

avatar image

Matthias Hölzl
416 13 6 19

avatar image Saher M Sayed Mar 25 '17 at 09:04 PM

Thaaaaaaanks guys it worked ..... This instance was causing the crash
LaunchBlast = CreateDefaultSubobject(FName("Collision Mesh"));

do you guys have any idea why it caused a compile time error?!! shouldn't the instance throw the error at runtime not compile time , I think

(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