Skip to content
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

thread 'main' panicked at 'called Result::unwrap() ... #6

Closed
tokisuno opened this issue Aug 27, 2023 · 3 comments
Closed

thread 'main' panicked at 'called Result::unwrap() ... #6

tokisuno opened this issue Aug 27, 2023 · 3 comments

Comments

@tokisuno
Copy link

howdy

Open: /home/skinnyboot/downloads/Mix v01_11/Mix v01.rar
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failed to create window, "Failed to setup X IM via XOpenIM."', src/render/window.rs:36:75
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fish: Job 1, './rmg ~/downloads/Mix\ v01_11/M…' terminated by signal SIGABRT (Abort)

seems to relate to alacritty judging by here and here, which is a bit annoying.

@rsuu
Copy link
Owner

rsuu commented Aug 28, 2023

Could you please show me your cargo build command?
And try cargo run -F wayland if you are using Wayland, or switch to 0.5.11.

NOTE: .rar is now unsupported.

https://github.com/rsuu/rmg/releases/tag/v0.5.11

@tokisuno
Copy link
Author

tokisuno commented Sep 3, 2023

i am using x11. i also didn't know that .rar is unsupported.

all i did was run cargo run

@rsuu
Copy link
Owner

rsuu commented Sep 4, 2023

You could try starting X11 in tty and cargo run again.

# 1. in tty2: Ctrl + Alt + F2
startx ~/.xinitrc
# or
startx /usr/bin/<VM>

# 2. 
cargo run -- <file>

# 3. in tty1: Ctrl + Alt + F1
# see what happens
# xinitrc

# window manager
# e.g. exec i3
exec <VM>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants