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"

FStaticMeshInstanceBuffer Crash on PIE

I updated from UE 4.16.1 to UE 4.17.

Often, when I try to start playing in the editor, I get a crash regarding the FStaticMeshInstanceBuffer. This is the Crash report:

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

UE4Editor_Engine!FStaticMeshInstanceBuffer::UpdateInstanceData() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\instancedstaticmesh.cpp:137] UE4Editor_Engine!FPerInstanceRenderData::UpdateInstanceData() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\instancedstaticmesh.h:431] UE4Editor_Engine!UInstancedStaticMeshComponent::PostDuplicate() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\instancedstaticmesh.cpp:2052] UE4Editor_CoreUObject!StaticDuplicateObjectEx() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2060] UE4Editor_CoreUObject!StaticDuplicateObject() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1917] UE4Editor_UnrealEd!UEditorEngine::CreatePIEWorldByDuplication() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:3847] UE4Editor_Engine!UGameInstance::InitializeForPlayInEditor() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\gameinstance.cpp:200] UE4Editor_UnrealEd!UEditorEngine::CreatePIEGameInstance() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:3069] UE4Editor_UnrealEd!UEditorEngine::PlayInEditor() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:2526] UE4Editor_UnrealEd!UEditorEngine::StartQueuedPlayMapRequest() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:1218] UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:1549] UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:396] UE4Editor!FEngineLoop::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3215] UE4Editor!GuardedMain() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\launch.cpp:166] UE4Editor!GuardedMainWrapper() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134] UE4Editor!WinMain() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210] UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253] kernel32 ntdll

After updating my project the error occured everytime I started PIE. Then I deleted all my blueprints which used a instance static mesh component and the error vanished.

Edit: I can confirm, when no instanced static mesh components are used this crash does not occcur.

Product Version: UE 4.17
Tags:
more ▼

asked Aug 12 '17 at 10:36 PM in Bug Reports

avatar image

MrRabbit
204 15 26 34

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

4 answers: sort voted first

I ran into this issue as well.

In FStaticMeshInstanceBuffer::SetupCPUAccess(), the function tries to get the CVar value by calling CVar->GetValueOnGameThread(). Since nearly everything is Async Loading now, and this call can happen on the loading thread, you get the crash since it ensures that the call can only be made on the game thread.

So, you can do one of two things:

1) Don't Async load anything.

2) Change the call to CVar->GetValueOnAnyThread().

I made the second change in my codebase without any issue.

Hope that helps!

more ▼

answered Aug 17 '17 at 02:33 PM

avatar image

fxs_don
26 2 1

avatar image MrRabbit Aug 19 '17 at 07:18 PM

Hey fxs_don,

thank you for your reply, glad you found a fix. At the moment I'm using the launcher version so I can't apply your fix. I hope this gets some attention from Epic. Maybe you would be able to provide them a commit with the fix?

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

Hi

A fix was made for 4.17.2 that should be release quite soon.

more ▼

answered Sep 18 '17 at 05:01 PM

avatar image

Michel.Dupuis STAFF
120 2 4 4

avatar image MrRabbit Sep 19 '17 at 03:56 PM

Thank you, Mr. Dupuis, for the reply, I'm glad this issue is fixed soon.

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

I have this same issue, I will test this fix, I hope it works ;)

more ▼

answered Sep 03 '17 at 05:24 AM

avatar image

poke1103
20 1 6 17

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

Is there a release date set?

more ▼

answered Sep 18 '17 at 05:15 PM

avatar image

poke1103
20 1 6 17

avatar image Michel.Dupuis STAFF Sep 18 '17 at 05:16 PM

When QA approved it :)

avatar image poke1103 Sep 18 '17 at 05:18 PM

Alright, cool. :)

(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