conrod icon indicating copy to clipboard operation
conrod copied to clipboard

Horizontally resizing text example causes crash when window size becomes sufficiently small.

Open emdash opened this issue 6 years ago • 2 comments

cargo run --release --features winit glium --example text

Wait for the build. Resize the window until it's essentially almost 0 sized, at some point you will see the UI stop reacting. Now expand the window. Instead of rendering text, the window decorations smear. Seems like maybe some division-by-zero type bug.

emdash avatar Nov 21 '18 03:11 emdash

Yes, I run into the same problem, even run as debug version :(

universeroc avatar Nov 21 '18 08:11 universeroc

This appears to be caused by the window size becoming too small to acommodate applied padding:

https://github.com/PistonDevelopers/conrod/blob/aeca45b2782687409c453496117704094617d325/backends/conrod_glium/examples/text.rs#L136

Needs some investigation 🔬.

shanehandley avatar Sep 26 '19 15:09 shanehandley