Skip to content

Error when resizing the window #1

@Unique-Digital-Resources

Description

When I resize the window, sometimes get this message:
my_gui_v0.01/target/debug/examples/simple_window` mouse pixel: Color(4294967295) thread 'main' panicked at 'assertion failed: p.x >= 0 && p.x < self.width()', /home/admin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/skia-safe-0.68.0/src/core/pixmap.rs:161:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After some modifications I got this:
thread 'main' panicked at 'index out of bounds: the len is 1114280 but the index is 1114282', ....../my_gui_v0.01/src/uwindow.rs:147:69 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After some other modifications :
thread 'main' panicked at 'index out of bounds: the len is 787920 but the index is 787922', ......./my_gui_v0.01/src/uwindow.rs:147:69 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions