SkyTemple/skytemple-files

PanicException: range start index 2863311530 out of range for slice of length 1296

Chesyon opened this issue · 4 comments

In Dungeon Graphics > Color Map, trying to access tileset 81 gives an error. This occurs on Skytemple 1.6.2 (Windows 11), on both an unmodifed US and EU ROM.
image

Sentry issue: SKYTEMPLE-20W

You mean "Dungeon Graphics > Tileset 81"?

Note: This seems to be a bug in the Rust implementation only, as disabling native file handlers makes the tileset load.

No, I meant the one in Dungeon Graphics > Color Map, but it does happen there as well.

This is caused by the fact that SkyTemple Rust (and Files too, but it doesn't cause issues there) assumes all pointers after the content start pointer to point to a valid color definition, when in reality there will be never more than 32 colors.