## The issue
I needed to push a folder to my phone and I just ran the following command which always worked fine:
adb push ~/some_folder sdcard/some_folder
For some reason however it just didn't respond and stayed quiet in the terminal. After a while my system started lagging, then I looked at the RAM usage and was shocked when saw that 30GB of RAM was allocated. After looking back at the terminal, it also showed
>Exception occured ... std::bad_alloc
.
It also didn't respond to my Ctrl+C
, so I crashed the terminal which freed the memory.
To make the final test I ran the following two commands to exclude the possibility of folder being to large
mkdir test
adb push ~/test sdcard/
Yet the result were the same.
## Pc Info
1. OS: Arch Linux 6.16.3-arch1-1
2. ADB: comes from package android-tools-35.0.2-17
from arch linux repository.
## Phone Info
1. Make: Xiaomi
2. Model: POCO X6 Pro 5G
3. Android version: 15 AP3A.240905.015.A2
## Some additional info
1. Never experienced something like this before, Always was fine with pushing/pulling any file, including folders.
2. My adb also sometimes just freezes without responding (but without any else negative effect i listed above) on pushing regular files, but reconnecting the USB helps (for folders it doesn't)
Anyone else experienced the same issue? Would be glad for any help!
Asked by NeKon
(101 rep)
Aug 27, 2025, 05:30 AM
Last activity: Aug 27, 2025, 08:15 AM
Last activity: Aug 27, 2025, 08:15 AM