Closed danielkberry closed 4 years ago
This appears to only impact that one image. Other spritesheets larger that 64kb still work. Since the issue is very specific and I was unable to reproduce on another computer I'm going to close this issue until I have more information.
Hi team, been struggling with this issue for a few days now, any advice is appreciated.
EDIT: I was unable to reproduce this on Linux (Ubuntu 20.04LTS), but it appears on MacOS 10.14
Main issue:
As best I can tell, loading a png file larger than 64kb results in black being drawn on the screen
Details
As a minimal working example, I'm using only the code from the drawing sprites tutorial and performing two runs: one with the original file, and one with the smaller file. The only variable which has changed between the two runs is the spritesheet file. The smaller (working) file was constructed by chopping the last 500 columns of pixels from the original image (chopping 400 or fewer pixels off still had the bug, but chopping 500 or more pixels did not have the bug). While the colormaps are different between the two images (see below), I don't believe this is related because I am able to read images of either colormap as long as they are smaller than 64kb.
Files
The two files are:
The original, 16800x320 80816-byte "mushroom_sheet.png" file:
Smaller, 16300x320 63979-byte "mushroom_chopped.png".
Behavior
Expected behavior (occurs with the smaller "mushroom_chopped.png"):
Actual behavior (occurs with the original "mushroom_sheet.png"):
Code
(Using the tutorial as my minimal reproducible example)