I was having trouble migrating a project from Unity 3.5.7 to Unity 4.5.x due to an apparent issue with RenderToTexture and Direct3D 11, which caused the Unity editor to crash every time I hit play. The latest (and only) information I found was in another thread here. I was able to get past the issue by unchecking the Player Setting for Direct3D 11.
Does anyone have knowledge or experience with this issue, or an update on when RTT will be made compatible with DirectX 11?
Thanks in advance!
Solved! Go to Solution.
Solved by RichMC. Go to Solution.
I have forwarded this post to development. Any additional details you can provide?
Hi, thanks! When the editor crashes, here is the stack trace from the Unity log file:
========== OUTPUTING STACK TRACE ==================
(0x66C0EFF0) (d3d11): (filename not available): D3D11CreateDeviceAndSwapChain + 0x5d40a
(0x66BB89D6) (d3d11): (filename not available): D3D11CreateDeviceAndSwapChain + 0x6df0
(0x66BB8989) (d3d11): (filename not available): D3D11CreateDeviceAndSwapChain + 0x6da3
(0x2BE58AC1) (libgfxunity3d): (filename not available): SF_GetFileURL + 0x1fb1
(0x2BE5120A) (libgfxunity3d): (filename not available): UnityRenderEvent + 0x13a
(0x007C59B7) c:\buildagent\work\d63dfc6385190b60\runtime\misc\plugins.cpp (154 + 0x0): PluginsRenderMarker + 0x47
(0x006BCCBC) c:\buildagent\work\d63dfc6385190b60\runtime\gfxdevice\gfxdevice.cpp (959 + 0x9): GfxDevice::InsertCustomMarker + 0xc
(0x010FCEBB) c:\buildagent\work\d63dfc6385190b60\runtime\gfxdevice\threaded\gfxdeviceworker.cpp (1269 + 0x0): GfxDeviceWorker::RunCommand + 0x357b
(0x01100541) c:\buildagent\work\d63dfc6385190b60\runtime\gfxdevice\threaded\gfxdeviceworker.cpp (215 + 0x14): GfxDeviceWorker::RunGfxDeviceWorker + 0x51
(0x0090EA3D) c:\buildagent\work\d63dfc6385190b60\runtime\threads\thread.cpp (40 + 0x9): Thread::RunThreadWrapper + 0x2d
(0x76CD338A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
(0x77489F72) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
(0x77489F45) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36
I'm running Unity 4.5.2 on Windows 7 64-bit, using a Parallels virtual machine. Others in my company are experiencing the same crash on native Windows environments. The editor crashes before displaying anything in the game.
Please let me know if you need anything else.
From Development:
RTT is not functional on D3D11 – I don’t think it should be outright crashing though. We’ll have to look at that.
____________
Thanks for checking for me! I can consistently recreate the crash while running the sample project that came with the sf_4.2_unity download.