Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash report - msg:Failed to allocate a 205520912 #4313

Open
ahmed-alnassif opened this issue Dec 22, 2024 · 0 comments
Open

crash report - msg:Failed to allocate a 205520912 #4313

ahmed-alnassif opened this issue Dec 22, 2024 · 0 comments

Comments

@ahmed-alnassif
Copy link

Problem description

Report Info

User Action: crash report
Sender: TermuxActivity
Report Timestamp: 2024-12-22 20:34:33.543 UTC

Crash Details

Crash Thread: Thread[Gobbler#2,5,main]
Crash Timestamp: 2024-12-22 20:33:22.016 UTC

Crash Message:

Failed to allocate a 205520912 byte allocation with 25165824 free bytes and 140MB until OOM, target footprint 146521648, growth limit 268435456

Stacktrace

java.lang.OutOfMemoryError: Failed to allocate a 205520912 byte allocation with 25165824 free bytes and 140MB until OOM, target footprint 146521648, growth limit 268435456
	at java.util.Arrays.copyOf(Arrays.java:3585)
	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:177)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:543)
	at java.lang.StringBuilder.append(StringBuilder.java:186)
	at com.termux.shared.shell.StreamGobbler.run(StreamGobbler.java:206)

Termux App Info

APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_NAME: 0.118.1
VERSION_CODE: 1000
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Steps to reproduce the behavior.

The possible reason could be after the update from Android 14 to 15, Termux was working smoothly without any problems before the update, But now, as you can see, there is a memory management issue and sometimes open sessions are being killed.
Note: phantom process disabled

What is the expected behavior?

No response

System information

Device Info

Software

OS_VERSION: 6.6.30-android15-8-g6b55ce738535-4k
SDK_INT: 35
RELEASE: 15
ID: AP3A.240905.015.A2
DISPLAY: AP3A.240905.015.A2
INCREMENTAL: OS2.0.2.0.VGPMIXM
SECURITY_PATCH: 2024-11-01
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys

Hardware

MANUFACTURER: Xiaomi
BRAND: Redmi
MODEL: 23106RN0DA
PRODUCT: gale_global
BOARD: gale
HARDWARE: mt6768
DEVICE: gale
SUPPORTED_ABIS: arm64-v8a, armeabi-v7a, armeabi

More info

RAM

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.5Gi       4.7Gi       211Mi        62Mi       2.6Gi       2.4Gi
Swap:          8.0Gi       1.9Gi       6.1Gi

Storage

❯ df -h
Filesystem                         Size Used Avail Use% Mounted on
/dev/block/dm-9                    849M 849M     0 100% /
tmpfs                              3.6G 3.4M  3.6G   1% /dev
tmpfs                              3.6G    0  3.6G   0% /mnt
/dev/block/by-name/rescue          108M  10M   95M  10% /mnt/rescue
/dev/block/dm-10                   763M 763M     0 100% /system_ext
overlay                            746M 746M     0 100% /system_ext/etc/permissions
overlay                            746M 746M     0 100% /system_ext/app
overlay                            746M 746M     0 100% /system_ext/priv-app
/dev/block/dm-11                   443M 443M     0 100% /vendor
/dev/block/dm-12                   2.7G 2.7G     0 100% /product
overlay                            746M 746M     0 100% /product/overlay
overlay                            746M 746M     0 100% /product/app
overlay                            746M 746M     0 100% /product/priv-app
overlay                            746M 746M     0 100% /product/lib
overlay                            746M 746M     0 100% /product/lib64
overlay                            746M 746M     0 100% /product/bin
overlay                            746M 746M     0 100% /product/framework
overlay                            746M 746M     0 100% /product/media
overlay                            746M 746M     0 100% /product/opcust
overlay                            746M 746M     0 100% /product/data-app
overlay                            746M 746M     0 100% /product/etc/sysconfig
overlay                            746M 746M     0 100% /product/etc/permissions
overlay                            746M 746M     0 100% /product/usr
overlay                            746M 746M     0 100% /product/etc/precust_theme
overlay                            746M 746M     0 100% /product/etc/preferred-apps
overlay                            746M 746M     0 100% /product/etc/security
/dev/block/dm-14                    13M  13M     0 100% /vendor_dlkm
/dev/block/dm-15                    28K  28K     0 100% /odm_dlkm
tmpfs                              3.6G  56K  3.6G   1% /apex
/dev/block/loop8                   780K 748K   16K  98% /apex/com.android.tzdata@350820260
/dev/block/loop5                   6.3M 6.3M     0 100% /apex/com.android.nfcservices@352090000
/dev/block/dm-56                    27M  27M     0 100% /apex/com.android.media.swcodec@351010060
/dev/block/dm-55                   8.5M 8.4M     0 100% /apex/com.android.adbd@351010000
/dev/block/dm-47                   4.4M 4.4M     0 100% /apex/com.android.appsearch@351112060
/dev/block/loop10                   39M  39M     0 100% /apex/com.android.btservices@352090000
/dev/block/loop6                    79M  79M     0 100% /apex/com.android.virt@2
/dev/block/loop9                    38M  38M     0 100% /apex/com.android.i18n@1
/dev/block/loop11                  8.5M 8.5M     0 100% /apex/com.android.wifi@352090000
/dev/block/loop18                  232K 164K   64K  72% /apex/com.android.hardware.cas@1
/dev/block/loop13                   40M  40M     0 100% /apex/com.android.vndk.v34@1
/dev/block/loop20                   39M  39M     0 100% /apex/com.android.vndk.v31@1
/dev/block/loop15                  596K 568K   16K  98% /apex/com.android.profiling@352090000
/dev/block/loop14                  232K 112K  116K  50% /apex/com.android.apex.cts.shim@1
/dev/block/dm-52                   6.5M 6.5M     0 100% /apex/com.android.conscrypt@351110000
/dev/block/loop24                  4.3M 4.3M     0 100% /apex/com.android.uwb@352090000
/dev/block/dm-37                    18M  18M     0 100% /apex/com.android.cellbroadcast@351111000
/dev/block/loop26                  1.2M 1.1M  8.0K 100% /apex/com.android.rkpd@352090000
/dev/block/loop21                  7.3M 7.3M     0 100% /apex/com.android.devicelock@342410000
/dev/block/dm-32                   628K 600K   16K  98% /apex/com.android.configinfrastructure@351010000
/dev/block/loop30                  5.0M 5.0M     0 100% /apex/com.google.android.widevine@190240725
/dev/block/loop29                   45M  45M     0 100% /apex/com.android.vndk.v33@1
/dev/block/loop34                   11M  11M     0 100% /apex/com.android.runtime@1
/dev/block/dm-36                   7.6M 7.6M     0 100% /apex/com.android.neuralnetworks@351010000
/dev/block/dm-35                    41M  41M     0 100% /apex/com.android.art@351110180
/dev/block/dm-29                    22M  21M     0 100% /apex/com.android.adservices@351017080
/dev/block/dm-34                   6.2M 6.2M     0 100% /apex/com.android.extservices@351122083
/dev/block/dm-42                   6.7M 6.6M     0 100% /apex/com.android.media@351010060
/dev/block/dm-23                    23M  23M     0 100% /apex/com.android.permission@351112280
/dev/block/dm-25                    28M  28M     0 100% /apex/com.android.mediaprovider@351113060
/dev/block/loop35                  2.1M 2.1M     0 100% /apex/com.google.mainline.primary.libs@350728000
/dev/block/loop33                  3.1M 3.1M     0 100% /apex/com.android.compos@2
/dev/block/dm-41                   3.0M 2.9M     0 100% /apex/com.android.os.statsd@351110040
/dev/block/dm-17                   2.1M 2.0M     0 100% /apex/com.google.mainline.primary.libs@351061000
/dev/block/dm-27                    14M  14M     0 100% /apex/com.android.healthfitness@351120040
/dev/block/dm-26                   832K 804K   12K  99% /apex/com.android.ipsec@351111040
/dev/block/dm-20                   232K 104K  124K  46% /apex/com.android.scheduling@351010000
/dev/block/dm-19                   736K 708K   16K  98% /apex/com.android.sdkext@351110000
/dev/block/dm-21                   4.0M 4.0M     0 100% /apex/com.android.resolv@351111020
/dev/block/dm-24                    13M  13M     0 100% /apex/com.android.ondevicepersonalization@351020000
/dev/block/dm-18                    22M  22M     0 100% /apex/com.android.tethering@351110060
tmpfs                              3.6G 4.0K  3.6G   1% /bootstrap-apex
/dev/block/loop1                    38M  38M     0 100% /bootstrap-apex/com.android.i18n@1
/dev/block/loop0                    11M  11M     0 100% /bootstrap-apex/com.android.runtime@1
/dev/block/loop2                   780K 748K   16K  98% /bootstrap-apex/com.android.tzdata@350820260
tmpfs                              3.6G    0  3.6G   0% /tmp
/dev/block/dm-13                   746M 746M     0 100% /mi_ext
overlay                            746M 746M     0 100% /system/app
overlay                            746M 746M     0 100% /system/priv-app
overlay                            2.7G 2.7G     0 100% /system/framework
overlay                            746M 746M     0 100% /system/etc/sysconfig
overlay                            746M 746M     0 100% /system/etc/permissions
/dev/block/bootdevice/by-name/cust 1.7G 1.7G     0 100% /cust
/dev/fuse                          222G 119G  103G  54% /storage/emulated

kernel information

❯ uname -a
Linux localhost 6.6.30-android15-8-g6b55ce738535-4k #1 SMP PREEMPT Thu Jan  1 00:00:00 UTC 1970 aarch64 Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant