After 4.7->4.9 map crash (maybe D3D11 related)

One of our maps (only one) crashes when loading (both from a running game and when opening in the editor) after upgrading our project to 4.9.
link text

Access violation - code c0000005 (first/second chance not available)
    
UE4Editor_D3D11RHI!FD3D11DynamicRHI::RHISetStreamSource() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\windows\d3d11rhi\private\d3d11commands.cpp:107]
UE4Editor_ShaderCore!FVertexFactory::Set() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\shadercore\private\vertexfactory.cpp:177]

I have attached the crash details.
So far i havn’t been able to get it to work and i have tried redoing the procedure going from 4,7->4.9 but it gives the same result.
Any ideas of what might cause this / how i might be able to get it to work?

Hey ,

Thanks for sending a thorough package of info for me. I was able to find a matching crash in our system, but it appears that it was supposed to be fixed in 4.7.

This leads me to believe the bug is still there, but simply under different repro steps.

Would you be willing to send me the 4.7 version of your project so that we can reproduce this in house? If you’d rather not send the whole project, you could try using the migrate functionality to bring the problematic map into a blank 4.7 project and send that.

If you choose to migrate the map, could you ensure that it still crashes on your end after upgrading to 4.9? Just to be sure

You can upload to Drive, Dropbox, etc and then PM Me the link on the forums.

PS - Leaving this for my own tracking purposes, but the bug in the system is UE-8096

Disregard the previous comment(deleted now), it was just taking a while to load the drive page. Thanks for sending that along though.

I’m still working on this issue, but just wanted to pass along a suggestion to try converting to 4.8 before going all the way to 4.9.

Hi . I tried making a copy and going through 4.7->4.8->4.9.1 and it seems to work! So far i havn’t been able to replicate the bug through this method… This seems promising enough that i will start upgrading on a branch of our repository and do all code changes to make our game work fully in 4.9.
You can consider our problem solved, i will get back to you if anything pops up! :slight_smile:

Yeah our code support guys were saying that it’s best to upgrade one major version at a time. I’m glad it worked. Happy developing!

Hi again . I’m sorry to say that after a little more thorough testing of the upgrading method, the bug still seems to be there. I can open the map separately and then play it, but if i go through our menu it will produce the same bug

I’m getting compile errors when I switch the engine version to 4.9 and recompile. Can you tell me how you’re getting it to work?

I send you a PM with some cpp files that should be enough to get it to work. There were some changes that in the engine that makes the project a little unstable without changes to the blueprints too, but you should be able to reproduce the bug.

We’re getting this crash, too. We’re using the code from Git, and we upgraded to 4.8 and stayed there for a while before upgrading to 4.9, so I don’t think that’s the issue.

Hey -

I’m still not sure what exactly is causing this crash. I have entered a bug report for this crash based on the information available (UE-21411).

Cheers

We have seen the same crash. If you delete the Intermediate folder and run again, the problem dissappears but might comeback later (after several days, probably depending on how much we changed the game). That’s probably why issue was “fixed” when converting the projects from one version to another (but I suspect it might come back anytime).

Hi again, any news on UE-21411?

Hey -

UE-21411 is still open to be worked on. I will update the bug report to reflect the growing interest and will respond here when there is an update to the status of the bug.

Is there any update on this issue?

For me the issue disappeared with 4.10

That’s good news! - Thanks