rustdesk / rustdesk/doc.rustdesk.com

cargo run windows . scdef.rs:160:14: trying to construct an enum from an invalid value 0x84

Open
#582 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
792
Forks
709
Avg merge
8h 25m
Merged PRs (30d)
3

Description

its keep stops with this error.

[2025-10-25T09:38:14Z INFO librustdesk::server::portable_service::client] start portable service
[2025-10-25T09:38:14Z INFO librustdesk::server::portable_service] Create shared memory, size: 8355968, flink: C:\ProgramData\RustDesk\shared_memory_portable_service
processed file: C:\ProgramData\RustDesk\shared_memory_portable_service
Successfully processed 1 files; Failed processing 0 files

thread 'main' panicked at C:\Users\user.cargo\git\checkouts\rust-sciter-9d95e9099df4ba27\5322f3a\src\capi\scdef.rs:160:14:
trying to construct an enum from an invalid value 0x84
stack backtrace:
[2025-10-25T09:38:14Z INFO librustdesk::ipc] Started ipc_portable_service server at path: .\pipe\RustDesk\query_portable_service
[2025-10-25T09:38:14Z INFO hbb_common::config] Preload peers done in 4.9503ms, batch_count: 100, total: 12
0: std::panicking::begin_panic_handler
at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\panicking.rs:697
1: core::panicking::panic_nounwind_fmt
at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\intrinsics\mod.rs:2367
2: core::panicking::panic_invalid_enum_construction
at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\panicking.rs:327
3: sciter::capi::scdef::impl$1::bitor
at C:\Users\user.cargo\git\checkouts\rust-sciter-9d95e9099df4ba27\5322f3a\src\capi\scdef.rs:160
4: sciter:🪟:Builder::or
at C:\Users\user.cargo\git\checkouts\rust-sciter-9d95e9099df4ba27\5322f3a\src\window.rs:542
5: sciter:🪟:Builder::resizeable
at C:\Users\user.cargo\git\checkouts\rust-sciter-9d95e9099df4ba27\5322f3a\src\window.rs:513
6: sciter:🪟:Builder::main_window
at C:\Users\user.cargo\git\checkouts\rust-sciter-9d95e9099df4ba27\5322f3a\src\window.rs:426
7: librustdesk::ui::start
at .\src\ui.rs:84
8: rustdesk::main
at .\src\main.rs:34
9: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
at /rustc/1159e78c4747b02ef996e55082b704c09b970588\library\core\src\ops\function.rs:253
10: core::hint::black_box
at /rustc/1159e78c4747b02ef996e55082b704c09b970588\library\core\src\hint.rs:482
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
thread caused non-unwinding panic. aborting.
error: process didn't exit successfully: target\debug\rustdesk.exe (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

what is wrong?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows failure with cargo run and RUST_BACKTRACE=full. Read src/ui.rs:84 and trace the call into sciter:🪟:Builder::main_window, resizeable, and scdef.rs:160 in the rust-sciter dependency. Determine why the invalid enum value 0x84 is produced and verify that the Windows application starts without the panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.