d3d11: failed to create 2D texture

We’re still getting this error in the live build in Unity 2017.1.0p4 on a lot of users with AMD Radeon cards using SteamVR. We’ve seen it with RX 470, RX 480, and RX 580 that we know of, even though they’re on latest drivers. Will release an update soon fixing some NPOT textures and we’ll see if that fixes the issue.

There is a solution - Garbage Collection

Context - Well I have been having the exact same problem. I am developing an application for HoloLens and I had this problem. I had the images available to me in the form of bytes and I had do some image processing on them. But before that, I need to compress the images (available as raw byte array) to JPG so that I could send them over the network to a server which will do the processing for me.

For this, I had to load the bytes to a Texture2D using LoadRawTextureData method followed by the Apply() method. After that I used the EncodeToJPG method to compress the image. The method gave me the result in form of a byte array. After this I transferred the image over the network.

Now this were the problem came, since all of this was happening in a co-routine. The app kept crashing after every 1483 frames which was a very peculiar number. So this time I started the debugger on Visual Studio and found out this error:

d3d11: failed to create 2D texture … width=896 height=504 … [D3D error was 887a0005]

Now this is has nothing to with NPOT and POT types textures.

Solution 1: Call Resource.UnloadUnsedAssets() followed by a GC.Collect() after you are done using the texture data in the co-routine/loop/function. I did this since the Texture I declared is a global variable.
Solution 2: Or you can create Texture inside the function. Do all your process. At the end, call Destroy(textureName) to free up the space.

I have tested both solutions, both work fine. I did not end up using Solution 2 because for my application 1 suited best as solution 2 was a little slower than 1.

2 Likes

@DDNA Thank you for pointing me in the right direction. Your solution worked out in my case.

Had the same problem while doing automated builds using jenkins on a windows server. When building on my local windows machine everything was working fine. After building on the server only one UI-texture was not displayed all other textures where working fine.
In player log (not the build logs) the aforementioned error message was displayed:

d3d11: failed to create 2D texture id=87 width=50 height=50 mips=7 dxgifmt=28 [D3D error was 80070057] After checking the faulty texture I noticed it was the only texture not being POT. After resizing the texture to POT and disabling mips, the texture appeared again.

I also have this issue when I deploy my app to Hololens. I modify my texture’s max size from 2048 to 1024,and solve it. May be my resource is too big for Hololens.

I also have this bug in unity 2018 1.1 f1, no idea why. sometimes the main camera turns black, sometimes the “camera” of my cars realtime- reflectionprobe turns black and gives me this out:

d3d11: failed to create 2D texture shader resource view id=33698 [D3D error was 887c0003]

Log output

Mono path[0] = 'Z:/Users/Marcell/Desktop/RacingGame/RacingGame_Data/Managed'
Mono config path = 'Z:/Users/Marcell/Desktop/RacingGame/Mono/etc'
PlayerConnection initialized from Z:/Users/Marcell/Desktop/RacingGame/RacingGame_Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55061
Multi-casting "[IP] 192.168.0.2 [Port] 55061 [Flags] 3 [Guid] 3125629614 [EditorId] 1676139634 [Version] 1048832 [Id] WindowsPlayer(DESKTOP-5VKUR6U) [Debug] 0" to [225.0.0.222:54997]...
Waiting for connection from host on [0.0.0.0:55061]...
Timed out. Continuing without host connection.
Started listening to [0.0.0.0:55061]
PlayerConnection already initialized - listening to [0.0.0.0:55061]
Initialize engine version: 2018.1.1f1 (b8cbb5de9840)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: NVIDIA GeForce GTX 980 Ti (ID=0x17c8)
Vendor: (null)
VRAM: 3072 MB
Driver: 24.21.14.1170
FMOD failed to set the software format to the custom sample rate 1, trying software fallback rate 48000
(Filename: C:\buildslave\unity\build\Modules/Audio/Public/AudioManager.cpp Line: 1333)

Begin MonoManager ReloadAssembly
- Completed reload, in 0.054 seconds
<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 0.459113 ms
NullReferenceException: Object reference not set to an instance of an object
at PlayerCarLightController.Start () [0x00016] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\PlayerCarLightController.cs:16
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/PlayerCarLightController.cs Line: 16)

NullReferenceException: Object reference not set to an instance of an object
at ApplyPerformanceUpgrades.Start () [0x00022] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\Reference_Scripts\ApplyPerformanceUpgrades.cs:23
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Recources/GameplayElements/TUNING_SYSTEM/Reference_Scripts/ApplyPerformanceUpgrades.cs Line: 23)

NullReferenceException: Object reference not set to an instance of an object
at ChangeGroundClearence.Start () [0x0000c] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\ChangeGroundClearence.cs:24
at SavegameManager.Start () [0x00044] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\SavegameManager.cs:24
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Recources/GameplayElements/TUNING_SYSTEM/ChangeGroundClearence.cs Line: 24)

NullReferenceException: Object reference not set to an instance of an object
at ChangeGroundClearence.Start () [0x0000c] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\ChangeGroundClearence.cs:24
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Recources/GameplayElements/TUNING_SYSTEM/ChangeGroundClearence.cs Line: 24)

NullReferenceException: Object reference not set to an instance of an object
at CarNamesAndLogos.FixedUpdate () [0x00001] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\CarNamesAndLogos.cs:25
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/CarNamesAndLogos.cs Line: 25)

UnityCar: Tires "supersport_front" loaded on front axle (Car)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CarDynamics:SetTiresType() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:327)
CarDynamics:Start() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:180)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/CarDynamics.cs Line: 327)

UnityCar: Tires "supersport_rear" loaded on rear axle (Car)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CarDynamics:SetTiresType() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:333)
CarDynamics:Start() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:180)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/CarDynamics.cs Line: 333)

NullReferenceException: Object reference not set to an instance of an object
at ForceController.Start () [0x0000c] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\ForceController.cs:79
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/ForceController.cs Line: 79)

UnityCar: Tires "supersport_front" loaded on front axle (Car)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CarDynamics:SetTiresType() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:327)
ForceController:FixedUpdate() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\ForceController.cs:138)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/CarDynamics.cs Line: 327)

UnityCar: Tires "supersport_rear" loaded on rear axle (Car)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CarDynamics:SetTiresType() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:333)
ForceController:FixedUpdate() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\ForceController.cs:138)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/CarDynamics.cs Line: 333)

NullReferenceException: Object reference not set to an instance of an object
at Nitro.Start () [0x0000c] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\Nitro.cs:39
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/Nitro.cs Line: 39)

NullReferenceException: Object reference not set to an instance of an object
at DigitalRuby.RainMaker.TireWaterParticle.Start () [0x0000c] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\TireWaterParticle.cs:19
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/TireWaterParticle.cs Line: 19)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

NullReferenceException: Object reference not set to an instance of an object
at CarNamesAndLogos.FixedUpdate () [0x00001] in Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\CarNamesAndLogos.cs:25
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/CarNamesAndLogos.cs Line: 25)

UnityCar: Tires "supersport_front" loaded on front axle (Car)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CarDynamics:SetTiresType() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:327)
ApplyPerformanceUpgrades:Apply_Stock_Tire_Settings() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\Reference_Scripts\ApplyPerformanceUpgrades.cs:177)
<ApplyPerfUpgrades>c__Iterator0:MoveNext() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\CarConfigIDs.cs:330)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/CarDynamics.cs Line: 327)

UnityCar: Tires "supersport_rear" loaded on rear axle (Car)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CarDynamics:SetTiresType() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\CarDynamics.cs:333)
ApplyPerformanceUpgrades:Apply_Stock_Tire_Settings() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\Reference_Scripts\ApplyPerformanceUpgrades.cs:177)
<ApplyPerfUpgrades>c__Iterator0:MoveNext() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Recources\GameplayElements\TUNING_SYSTEM\CarConfigIDs.cs:330)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/CarDynamics.cs Line: 333)

CHECKED LAST CAR
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
<UpdateStart>c__Iterator0:MoveNext() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Scripts\SpawnCar.cs:332)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Scripts/SpawnCar.cs Line: 332)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 20.181085 ms
System memory in use before: 461.3 MB.
System memory in use after: 114.8 MB.

Unloading 4038 unused Assets to reduce memory usage. Loaded Objects now: 18792.
Total: 31.794088 ms (FindLiveObjects: 1.162220 ms CreateObjectMapping: 0.743984 ms MarkObjects: 0.428710 ms DeleteObjects: 29.458917 ms)

Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.540359 ms
System memory in use before: 111.4 MB.
System memory in use after: 112.4 MB.

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 18792.
Total: 1.409022 ms (FindLiveObjects: 0.853589 ms CreateObjectMapping: 0.181908 ms MarkObjects: 0.355640 ms DeleteObjects: 0.017628 ms)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.176032 ms
d3d11: failed to create 2D texture shader resource view id=33628 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33630 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33632 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33634 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33636 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

Chase
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
CopAI_Actions:Chase() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Race_Rec\AI_Cars\CopSystem\Cops\CopAI_Actions.cs:61)
CopAI_Actions:Start() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Race_Rec\AI_Cars\CopSystem\Cops\CopAI_Actions.cs:37)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Race_Rec/AI_Cars/CopSystem/Cops/CopAI_Actions.cs Line: 61)

d3d11: failed to create 2D texture shader resource view id=33720 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33718 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33708 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33714 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33710 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33712 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33690 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33688 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33694 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33692 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33696 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33686 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33724 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33722 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33716 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33706 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33704 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33698 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33702 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

d3d11: failed to create 2D texture shader resource view id=33700 [D3D error was 887c0003]

(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 386)

System memory in use before: 1.01 GB.
System memory in use after: 1.01 GB.

Unloading 8 unused Assets to reduce memory usage. Loaded Objects now: 44781.
Total: 6.766118 ms (FindLiveObjects: 1.776415 ms CreateObjectMapping: 0.951952 ms MarkObjects: 3.971322 ms DeleteObjects: 0.066171 ms)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

somethingEntered
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.MonoBehaviour:print(Object)
Wheel:OnTriggerEnter(Collider) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Standard Assets\UnityCarScripts\Wheel.cs:1093)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Standard Assets/UnityCarScripts/Wheel.cs Line: 1093)

Vehicle node invalid, check all nodes on this road piece have correct links as this is probably the issue!: "2 - 2 Lanes - Straight - ( Road V2 )" -> Previous Node was: "Node1a"
TIP: In "Editor Mode" try clicking on the road piece then clicking off it as this should remove any null links.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
TrafficSystemVehicle:SetNextNode(TrafficSystemNode) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:1023)
TrafficSystemVehicle:Update() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:926)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Traffic System/Scripts/TrafficSystemVehicle.cs Line: 1023)

Vehicle set to kill on empty path so we will destroy vehicle Traffic System Vechile - Full Test Car(Clone)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
TrafficSystemVehicle:SetNextNode(TrafficSystemNode) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:1026)
TrafficSystemVehicle:Update() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:926)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Traffic System/Scripts/TrafficSystemVehicle.cs Line: 1026)

Vehicle Destroyed - No path node
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
TrafficSystemVehicle:Update() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:942)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Traffic System/Scripts/TrafficSystemVehicle.cs Line: 942)

Vehicle node invalid, check all nodes on this road piece have correct links as this is probably the issue!: "2 Lanes - Straight" -> Previous Node was: "Node2a"
TIP: In "Editor Mode" try clicking on the road piece then clicking off it as this should remove any null links.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
TrafficSystemVehicle:SetNextNode(TrafficSystemNode) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:1023)
TrafficSystemVehicle:Update() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:926)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Traffic System/Scripts/TrafficSystemVehicle.cs Line: 1023)

Vehicle set to kill on empty path so we will destroy vehicle Traffic System Vechile - Full Test Car(Clone)
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
TrafficSystemVehicle:SetNextNode(TrafficSystemNode) (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:1026)
TrafficSystemVehicle:Update() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:926)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Traffic System/Scripts/TrafficSystemVehicle.cs Line: 1026)

Vehicle Destroyed - No path node
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
TrafficSystemVehicle:Update() (at Z:\Users\Marcell\Desktop\UnityCar 2.2 Pro_Unity_2018\Assets\Traffic System\Scripts\TrafficSystemVehicle.cs:942)
(Filename: Z:/Users/Marcell/Desktop/UnityCar 2.2 Pro_Unity_2018/Assets/Traffic System/Scripts/TrafficSystemVehicle.cs Line: 942)

I have this in 2018.3, when I make a build. By the way how can I find those textures by id?

I’ve found source of the issue. I use Unity Visual Search plugin.

Preview object created by this plugin caused those errors.

I has this problem, i solve this opening the texture and converting this of (JPG) to (PNG), and my problem was solved!

Hello, I’m having this issue. How can I find the “faulty” texture?

Here is the log:

"d3d11: failed to create 2D texture id=626 width=256 height=256 mips=1 dxgifmt=65 [D3D error was 887a0005]

(Filename: Line: 584)

d3d11: failed to create 2D texture shader resource view id=626 [D3D error was 80070057]"

Is there any way to fin that specific texture, using that id=626 or something?

Thank you.

Hello,

I solved this issue, I’ll post the solution so it can help someone in the future.
Some players where having this issue and after checking their specs, all of them where playing in a laptop without a dedicated graphic card. All of them had a crash when loading the game after the main menu.

Creating a new low graphic option with half resolution textures solved the problem. Looks like loading the textures without enough grahpic memory gives this issue. I thought that it was a problem with a specific texture and that was driving me crazy to found the issue.

3 Likes
d3d11: failed to create staging 2D texture w=2048 h=2048 d3dfmt=28 [8007000e]
d3d11: failed to create 2D texture id=5361 width=2048 height=2048 mips=1 dxgifmt=29 [D3D error was 8007000e]
(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 584)

d3d11: failed to create 2D texture shader resource view id=5361 [D3D error was 80070057]
(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 534)

d3d11: Failed to create 2D texture in GfxDeviceD3D11
(Filename: C:\buildslave\unity\build\Runtime/GfxDevice/d3d11/TexturesD3D11.cpp Line: 693)

Crash!!!

========== OUTPUTTING STACK TRACE ==================

  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E35B37)
0x00007FF645E35B37 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E2C34A)
0x00007FF645E2C34A (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E1438A)
0x00007FF645E1438A (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E14267)
0x00007FF645E14267 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E14267)
0x00007FF645E14267 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E1A8D4)
0x00007FF645E1A8D4 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645E29678)
0x00007FF645E29678 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF6441BA794)
0x00007FF6441BA794 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF646A1A7C6)
0x00007FF646A1A7C6 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645CC31E8)
0x00007FF645CC31E8 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645CB207C)
0x00007FF645CB207C (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645CB7B83)
0x00007FF645CB7B83 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645CC17AC)
0x00007FF645CC17AC (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF645CC1B98)
0x00007FF645CC1B98 (Unity) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: 'Unknown error [-529697949]' (Address: 00007FF646B54143)
0x00007FF646B54143 (Unity) (function-name not available)
0x00007FFC41F47034 (KERNEL32) BaseThreadInitThunk
0x00007FFC42FA2651 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

Hello,
I get the crash when I Create All Material in NewScene Second,I think me solved this issue。

like these:

EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects);
System.Threading.Thread.Sleep(20);
EditorUtility.UnloadUnusedAssetsImmediate(true);
System.Threading.Thread.Sleep(20);

Hope , can help you。

I have this crash in Unity 2021.3.0f1 & 2021.3.1f1
I don’t have anything in my project apart from this asset

Interesting… I also get this error and I do have shaders that do mesh deformation (curved world)


This is right after loading a scene.

I also getting these after navigating to a folder with some materials and the editor tries to create their previews

This is still happening for fresh project setups on 2021.3 LTS.
@karl_jones is there an existing bug report by now or do you want me to make a fresh one?

1 Like

I think is not this texture size issue, but what filled up the ram prior.

Make sure to assign a global texture, initialize only if empty and see that not making a new one each frame as a first debug step.

This could be coming from another part of the project than your code also, so sometimes need disable things to see what cause the leak.

I’m not aware of any existing bug reports. The only one I can see in this thread is 939236 which was closed as not reproducible. We will need a bug report, please.

The “d3d11: failed to create 2D texture” errors usually indicate an issue with DirectX. The most common solutions for those cases are:

  • Update GPU drivers
  • Uninstall GeForce Experience
  • Disable any app used to monitor framerate
  • Uninstall or reinstall NVIDIA Audio drivers. Some users have also reported that turning off Image Sharpening helped with similar issues, which can be disabled through the NVIDIA Control Panel.
1 Like

Here you go @karl_jones :
IN-19286 - [AssetDatabase] Error when trying to load texture (Assertion failed on expression: ‘GPUWidth == m_DataWidth’)

1 Like