Android Screen Capture not possible - java.lang.Exception: Wrong bufSize (IFP) #1645

Closed
opened 2026-02-20 18:04:50 -05:00 by deekerman · 1 comment
Owner

Originally created by @Admin-Igor on GitHub (Mar 24, 2023).

Bug Description

Hi,
I am trying to connect from WIN10 to an Android IFP with Android 11.
The connection can be esteblished, but after allow on Android, on the Windows Client is a message "waiting for screen" and the screen is not shared.

I captured the log from Android and found the following messages:

03-24 11:48:24.621 2360 2360 E DartMessenger: Uncaught exception in binary message listener
03-24 11:48:24.621 2360 2360 E DartMessenger: java.lang.Exception: Wrong bufSize
03-24 11:48:24.621 2360 2360 E DartMessenger: at e0.a.(Unknown Source:43)
03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainService.n(Unknown Source:37)
03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainService.D(Unknown Source:0)
03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainService.E(Unknown Source:76)
03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainActivity.W(Unknown Source:429)
03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainActivity.Q(Unknown Source:0)
03-24 11:48:24.621 2360 2360 E DartMessenger: at e0.f.g(Unknown Source:2)
03-24 11:48:24.621 2360 2360 E DartMessenger: at h4.k$a.a(Unknown Source:17)
03-24 11:48:24.621 2360 2360 E DartMessenger: at u3.c.l(Unknown Source:18)

A bigger log is attached.

rust-log.txt

I've tried it with different Versions (App-Store, Nightly-Build, self-build) and offical Server and selfHost-Server.
All combinations show the same result.

With an Android-Phone it works fine.

What can be the reason or soloution?

How to Reproduce

Run the client on an IFP

Expected Behavior

The screen will be shared to the other client

Operating system(s) on local side and remote side

Windows 10 -> Android

RustDesk Version(s) on local side and remote side

1.1.9 -> 1.1.9 , 1.2.0 -> 1.2.0

Screenshots

image

Additional Context

No response

Originally created by @Admin-Igor on GitHub (Mar 24, 2023). ### Bug Description Hi, I am trying to connect from WIN10 to an Android IFP with Android 11. The connection can be esteblished, but after allow on Android, on the Windows Client is a message "waiting for screen" and the screen is not shared. I captured the log from Android and found the following messages: 03-24 11:48:24.621 2360 2360 E DartMessenger: Uncaught exception in binary message listener 03-24 11:48:24.621 2360 2360 E DartMessenger: java.lang.Exception: Wrong bufSize 03-24 11:48:24.621 2360 2360 E DartMessenger: at e0.a.<init>(Unknown Source:43) 03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainService.n(Unknown Source:37) 03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainService.D(Unknown Source:0) 03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainService.E(Unknown Source:76) 03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainActivity.W(Unknown Source:429) 03-24 11:48:24.621 2360 2360 E DartMessenger: at com.carriez.flutter_hbb.MainActivity.Q(Unknown Source:0) 03-24 11:48:24.621 2360 2360 E DartMessenger: at e0.f.g(Unknown Source:2) 03-24 11:48:24.621 2360 2360 E DartMessenger: at h4.k$a.a(Unknown Source:17) 03-24 11:48:24.621 2360 2360 E DartMessenger: at u3.c.l(Unknown Source:18) A bigger log is attached. [rust-log.txt](https://github.com/rustdesk/rustdesk/files/11063063/rust-log.txt) I've tried it with different Versions (App-Store, Nightly-Build, self-build) and offical Server and selfHost-Server. All combinations show the same result. With an Android-Phone it works fine. What can be the reason or soloution? ### How to Reproduce Run the client on an IFP ### Expected Behavior The screen will be shared to the other client ### Operating system(s) on local side and remote side Windows 10 -> Android ### RustDesk Version(s) on local side and remote side 1.1.9 -> 1.1.9 , 1.2.0 -> 1.2.0 ### Screenshots ![image](https://user-images.githubusercontent.com/128819393/227556705-c44348ac-da27-4662-b4b6-316c4e807d54.png) ### Additional Context _No response_
deekerman 2026-02-20 18:04:50 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Mar 24, 2023):

close to favor #1038

@rustdesk commented on GitHub (Mar 24, 2023): close to favor #1038
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#1645
No description provided.