s1341 / binder-rust

An android binder library for rust
Apache License 2.0
18 stars 3 forks source link

binder_alloc: 270: binder_alloc_buf size 131152 failed, no address space #3

Open Y12131 opened 5 months ago

Y12131 commented 5 months ago

Running the client to send messages to the server multiple times results in a memory shortage error. I have checked the current code and found no usage of BC_FREE_BUFFER. Could there be a problem with this part?

Transaction failed ** stack backtrace: [ 32.307962] binder_alloc: 271: binder_alloc_buf size 131152 failed, no address space [ 32.308014] binder_alloc: allocated: 918080 (num: 9 largest: 131152), free: 122304 (num: 1 largest: 122304) [ 32.308166] binder: 280:280 transaction failed 29201/-28, size 131152-0 line 2758

s1341 commented 5 months ago

Definintely. This code was in no way production tested.... There might be other issues too. PRs are of course welcome.

Y12131 commented 5 months ago

I see, will you continue to optimize this project?

s1341 commented 5 months ago

I will accept PRs, but don't currently have time or cabability to test and/or develop new features.

Y12131 commented 5 months ago

Sure, thanks for the reply. If I manage to fix this problem, I'll upload the PRs.