mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-23 08:25:56 +00:00
8fcffb9e8f
Any session that reactivates (Deactivate All → re-activate) loses bulk decompression and dies right after. Windows consoles reactivate right after logon, and compression is on by default, so this hits pretty easily. The reactivation path rebuilt the FastPath processor with [`bulk_decompressor: None`](https://github.com/Devolutions/IronRDP/blob/079b4842/crates/ironrdp-client/src/rdp.rs#L988). After that every compressed update got parsed as a raw bitmap: ``` Received compressed FastPath data but no decompressor is configured BitmapData decode NotEnoughBytes: received 1662, expected 17134 ``` Fix: `ActiveStage` keeps the negotiated compression type and gets a `reactivate(...)` that rebuilds the processor *with* a fresh decompressor. Native client, web, FFI and the e2e test all go through it now instead of hand-building a processor. The FFI one was the same bug — worth noting since RDM hits that path. All additive, no API break (`compression_type` was already on `ActiveStageBuilder`). ### Testing Hyper-V console on my lab box, default config (K64), before/after — first frame then dead vs. a session that keeps rendering. Compression ratio was ~24x on the initial paint, so this isn't a rare edge. Also ran a normal RDP session to a Windows Server VM to be sure nothing regressed. `cargo check`/`clippy` clean (session, client, web wasm32, ffi), fmt clean, testsuite-core 949 + testsuite-extra 21 green. --------- Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
IronRDP FFI
Diplomat-based FFI for IronRDP.
Currently, only the .NET target is officially supported.
How to build
-
Install required tools:
cargo xtask ffi install- For .NET, note that
dotnetis also a requirement that you will need to install on your own.
- For .NET, note that
-
Build the shared library:
cargo xtask ffi build(alternatively, in release mode:cargo xtask ffi build --release) -
Build the bindings:
cargo xtask ffi bindings
At this point, you may build and run the examples for .NET:
dotnet run --project Devolutions.IronRdp.ConnectExampledotnet run --project Devolutions.IronRdp.AvaloniaExample