ID:90498
 
BYOND Version:462
Operating System:Windows XP Pro
Web Browser:Firefox 3.5.7
Status: Unverified

Thus far we've been unable to verify or reproduce this bug. Or, it has been observed but it cannot be triggered with a reliable test case. You can help us out by editing your report or adding a comment with more information.
Descriptive Problem Summary:
When using SwapColor() many times during a single session it will start to fail. The failure I'm experiencing is that the icon will be chopped up into 32x32px squares, whereas the original was a png of varying size. The following images are provided for comparison:

Original Image
Correct Result
Mangled Image

Numbered Steps to Reproduce Problem:
1. Use SwapColor() multiple times to generate many different unique icons. Test icons should be large.
2. Eventually you will notice that the icons, or part of the icons, will no longer appear. Save this image using ftp().
3. Check the resulting dmi file in Dream Maker. Note that the icon is now chopped up into 32x32px squares.

Expected Results:
SwapColor() produces an icon identical to the original, except that the colors are swapped.

Actual Results:
SwapColor() produces an icon with colors swapped and chopped up into little icon_states.

Does the problem occur:
Every time? Or how often? After many calls to SwapColor(), and every time thereafter on the effected icon.
In other games? Not Tested.
In other user accounts? Yes. Other players have experienced this bug.
On other computers? Yes. Other players have experienced this bug.

When does the problem NOT occur?
When first loading a world, and for several minutes thereafter.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

The last version that worked was 454.1036. I'd like to point out that testing with older version is now a major pain as the "zip" file that is offered is just a zip of the installer. There is no way to test with an older version of BYOND without installing over your current installation, and then having to reinstall the up to date version. It's a hassle that could be avoided if a zipped up version of the BYOND suite were made available.

Workarounds:
Reboot the world once the issues start to manifest. If the issues only started to show after several days of play, this could be a solution. Players are running into this problem in Regressia, and I can't ask them to reboot in the middle of a dungeon.
The download link to your original image doesn't work. Since it's hard to test "after many calls", could you provide a demo for this?
Lummox JR wrote:
The download link to your original image doesn't work. Since it's hard to test "after many calls", could you provide a demo for this?

I made a typo when I originally posted the report. Try the download link now, all three links are working for me. The first is a png that will probably load in the browser, the other two are dmi files.

I'll try and get a demo underway as soon as I have the time.
It's hard to create a demo for "after many calls", too. Would it be possible to provide you with a debug version of Regressia which would run the internal Palette swapping function over all the regions of the map, and then allow you to generate battles? This should stress the resource in the same way as a player actually playing the game and lead to the results I'm seeing pretty quickly.

As you can imagine, you'd have to provide me with a way to get the files to you, without anyone else being able to download them.
This was most likely the same bug fixed in 471
Falacy wrote:
This was most likely the same bug fixed in 471

Thanks for the heads up. The last official round of play testing was well before the 471 update, so I'll schedule another round and make trying to reproduce this bug a priority.