Bug: ImageLabel.Image randomly reverting from “” (nil string) back to the image you set
The circled items are not part of this shop window. The ‘?’ items and circled items were changed with ImageLabel.Image = ""
, and you can tell the circled items ignored my change to the nil string, or reverted back.
Once they are fully loaded in memory, (i.e. switching shop tabs again) they can be successfully set to “” and won’t revert back to the image. (So, the bug occurs when I switch from one shop tab to the other, but never again after the first time)
This cannot be reproduced in studio for some reason - perhaps due to the low latency compared to online.
Sorry for any redundancy or anything unclear. I’ll answer any questions relating to clarity.
- Occurs on windows 10
- Only occurs online in-game lolwut - Roblox (has since been worked around with the .Visible trick in the next post)
- Bug was happening on December 13 2018
My step by step repro:
- *click shop 1
- ImageLabel.Image = “rbxassetid://93502211”
- *click shop 2
- ImageLabel.Image = “” (from a loop that reverts all images to blank, to also wipe any tiles that weren’t filled by this shop)
- Roblox seemingly flips a coin to decide the bug, online-only
2 Likes
Temporary workaround:
To work around this bug as a dev, I had to set ImageLabel.Visible = false, instead of ImageLabel.Image = “”. Due to it only occuring online, randomly, and not in studio, this took me many hours to narrow this bug down.
1 Like
Also experiencing this bug. I needed my ImageLabels visible so I just made them a transparent decal as my workaround.
1 Like
Also experiencing this bug. I needed my ImageLabels visible
Can you clarify what you were seeing, where it happens, and how to reproduce it? This doesn’t sound the same as @Maelstronomer’s issue where he wanted ImageLabels to be invisible but they weren’t.
We recently enabled some optimizations that cache Gui appearances when nothing changes. There’s a chance these issues are related to that change.
1 Like
In my game, I have chests where the image labels display items in slots. Clicking one adds it to the player’s inventory and makes a blank slot.
A few days ago I noticed that the image wouldn’t always disappear when the player clicked it. I was setting the image to " " to make it appear like no item was there. I just changed that to a transparent texture ID.
2 Likes
Sounds like the same bug. Thanks for the confirmation intended_pun & thanks for the notification about the recent change homeomorph
1 Like
I haven’t been able to reproduce this by changing an ImageLabel.Image from an asset id to “”, even when in a published test place. Can you send me a .rbxl where this bug occurs?
1 Like
You might be able to repro this by loading 25 different images in a grid, then clicking a button to make those 25 images “”, then immediately after make all 25 have other unique images.
And remember, it would only happen the first time you iterate over the images to “”. The second+ times you do it, it won’t have the same bug. You’d have to rejoin to test.
I’ll work on a repro when I’m not swamped with work (and if I can remember)
I will send a repro when I have the chance
1 Like