egui icon indicating copy to clipboard operation
egui copied to clipboard

EXC_BAD_ACCESS in `Color32::from_rgba_unmultiplied` on iOS

Open lucasmerlin opened this issue 1 year ago • 1 comments

When I'm running my app for iOS with a debug build I'm now getting a EXC_BAD_ACCESS (Maybe this is a stackoverflow?). I guess this came with https://github.com/emilk/egui/pull/5088, it seems like [u8; 65536] crosses some limit? When running a release build, everything works as expected.

image

lucasmerlin avatar Oct 02 '24 13:10 lucasmerlin

Maybe we just need to put it on the heap, i.e. use a Vec or Box<[u8; 256 * 256]> instead in the OnceLock

emilk avatar Oct 02 '24 13:10 emilk