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

… no one has a answer or suggestion?

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

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

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!

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?

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

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

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.

if I search for warnings I get this:

if I search for errors I get this:

… any idea of what is wrong?

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.

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.

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 =)

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 =)