Help wanted explaining runtime error.

Hello there,

I am getting a compile runtime error ever since I merged the HDRP pipeline with the HDRP branch of rz_olento’s TAA cherrypick (GitHub - 0lento/Graphics at taa-update-7.3.1). (So updating HDRP is not something I would like to do)

Even though, so far the errors seem harmless so far. I would like to fix this compile error as there are 64 unique ones of them everytime I launch and it’s a bit annoying, however I have no idea what the error means, could someone explain it a bit less coded?

Graphics.CopyTexture called with mismatching data size (src (16x16 with format 96 -> 128 bytes) dst (16x16 with format 54 -> 256 bytes))
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Let me try,

“Something is broken.”

Seriously, perhaps try a reimport all? It feels like some old cached data (probably in the Library folder in your project) is being passed around and is confusing the newer software. Another thing to do is clone your project again from source control (you are using source control, right?) and see if it goes away…

I haven’t seen that error before, but it looks to me like it’s saying that you’re copying the data from one texture (picture) into another, where the two textures are the same size in pixels but not the same size in bytes (presumably because of different color-depth or something like that).

I wouldn’t have thought the computer could tell that at compile-time though. You’re sure that’s a compile error and not a run-time error?

Might possibly be fixable by changing the graphicsFormat of one texture or the other (though be careful, doing that could easily break something new).

That and/or recloning would defeat the purpose of the merge that I did.

Ah yes I am an idiot, I meant Run-Time, woops.

Where in the import settings would I do that?

I’m thinking reclone, then reapply your patch, THEN show it to Unity, before Unity creates any data that would appear invalid post-patch.

Don’t know off-hand. Don’t know if import settings is even an appropriate place to look. I was looking at the scripting API.

Solved by changing the textures import graphics format.

1 Like