54place
1 vote Vote

Random Upsize Errors out of nowhere.

This has happened in a couple projects now - I notice when it happens because my changes inside graphs stop having any effects.

I see things like this in the console: Thread failed: System.Exception: Couldn't upsize: src Den.Tools.CoordRect: offsetX:-2564 offsetZ:-2565 sizeX:5128 sizeZ:5128 is less than dst Den.Tools.CoordRect: offsetX:1010 offsetZ:-2068 sizeX:545 sizeZ:545

With Twobob's guidance we were able to trace it down to a srcMatrix.size.x (and y) value of Infinity - while the value of rect.size.x (and y) = 1. Looking at the imported map objects, the actual PNGs I had set in them were missing. Readding these fixed the issue.

1. This error should be more specific - perhaps using a check for that 1x1 size or even just the infinity value to throw exception stating the map is not configured.
2. Not sure why the imported maps become non-configured but it's concerning.

bahusafoo, 17.09.2021, 19:39
Idea status: under consideration

Comments

twobob, 17.09.2021, 19:40
This is a confirmed SOLID case. edge case needs a simple message when the texture is invalid.
twobob, 17.09.2021, 19:41
WHY the textures become unassigned may be another issue. But this would cover the case where people try to import for a map with a missing texture.
twobob, 17.09.2021, 22:40
To confirm this happens in the IMPORTER control. when the texture is missing.

Also, while you are fixing that people have asked for the IMPORT to be expanded to have scaling and an offset so I humbly suggest this change

https://cdn.discordapp.com/attachments/445594393848709122/888448741382688778/unknown.png

Hope it helps
twobob, 17.09.2021, 22:47
or a better change like it.

Leave a comment