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"

[Solved] Game can run in editor but packaging fails

Hi everyone, I'm writing a game for a university project that makes use of some third party libraries, both dynamic and static.

The code compiles in any configuration ( Development, Debug, Shipping ) when playing from the editor. However when trying to package the project the process fails during cooking.

The log reports a SECURE CRT: Invalid parameter detected and then the callstack reports that the last function called in my code before the fail is the std::ifstream constructor.

I'm not sure how to solve this, i have other libraries included that use ifstream without any problem so I'm not sure whether i should look for errors there. Also the code runs in the editor so that doesn't really makes sense to me.

I've included the log of the UAT, thanks in advance for any pointers you can give me. link text

Product Version: UE 4.20
more ▼

asked Sep 08 '18 at 08:07 PM in Packaging & Deployment

avatar image

1 1 3

avatar image Shadowriver Sep 09 '18 at 01:44 AM

But your code is not the last on call stack, it goes back to engine code. Please install debug symbols for engine modules, you cna od that in installation options in launcher, this will make function names on engine code display and we might uncover that "Unknown" and help us track down the issue.

You should avoid using C++ standard libraries, i assume this is required as you use some third party library right?

avatar image wireless_potato Sep 10 '18 at 01:20 AM

Hi! Thanks that was a really good tip. I installed the debug symbols for the engine and downloaded the additional .pdb for the other dlls. Turns out opening an ifstream with string.c_str() was a no no but only for the library apparently? I'm not sure.

Anyway C++11 is ok with strings so I changed those and after starting a clean project and migrating the necessary files it cooked no problem. I guess that may have been the cause or maybe not and something else was messed up. Turning it off and on saves the day again.

Thank you again for your help!

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

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