gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

How to use more than 40 devices! I have 100 sets of equipment! Unable to start

Open q6654282 opened this issue 3 years ago • 11 comments

How to use more than 40 devices! I have 100 sets of equipment! Unable to start

q6654282 avatar Oct 28 '22 17:10 q6654282

Unable to start

What do you execute? What is the error message in the console?

rom1v avatar Oct 28 '22 20:10 rom1v

Memory allocation exceeded

q6654282 avatar Oct 28 '22 20:10 q6654282

2022-10-29 13:14:23.902 ERROR AdbMonitor: Failed to monitor adb devices: Packet size should not be that big: 2222 2022-10-29 13:14:23.902 INFO AdbMonitor: Restarting adb daemon

q6654282 avatar Oct 29 '22 05:10 q6654282

Problems! As above

q6654282 avatar Oct 29 '22 05:10 q6654282

How to use more than 40 devices! I have 100 sets of equipment! Unable to start

Memory allocation exceeded

Yes, this is a known design issue (I can't find another related bug but I remember it exists): a buffer is allocated upfront for each connection (so there is no memory allocation during forwarding).

It should be rewritten to dynamically allocate/reuse packets.

2022-10-29 13:14:23.902 ERROR AdbMonitor: Failed to monitor adb devices: Packet size should not be that big: 2222

Indeed, the adb monitor does not expect more than 1024 bytes per read. To be fixed also in autoadb.

Also refs #396.

rom1v avatar Oct 29 '22 08:10 rom1v

How to use more than 40 devices! I have 100 sets of equipment! Unable to start Memory allocation exceeded

Yes, this is a known design issue (I can't find another related bug but I remember it exists): a buffer is allocated upfront for each connection (so there is no memory allocation during forwarding).

It should be rewritten to dynamically allocate/reuse packets.

2022-10-29 13:14:23.902 ERROR AdbMonitor: Failed to monitor adb devices: Packet size should not be that big: 2222

Indeed, the adb monitor does not expect more than 1024 bytes per read. To be fixed also in autoadb.

Also refs #396.

yes! This is the problem of automatic cache allocation! Is it possible to upgrade the version to solve this problem!

q6654282 avatar Oct 29 '22 11:10 q6654282

Is there a solution to this problem

q6654282 avatar Nov 04 '22 17:11 q6654282

Not really without major design changes, that I don't plan to make because I'm not really working on gnirehtet anymore (I still continue scrcpy, and both are on my free time only).

rom1v avatar Nov 04 '22 22:11 rom1v

All that remains is to wait! ha-ha

q6654282 avatar Nov 05 '22 06:11 q6654282