CryZe / livesplit-one-desktop

Prototype implementation of LiveSplit One for the Desktop.
https://livesplit.org/
60 stars 11 forks source link

livesplit-one panics immediately when running as normal user #31

Closed jlt525 closed 2 years ago

jlt525 commented 2 years ago

Hi, I can't run livesplit-one as a normal user. It worked fine when I compiled and ran it a while back (early December, I think) but now when I run it, it panics:

$>cargo run                                                                                                                                                                                                                                                   
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s
     Running `target/debug/livesplit-one`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failed to create window, "Failed to setup X IM via XOpenIM."', src/main.rs:32:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

and same when running it from the release v0.0.2 binary (here with the RUST_BACKTRACE=1):

$>RUST_BACKTRACE=1 ./livesplit-one
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failed to create window, "Failed to setup X IM via XOpenIM."', src/main.rs:32:44
stack backtrace:
   0: rust_begin_unwind
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
   1: core::panicking::panic_fmt
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
   2: core::result::unwrap_failed
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/result.rs:1616:5
   3: livesplit_one::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
zsh: IOT instruction (core dumped)  RUST_BACKTRACE=1 ./livesplit-one

The binary release runs fine when running with sudo, but I would like to avoid running it with root privileges.

I'm on arch linux with realtime kernel:

uname -a
Linux 3900x 5.17.1.17.realtime2-3-rt #1 SMP PREEMPT_RT Mon, 23 May 2022 14:59:14 +0000 x86_64 GNU/Linux

Any help would be much appreciated.

Thanks in advance

jlt525 commented 2 years ago

Fixed this after some research into the error. Turned out ibus-daemon wasn't starting. After starting ibus-daemon the problem was resolved so I am closing this issue.