Add more information on "Invalid image specified"

Hello, I’m using UI Toolkit for runtime UIs on Unity 6000.0.23f1 version.

And sometimes I have this warning that appears on reimport, and I don’t have any idea where the problem is.

Could be really nice to have more information in the stacktrace or the message like : the image file injured, the USS file imported or anything that could explicitly helps us find the problem.

Thank you for the feedback! Did you happen to move the image & or the file using it after its creation?

Which image? We have more than a hundred of images and I don’t know which one could cause this issue :frowning:

I thought this was related to a specific image. Please log a bug so we can take a look at it!

That would involve us to send the entire project :thinking:

Isn’t it possible to get a better stacktrace for this warning?

I totally agree with you about this. UI Element (for USS, UXML files) errors and warnings are hard to track. You mostly can’t know which property/attribute/selector/etc caused that error/warning.