failed to start with xfce #2114

Closed
opened 2026-02-21 00:13:36 -05:00 by deekerman · 2 comments
Owner

Originally created by @liyimeng on GitHub (Sep 9, 2023).

Bug Description

In my Simple desktop env, xfce, I try to build from scratch, the build went well, but the program could not startup, terminated with segmentation fault as show bellow

warning: `rustdesk` (lib) generated 5 warnings (run `cargo fix --lib -p rustdesk` to apply 1 suggestion)
    Finished dev [unoptimized + debuginfo] target(s) in 1.52s
     Running `target/debug/rustdesk`
[2023-09-09T06:28:54Z INFO  librustdesk::core_main] main start args:[]
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z INFO  librustdesk::server] DISPLAY=Ok(":1")
[2023-09-09T06:28:54Z INFO  librustdesk::server] XAUTHORITY=Err(NotPresent)
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] ipc connect path /tmp/RustDesk/ipc
[2023-09-09T06:28:54Z INFO  librustdesk::server] server not started (will try to start): Connection refused (os error 111)
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z INFO  librustdesk::server] DISPLAY=Ok(":1")
[2023-09-09T06:28:54Z INFO  librustdesk::server] XAUTHORITY=Err(NotPresent)
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] Started ipc server at path: /tmp/RustDesk/ipc
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] Started ipc_pa server at path: /tmp/RustDesk/ipc_pa
INFO:TIS: scaleFactor 1
[2023-09-09T06:28:54Z DEBUG hbb_common::config] Configuration path: /config/.config/rustdesk/RustDesk_local.toml
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
INFO:TIS: current platform: Linux
INFO:TIS: is_xfce:  false
[2023-09-09T06:28:54Z DEBUG hbb_common::config] Configuration path: /config/.config/rustdesk/RustDesk2.toml
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] ipc connect path /tmp/RustDesk/ipc
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] ipc path /tmp/RustDesk/ipc error
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
[2023-09-09T06:28:54Z DEBUG hbb_common::config] Configuration path: /config/.config/rustdesk/RustDesk.toml
[2023-09-09T06:28:54Z TRACE hbb_common::config] Config { id: "", enc_id: "00KeFl3mDC3C/s0ZTUahebL8qLFpEawsHbXQ==", password: "", salt: "5hisuk", key_pair: ([], []), key_confirmed: false, keys_confirmed: {} }
[2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller
[2023-09-09T06:28:54Z TRACE librustdesk::ipc] ipc '' connection closed: reset by the peer
[2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] ipc connect path /tmp/RustDesk/ipc
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
[2023-09-09T06:28:54Z INFO  librustdesk::ipc] ipc path /tmp/RustDesk/ipc error
[2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(16777217), interests=READABLE | WRITABLE
[2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller
[2023-09-09T06:28:54Z TRACE librustdesk::ipc] ipc '' connection closed: reset by the peer
[2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller
Segmentation fault
abc@a6ffcd2cd111:/usr/rustdesk$ 

it seems have some issue with XAUTH file, and IPC communication, I don't really know how to continue, can someone point me a direction? thank a lot in advanced!

How to Reproduce

  • Create simple XFCE VM
  • Follow the instruction to build from source in Linux
  • when doing cargo run. problem happens

Expected Behavior

rustdesk should show up the nice UI

Operating system(s) on local side and remote side

Debian bulleyes

RustDesk Version(s) on local side and remote side

master branch

Screenshots

see log post above

Additional Context

No response

Originally created by @liyimeng on GitHub (Sep 9, 2023). ### Bug Description In my Simple desktop env, xfce, I try to build from scratch, the build went well, but the program could not startup, terminated with `segmentation fault` as show bellow ``` warning: `rustdesk` (lib) generated 5 warnings (run `cargo fix --lib -p rustdesk` to apply 1 suggestion) Finished dev [unoptimized + debuginfo] target(s) in 1.52s Running `target/debug/rustdesk` [2023-09-09T06:28:54Z INFO librustdesk::core_main] main start args:[] [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z INFO librustdesk::server] DISPLAY=Ok(":1") [2023-09-09T06:28:54Z INFO librustdesk::server] XAUTHORITY=Err(NotPresent) [2023-09-09T06:28:54Z INFO librustdesk::ipc] ipc connect path /tmp/RustDesk/ipc [2023-09-09T06:28:54Z INFO librustdesk::server] server not started (will try to start): Connection refused (os error 111) [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z INFO librustdesk::server] DISPLAY=Ok(":1") [2023-09-09T06:28:54Z INFO librustdesk::server] XAUTHORITY=Err(NotPresent) [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE [2023-09-09T06:28:54Z INFO librustdesk::ipc] Started ipc server at path: /tmp/RustDesk/ipc [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE [2023-09-09T06:28:54Z INFO librustdesk::ipc] Started ipc_pa server at path: /tmp/RustDesk/ipc_pa INFO:TIS: scaleFactor 1 [2023-09-09T06:28:54Z DEBUG hbb_common::config] Configuration path: /config/.config/rustdesk/RustDesk_local.toml [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE INFO:TIS: current platform: Linux INFO:TIS: is_xfce: false [2023-09-09T06:28:54Z DEBUG hbb_common::config] Configuration path: /config/.config/rustdesk/RustDesk2.toml [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z INFO librustdesk::ipc] ipc connect path /tmp/RustDesk/ipc [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE [2023-09-09T06:28:54Z INFO librustdesk::ipc] ipc path /tmp/RustDesk/ipc error [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(1), interests=READABLE | WRITABLE [2023-09-09T06:28:54Z DEBUG hbb_common::config] Configuration path: /config/.config/rustdesk/RustDesk.toml [2023-09-09T06:28:54Z TRACE hbb_common::config] Config { id: "", enc_id: "00KeFl3mDC3C/s0ZTUahebL8qLFpEawsHbXQ==", password: "", salt: "5hisuk", key_pair: ([], []), key_confirmed: false, keys_confirmed: {} } [2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller [2023-09-09T06:28:54Z TRACE librustdesk::ipc] ipc '' connection closed: reset by the peer [2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(2147483649), interests=READABLE [2023-09-09T06:28:54Z INFO librustdesk::ipc] ipc connect path /tmp/RustDesk/ipc [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE [2023-09-09T06:28:54Z INFO librustdesk::ipc] ipc path /tmp/RustDesk/ipc error [2023-09-09T06:28:54Z TRACE mio::poll] registering event source with poller: token=Token(16777217), interests=READABLE | WRITABLE [2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller [2023-09-09T06:28:54Z TRACE librustdesk::ipc] ipc '' connection closed: reset by the peer [2023-09-09T06:28:54Z TRACE mio::poll] deregistering event source from poller Segmentation fault abc@a6ffcd2cd111:/usr/rustdesk$ ``` it seems have some issue with XAUTH file, and IPC communication, I don't really know how to continue, can someone point me a direction? thank a lot in advanced! ### How to Reproduce - Create simple XFCE VM - Follow the instruction to build from source in Linux - when doing cargo run. problem happens - ### Expected Behavior rustdesk should show up the nice UI ### Operating system(s) on local side and remote side Debian bulleyes ### RustDesk Version(s) on local side and remote side master branch ### Screenshots see log post above ### Additional Context _No response_
deekerman 2026-02-21 00:13:36 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Sep 9, 2023):

#763

@rustdesk commented on GitHub (Sep 9, 2023): #763
Author
Owner

@liyimeng commented on GitHub (Sep 9, 2023):

@rustdesk in my case, it is unlikely build issue since I successfully built the software, even adding some debugging code. Do we have document about the design. For example, what happen on starting up, in my case, what is ipc for, why it through error, I love to have a big picture before dive in.

@liyimeng commented on GitHub (Sep 9, 2023): @rustdesk in my case, it is unlikely build issue since I successfully built the software, even adding some debugging code. Do we have document about the design. For example, what happen on starting up, in my case, what is ipc for, why it through error, I love to have a big picture before dive in.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#2114
No description provided.