Inputting a valid texture id as a subregion model id crashes the game
BartStam opened this issue ยท 1 comments
Describe the bug
I'd expect the aura to show a placeholder model (like it does for inputting an invalid texture/model id). Like so:
The above can be reproduced by inputting practically any random id (such as 0, 1, 2) for the model subregion.
Instead, it crashed the game whenever the id is valid for textures, but invalid for models (no exhaustive testing has been done, obviously):
Do you have an error log of what happened?
See the above image.
To Reproduce
- Create a progress bar aura
- Add a model subregion
- Input "1" as model id
- Observe that the game does not crash, even though "1" is not a valid model id
- Input a valid texture id (such as 424570) as model id
- Observe that the game crashes
Alternatively:
local frame = CreateFrame("Model"):SetModel(424570)
or /run CreateFrame("Model"):SetModel(424570)
if you are really lazy.
Screenshots
See problem description.
Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Yes, testing with only WeakAuras enabled.
Which version of WeakAuras are you using?
Version 2.18.4
Are you on World of Warcraft Classic or Retail?
- Classic
- Retail
- Shadowlands
Was it working in a previous version? If yes, which was the last good one?
Don't know
Additional Info
I'm not sure if this is something WeakAuras could actually prevent (other than indexing all valid model ids and not calling SetModel()
at all unless it's one of those). But I figured I'd ticket it anyway.