Thread: Reuse frame
View Single Post
06-20-16, 01:19 PM   #7
dssd
A Fallenroot Satyr
Join Date: May 2016
Posts: 25
Originally Posted by maqjav View Post
Ok I found what was causing the erratic issue.
The method GetItemInfo is asynchronous and it doesn't respond with information right away, and it seems WoW doesn't keep the cache between sessions anymore, so even if I tested with the same items the problem was still there.

In order to make it work I have to register the event GET_ITEM_INFO_RECEIVED and whenever I get the information then load the texture in my itemFrame.

The wow client crash is still there, it ocurrs radomnly whenever it tries to set a new fileID to an existing texture. I really hope this is just a bug and it will be fixed in future PTR releases.

You can use GetItemInfoInstant(itemID) to get the texture file ID immediately. You can't get the name or some other data as that's asynchronous as you discovered.

You should post the crash with code reduced to the smallest that can still reproduce on the Legion UI Bugs forum to make sure Blizz is aware.