Open commonkestrel opened 3 months ago
Hey,
Thanks for the report. I will take a look at it today.
Ok I think this was broken in https://github.com/emoon/rust_minifb/commit/b212316ae658619961e25e7f82305ee8126204ad @StefanoIncardone
I have commit a new fix to master here: https://github.com/emoon/rust_minifb/commit/d62b0f506191539b1baed0f658d8fa324e9efb67 please give it a spin and see if it fixes the crash for you. I'm not sure it fully working correct yet tho.
It looks like that worked! Thank you so much
I am experiencing a segfault when drawing to a window with
scale_mode: ScaleMode::AspectRatioStretch
. It seems to work perfectly fine withScaleMode::TopLeft
, but it hits a segfault when callingupdate_with_buffer
if the window is configured withScaleMode::AspectRatioStretch
.I am running NixOS 24.05 on x86_64 with KDE Plasma for my GUI with wayland. I'm running Cargo version 1.77.1.
The minimum reproducible example I could find is the
noise.rs
example in theexamples
folder, with the scale-mode replaced withAspectRatioStretch
.Running valgrind (with wayland enabled) gives me the following result: