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"

Crash on startup in C++ project

Hello! I was trying out some stuff with my HUD, pretty basic stuff.

I compiled on VSE with F7 (Build successful) and while I was still coding UE4 crashed on me. Since then, I haven't been able to open the project back up. Any way I could open it, if only to remove the code that's probably causing the problem?

Here's the logs from my latest attempt.

[link text][1]

Any help would be great. Also, it would be great to know what can cause those kinds of crashes.

Product Version: Not Selected
Tags:
goldeneggredux.log (10.3 kB)
more ▼

asked May 01 '15 at 02:15 PM in C++ Programming

avatar image

Xylord
41 9 13 15

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

2 answers: sort voted first

Hey Xylord,

Looking at the callstack in your log, looks like the problem is on line 83 in muhhud.h. It seems like you're calling GetFirstPlayerController() and that is crashing for some reason. You should be able to open up your project simply from Visual Studio (it'll most likely be in your project history tab - otherwise look for the .sln in your project folder and double click on that), and then fix and rebuild your project and launch the editor again.

more ▼

answered May 01 '15 at 02:38 PM

avatar image

AdeptStrain
526 20 4 22

avatar image Xylord May 01 '15 at 02:47 PM

Awesome! It worked!

To be specific, I removed a PController declaration at the top of the HUD class, and instead pasted it in every function where I needed it.

I guess having a global-ish PController is a no-no.

Thanks again!

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

For those who get this error, here are the steps how to solve this issue :

Step 1 : Debugging infos

First of all, make sure that the debugging infos are installed on you engine, if you get this error message instead of your stacktrace:

You do not have any debugging symbols required to display the callstack for this crash.

Then you need to install them, click on the little arrow next to the engine version, then click on option (see screenshot bellow)

alt text

And make sure that the "debugging symbol" field is checked, it will download the debugging infos (around 2GB).

Step 2 : Start the project

Now when you start the project, you'll see a stacktrace in the crashlog, this should help you to localize the problem.

Step 3 : Fix the issue

In Visual Studio, open your project and comment out the problematic code. To compile the code you can either compile it directly on Visual Studio, or you can also delete the .dll and the .pdb file in your Project Folder/Binaries/Win64 Folder

Now restart the project (if you deleted the dll file, it will recompile your project now), if it still doesn't work, repeat Step 2 (the stacktrace is probably different), but it should work.

ue4.png (19.0 kB)
more ▼

answered Aug 05 '18 at 05:11 PM

avatar image

MyroG
48 4 5 9

(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