-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deadkeys on Linux panics #366
Comments
I've created a branch where dead keys are handled correctly (at least, as far as I can tell). Could you try it and let me know if it's satisfactory? |
This works as intended, thank you. |
I also get this when using the compose key:
|
@tbu- this issue isn't resolved in master yet, as I've been a bit busy lately. I encourage you to try the branch I linked to above, since it's a significant change that would benefit from further testing. |
I'm indirectly using winit through Alacritty and ran into this problem when attempting to input Korean characters. Below is Alacritty's dependency list: [dependencies]
libc = "0.2"
cgmath = "0.16"
notify = "4"
bitflags = "1"
font = { path = "./font" }
errno = "0.2"
parking_lot = "0.5"
serde = "1"
serde_derive = "1"
serde_json = "1"
serde_yaml = "0.7"
vte = "0.3"
mio = "0.6"
mio-more = "0.1"
copypasta = { path = "./copypasta" }
xdg = "2"
log = "0.4"
clap = "2"
fnv = "1"
unicode-width = "0.1"
arraydeque = "0.2"
glutin = "0.12"
clippy = { version = "*", optional = true }
env_logger = "0.5"
base64 = "0.9.0" From what I could gather, glutin is the crate pulling winit in so I attempted manually specifying your branch as a dependency as follows: [dependencies]
#...
arraydeque = "0.2"
winit = {git = "https://github.com/francesca64/winit", branch = "x11-kb-rewrite"}
glutin = "0.12" #winit dep is here
clippy = { version = "*", optional = true }
#... I'm still not totally familiar with how Cargo handles dependencies so I totally understand if this was a naive and incorrect attempt lol but I still ended up hitting the same panic as before. Backtrace:
See alacritty/alacritty#1113 for my original issue. |
@dbluhm I think that would only work if you'd changed the dependency within glutin. Try adding this section to your Alacritty Cargo.toml: [patch.crates-io]
winit = { git = "https://github.com/francesca64/winit", branch = "x11-kb-rewrite" } and if that still doesn't work, then throw in a |
@francesca64: after doing as you suggested, still getting the following backtrace:
|
@dbluhm I think that you are still using the old winit version 0.10.0 from crates.io. The patch does not apply, because glutin 0.12.2 requires winit 0.10.0, but the fork from @francesca64 supplies winit 0.11.1. |
@francesca64 I ran |
Add a function to merge two outlines
On X11, even the most simple program crashes, when using a dead key. For example when inputting
^ + a
, which should result inâ
. I used the german layout. and tested with latest version and with master.:thread 'main' panicked at 'attempt to subtract with overflow'
src/platform/linux/x11/mod.rs:415:35
The text was updated successfully, but these errors were encountered: