Skip to content

Crashes when multiplacking 80,000 sprites #79

@jestarray

Description

@jestarray
let config = TexturePackerConfig {
            max_width: 2048,
            max_height: 2048,
            allow_rotation: false,
            texture_outlines: false,
            border_padding: 0,
            texture_extrusion: 0,
            texture_padding: 0,
            trim: true,
        };
let mut packer = MultiTexturePacker::new_skyline(config);


thread 'main' panicked at 'assertion failed: i < self.skylines.len()', src/packer/skyline_packer.rs:61:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

https://github.com/PistonDevelopers/texture_packer/blob/master/src/packer/skyline_packer.rs#L60

I tried to pack 80k , 32x32 px images but it crashed in this line. If trim is off then it wont crash, otherwise it hits this assert. If I remove it I run into another error on the line above:
thread 'main' panicked at 'index out of bounds: the len is 130 but the index is 130', src/packer/skyline_packer.rs:51:34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions