Open JacobHaig opened 3 weeks ago
I've looked at the source of the panic and it seem to be an error in cosmic-text:
//TODO: ensure layout is done?
let layout = line.layout_opt().as_ref().expect("layout not found");
On cosmic-text-0.11.0 this seems to be fixed. Maybe upgrading to the dependency will help?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
When I run the below application, if I press certain keys at the exact same time the application panics. It can take a few tries to get it right, but it seems like any combination of a Movement Key and a Modification Key causes the panic.
For example, if you press the below key combinations at the same time you should be able to replicate the issue.
Commenting
self.content.perform(action);
in the below code prevents the application from panicking.Here is the code. I was following this as an example https://www.youtube.com/watch?v=gcBJ7cPSALo
What is the expected behavior?
The expected behavior would be that the program doesn't crash. Either eat the input or perform both actions.
Version
crates.io release
Operating System
Windows
Do you have any log output?