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"

My Project Runs in Editor but Crashes with Access Violation After Packaging

The game works fine in the Editor, but after packaging it tends to crash (mostly when it should go to another level or when the character dies). Can someone please help me?

https://answers.unrealengine.com/questions/661098/crash-on-packaged-project.html

I already asked for help once and no one answered...


Access violation - code c0000005 (first/second chance not available)

UE4Game_Win64_Shipping!FCrc::Strihash_DEPRECATED() UE4Game_Win64_Shipping!GetTypeHash() UE4Game_Win64_Shipping!TSet >,TDefaultMapKeyFuncs,0>,FDefaultSetAllocator>::FindId() UE4Game_Win64_Shipping!FCompositeFontCache::GetFontFace() UE4Game_Win64_Shipping!FSlateFontRenderer::GetFontFaceForCharacter() UE4Game_Win64_Shipping!FSlateTextShaper::PerformKerningOnlyTextShaping() UE4Game_Win64_Shipping!FSlateTextShaper::ShapeBidirectionalText() UE4Game_Win64_Shipping!FSlateFontCache::ShapeBidirectionalText() UE4Game_Win64_Shipping!FShapedTextCache::AddShapedText() UE4Game_Win64_Shipping!FShapedTextCache::FindOrAddShapedText() UE4Game_Win64_Shipping!ShapedTextCacheUtil::MeasureShapedText() UE4Game_Win64_Shipping!FSlateTextRun::Measure() UE4Game_Win64_Shipping!FTextLayout::FRunModel::CreateBlock() UE4Game_Win64_Shipping!FTextLayout::CreateLineViewBlocks() UE4Game_Win64_Shipping!FTextLayout::FlowLineLayout() UE4Game_Win64_Shipping!FTextLayout::FlowLayout() UE4Game_Win64_Shipping!FTextLayout::UpdateLayout() UE4Game_Win64_Shipping!FTextLayout::UpdateIfNeeded() UE4Game_Win64_Shipping!FTextBlockLayout::ComputeDesiredSize() UE4Game_Win64_Shipping!STextBlock::ComputeDesiredSize() UE4Game_Win64_Shipping!SWidget::CacheDesiredSize() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!SWidget::SlatePrepass() UE4Game_Win64_Shipping!FMenuStack::PrePush() UE4Game_Win64_Shipping!FSlateApplication::DrawPrepass() UE4Game_Win64_Shipping!FSlateApplication::PrivateDrawWindows() UE4Game_Win64_Shipping!FSlateApplication::TickApplication() UE4Game_Win64_Shipping!FSlateApplication::Tick() UE4Game_Win64_Shipping!FEngineLoop::Tick() UE4Game_Win64_Shipping!GuardedMain() UE4Game_Win64_Shipping!GuardedMainWrapper() UE4Game_Win64_Shipping!WinMain() UE4Game_Win64_Shipping!__scrt_common_main_seh() kernel32 ntdll

Product Version: UE 4.15
Tags:
more ▼

asked Jul 09 '17 at 05:31 PM in Packaging & Deployment

avatar image

Aoire
3 1 3

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

3 answers: sort voted first

As you can See it has something todo with your Fonts most likely. Would be nice if you could provide your packaging logs because the error itself means that you try to access something that does not exist. You should search trough your logs for Warnings and Errors and try to fix them before packaging again. (In your Saved/Logs folder)

Dont give up that fast because you encounter a small hurdle. Every Software out there is not 100% Bugfree or Acounts for every possible Error the user Produces. (most Errors come from Users themself and not the Software they are using)

In Worst case Provide the Project to Staff only if you completly Run out of Options to track the error down.

more ▼

answered Jul 16 '17 at 12:56 AM

avatar image

Nachtmahr
6.9k 143 24 168

avatar image Aoire Jul 16 '17 at 04:24 AM

if I search for warnings I get this:

alt text

if I search for errors I get this:

alt text

... any idea of what is wrong?

warn.jpg (180.2 kB)
erro.jpg (92.4 kB)
avatar image Nachtmahr Jul 16 '17 at 05:05 AM

The warning says you have a Mesh that is still linked but cant be found anymore in that director path. You can create a dummy mesh with the same name and path for now to get rid of a potential missing file error that will throw up in the packaged build.

On the Error list you can safly ignore the S_LightError thing I seen it in every package build so far never was a source of trouble.

I would however recommand installing Visual Studio in General. Asside from that it looks fine to me.

So your Game Crashes under some conditions like switching Level or Character Death you said. Du you get sometimes Error Messages while playing in the Editor? Because if you do you have to fix them. Your Editor won´t Crash in most cases (Softcrash you could Say, Editor takes care of your mistakes). In a Shipped Game it will Result in a Hard Crash (Game stops and exits no editor that will avoid it for you)

So you could end up with a correctly packaged Game but your Game Logic that only can produce a error when running will crash down on you. The Packager cant detect Logic errors.

avatar image Aoire Jul 16 '17 at 06:33 PM

I created a copy of a Floor that already existed and simply renamed it... it didn't make the warnings go away. alt text

... thanks for helping, do you know if I did something wrong?

warf.jpg (88.0 kB)
avatar image Nachtmahr Jul 16 '17 at 09:08 PM

hmm should work unless it has a different internal name thats slightly different to avoid linker conflicts. Its very unlikely thats the reasson your Game Crashes. It would Crash instantly as soon as you load a Level where that Asset should be and not on something like Character dead.

But could you Answer the Question if you seen Errors poping up during or right after you Played in the Editor? I want that out of the way first because those kind of Errors would definitly Crash you Shipped Game.

avatar image Aoire Jul 16 '17 at 10:01 PM

I managed to remove those warnings by migrating the assets I made to another empty project. In the Editor, until now, I haven't seen any errors poping while playing (is there a particular place that I should be looking at?)... the packaged project still crashes though.

Tomorrow I am going to change all my Fonts to see if it fixes the problem (even with all Widgets working fine in the Editor...). Thanks and wish me luck!

avatar image Nachtmahr Jul 16 '17 at 10:16 PM

If you keep your Outpu Log open while Playing they will show up there directly. If you End the Game there is usually a popup in the bottom right corner telling you that there where errors/warnings during Play. If you click it it will show you a summery.

You can simply test it by creating some Actor variable, dont assign anything to it and call some function on it on Begin Play. That would result in a Access None error popping up (Hard Crash in shipped Games)

Btw Migrating to a new Project was a nice Idea =)

avatar image Aoire Jul 17 '17 at 05:24 PM

So... I removed all my Fonts and now the packaged project works fine....................................................................................................................................................... THE HELL!!! The Output Log and the Widgets themselves weren't saying anything was wrong! And they were working fine on the Editor!

Well... everything is fine now, so thanks for pointing me in the right direction and for answering my questions =)

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

... no one has a answer or suggestion?

more ▼

answered Jul 10 '17 at 04:37 PM

avatar image

Aoire
3 1 3

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

Never going to use this Game Engine ever again, wasted time and effort making a game that I won't be able to share.

more ▼

answered Jul 15 '17 at 11:20 PM

avatar image

Aoire
3 1 3

(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