Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when multiplacking 80,000 sprites #79

Open
jestarray opened this issue Dec 14, 2021 · 0 comments
Open

Crashes when multiplacking 80,000 sprites #79

jestarray opened this issue Dec 14, 2021 · 0 comments

Comments

@jestarray
Copy link
Contributor

jestarray commented Dec 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant