- Home /
Texture Issue causing Unity to Error on Web Player Build
I get about 14 of these errors in the Editor.log when trying to build the WebPlayer version of my Android app that runs fine.
I am wondering if there are some textures that are somehow incompatible with the Web? If so is there a way to track down which ones they are?
I am using a bunch of Photoshop PSDs with layers that have not been flattened yet...could this be it?
Any help would be appreciated... Here is the one of the errors from the log...
!texture.texture
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/GfxDevice/d3d/TexturesD3D9.cpp Line: 655)
!texture.texture
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/GfxDevice/d3d/TexturesD3D9.cpp Line: 655)
allocation 0x00000000 already registered @ C:/BuildAgent/work/d3d49558e4d408f4/Runtime/GfxDevice/d3d/TexturesD3D9.cpp:l297 size 458850; now calling from C:/BuildAgent/work/d3d49558e4d408f4/Runtime/GfxDevice/d3d/TexturesD3D9.cpp:l297 size 458850?
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Allocator/MemoryManager.cpp Line: 1018)
d3d: failed to create 2D texture id=30691 w=575 h=150 mips=11 d3dfmt=21 [invalid call]
failed to create 2D texture
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/GfxDevice/d3d/TexturesD3D9.cpp Line: 309)
The errors were preventing the build at first. I have 3 Scenes in my project, I unchecked 2 of them and did the build with Scene 0 and I still got the errors but the build worked anyway. I then added one more scene in and it errored but again built O$$anonymous$$. Then I added the third scene in and it also errored but built O$$anonymous$$. So I guess these are warnings and not errors? I checked the game for any missing textures and could not find any... So NON-ISSUE?
Eep. That's a new one, for me.
Is this thread any help? I found a few people mentioning various issues with memory allocation. The individual texture that errored out didn't sound huge, but if you have a lot of textures loaded, that might be an issue.
Answer by Graham-Dunnett · Jun 03, 2014 at 10:31 PM
The error appears to be saying that D3D couldn't create a texture. It's the one with a width of 575 and height of 150 pixels, so imagine it's not hard to find. You've asked for mipmaps, and possibly your GPU doesn't support mipmaps with non-power-of-two textures.
Your answer
![](https://koobas.hobune.stream/wayback/20220613150218im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Textures with alpha problem 4 Answers
Webplayer crash on LoadImageIntoTexture call 1 Answer
DARK TEXTURES IN 3.4 2 Answers
Texture Discoloration Issue When Importing Into Unity 1 Answer