Hello, I was trying to display an image on the whole calculator screen, but strange things happened, sometimes the numworks crashed, other times I couldn't restart the app because "exam mode was enabled" (I never enabled it),
so I tried to figure out where this bug came from and found that if I tried to draw a rectangle with push_rect(rect: Rect, pixels: &[Color]) with more than 65637 white pixels (which is very close to 2^16) , the calculator was crashing, the same thing with more pixels with random colors created weird things like enabling the exam mode or crash when starting other applications.
here is the code:
(The only things I changed other than this are adding #[derive(Clone, Copy) to Color and the build.rs and .cargo/config files)
I don't know much about how numworks works, but I found this bug quite weird and I didn't see any issue about it on the different numworks github repositories
is this normal? is there a fix?
Hello, I was trying to display an image on the whole calculator screen, but strange things happened, sometimes the numworks crashed, other times I couldn't restart the app because "exam mode was enabled" (I never enabled it), so I tried to figure out where this bug came from and found that if I tried to draw a rectangle with
push_rect(rect: Rect, pixels: &[Color])
with more than 65637 white pixels (which is very close to 2^16) , the calculator was crashing, the same thing with more pixels with random colors created weird things like enabling the exam mode or crash when starting other applications. here is the code:(The only things I changed other than this are adding
#[derive(Clone, Copy)
toColor
and thebuild.rs
and.cargo/config
files)I don't know much about how numworks works, but I found this bug quite weird and I didn't see any issue about it on the different numworks github repositories is this normal? is there a fix?