Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.3.1f1
Issue ID
760282
Regression
No
CreateDirect3D11SurfaceFromDXGISurface crash after code recompile on DirectX API
Steps to reproduce:
1. Download and open attached project "Sweet Castle.zip"
2. Open scene "Level1"
3. Make edits to any script that is within the scene (click on any of the objects and edit its script). Adding a comment to the script is sufficient
4. Switch back to Unity and let it recompile
Actual result: Crash
Expected result: No crash
Note: Game windows has to be present for the crash. If it is not, after recompile, switching to it will crash Unity
If the graphics API was not set to DirectX (version does not seem to matter), Unity will not crash. But upon changing it to DirectX (even after recompile) it will crash
Tested and reproduced on:
Windows 10
Unity 5.0.3f2, 5.1.4f1, 5.2.4p1, 5.3.1p4, 5.4.0b3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
zhujiangbo
Jan 18, 2019 06:39
i got similar crash in untiy 2017.4.14f1.
0x00007FFDB3731634 (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x00007FFD5963386A (UnityPlayer) StreamOutSkinPoseBuffer::Update
0x00007FFD5962E1E2 (UnityPlayer) GfxDeviceD3D11Base::UpdateSkinPoseBuffer
0x00007FFD5964DDBE (UnityPlayer) GfxDeviceWorker::RunCommand
0x00007FFD5964EEAB (UnityPlayer) GfxDeviceWorker::RunExt
0x00007FFD5964EF59 (UnityPlayer) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FFD590E0518 (UnityPlayer) Thread::RunThreadWrapper
0x00007FFDB92E3034 (KERNEL32) BaseThreadInitThunk
0x00007FFDBA333691 (ntdll) RtlUserThreadStart
zhujiangbo
Jan 18, 2019 06:08
i got similar crash in untiy 2017.4.14f1.
0x00007FFDB3731634 (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x00007FFD5963386A (UnityPlayer) StreamOutSkinPoseBuffer::Update
0x00007FFD5962E1E2 (UnityPlayer) GfxDeviceD3D11Base::UpdateSkinPoseBuffer
0x00007FFD5964DDBE (UnityPlayer) GfxDeviceWorker::RunCommand
0x00007FFD5964EEAB (UnityPlayer) GfxDeviceWorker::RunExt
0x00007FFD5964EF59 (UnityPlayer) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FFD590E0518 (UnityPlayer) Thread::RunThreadWrapper
0x00007FFDB92E3034 (KERNEL32) BaseThreadInitThunk
0x00007FFDBA333691 (ntdll) RtlUserThreadStart
AlbertoB
Mar 21, 2018 16:35
We are seeing this in 5.6.4p4
========== OUTPUTING STACK TRACE ==================
0x00007FFCD1C7A13C (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x00007FFCD1C78A6D (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x0000000140B3B215 (Unity) TexturesD3D11::UploadTextureSubData2D
0x0000000140B20E5A (Unity) GfxDeviceD3D11Base::UploadTextureSubData2D
0x0000000140B8C6E8 (Unity) GfxDeviceClient::UploadTextureSubData2D
0x00000001418EDF08 (Unity) TextRenderingPrivate::FontImpl::ResetCachedTexture
0x00000001418F3023 (Unity) TextRenderingPrivate::FontImpl::AwakeFromLoadImpl
0x00000001410932B1 (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
0x0000000141096699 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
0x0000000141096886 (Unity) PersistentManager::IntegrateAllThreadedObjects
0x000000014109B000 (Unity) PersistentManager::LoadAndIntegrateAllPreallocatedObjects
0x000000014109D5BE (Unity) PersistentManager::ReadObject
0x000000014002FA47 (Unity) PPtr<Object>::operator Object * __ptr64
0x00000001402AA529 (Unity) AssetBundleBuilder::BuildInitialObjectSet
0x00000001402D26DB (Unity) AssetBundleBuilder::BuildCustomAssetBundle
0x00000001402D5F1F (Unity) BuildAssetBundle
0x00000001402D6D98 (Unity) BuildAssetBundle
0x00000001402E3059 (Unity) RuntimeStatic<ModuleMetadata,0>::StaticDestroy
0x00000001402E3CA6 (Unity) BuildAssetBundles
0x000000014131394A (Unity) BuildPipeline_CUSTOM_BuildAssetBundlesInternal
0x000000000424BE19 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildAssetBundlesInternal (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget)
0x000000000424BCE3 (Mono JIT Code) [C:\buildslave\unity\build\artifacts\generated\common\editor\BuildPipelineBindings.gen.cs:490] UnityEditor.BuildPipeline:BuildAssetBundles (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget)
0x000000000424BAD0 (Mono JIT Code) [C:\buildslave\unity\build\artifacts\generated\common\editor\BuildPipelineBindings.gen.cs:481] UnityEditor.BuildPipeline:BuildAssetBundles (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTarget)
0x000000000424AEF3 (Mono JIT Code) [C:\jenkins_unity3d_VR_slave\workspace\ShadowGit_AppSize_Check_Android\shadow\Assets\Plugins\mfunity-plugin\Editor\Build\AssetBundlePipeline.cs:291] AssetBundlePipeline:BuildAllAssetBundles (UnityEditor.BuildTarget,bool)
0x00000000042489BB (Mono JIT Code) [C:\jenkins_unity3d_VR_slave\workspace\ShadowGit_AppSize_Check_Android\shadow\Assets\Plugins\mfunity-plugin\Editor\Build\AssetBundlePipeline.cs:131] AssetBundlePipeline:UpdateBundlesToAws (UnityEditor.BuildTarget,bool)
0x000000002C5054A7 (Mono JIT Code) [C:\jenkins_unity3d_VR_slave\workspace\ShadowGit_AppSize_Check_Android\shadow\Assets\Editor\Build\CommandLine.cs:126] CommandLine:PerformBuild ()
0x0000000013780A8E (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFCB8C05CE3 (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
0x00007FFCB8B5849D (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
0x000000014107FF65 (Unity) scripting_method_invoke
0x0000000141075781 (Unity) ScriptingInvocation::Invoke
0x000000014174BBD2 (Unity) Application::ParseARGVCommands
0x0000000141750FE7 (Unity) Application::FinishLoadingProject
0x000000014181F3DB (Unity) WinMain
0x0000000141B05BCC (Unity) strnlen
0x00007FFCD6FA1FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFCD9A4EFC1 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
daisySa
Jan 12, 2018 23:51
I'm getting the same error on 5.6.5f1.
gabosgab
Nov 10, 2016 21:46
I'm running Unity 5.4.2 and still getting these crashes regardless of any patch version I use.
0x00007FFA95B9C82B (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x00007FF67B97EAE0 (SA) [c:\buildslave\unity\build\runtime\gfxdevice\d3d11\drawbuffersd3d11.cpp:142] GfxDeviceD3D11Base::DrawBuffers
0x00007FF67B9AA8D1 (SA) [c:\buildslave\unity\build\runtime\gfxdevice\threaded\gfxdeviceworker.cpp:1574] GfxDeviceWorker::RunCommand
0x00007FF67B9ABC4F (SA) [c:\buildslave\unity\build\runtime\gfxdevice\threaded\gfxdeviceworker.cpp:333] GfxDeviceWorker::Run
0x00007FF67B9A47EA (SA) [c:\buildslave\unity\build\runtime\gfxdevice\threaded\gfxdeviceworker.cpp:316] GfxDeviceWorker::RunGfxDeviceWorker
0x00007FF67B519228 (SA) [c:\buildslave\unity\build\runtime\threads\thread.cpp:48] Thread::RunThreadWrapper
0x00007FFA9C7D8364 (KERNEL32) BaseThreadInitThunk
Initialize engine version: 5.4.2f2 (b7e030c65c9b)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.0]
Renderer: NVIDIA GeForce GTX 970 (ID=0x13c2)
Vendor: NVIDIA
VRAM: 4058 MB