[Q] Dalvik generates large anr_history.txt

Search This thread

shooorf

New member
Sep 30, 2011
2
0
HTC Desire on official android 2.3.3 firmware (RUU)

Few weeks ago I found lack of free space on internal memory (/data).
I rooted my device, and got content from /data to my desktop.
I learned that file /data/data/com.android.htcprofile/anr_history.txt used all free space (about 40M).

Content of file - something like this
"Binder Thread #2" prio=5 tid=7 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x40519c70 self=0x1bf9a0
| sysTid=268 nice=0 sched=0/0 cgrp=default handle=3079040
| schedstat=( 4624267571 103307952859 32755 )
at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=6 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x40516fe8 self=0x2ef860
| sysTid=266 nice=0 sched=0/0 cgrp=default handle=767584
| schedstat=( 5026946927 102209503282 34307 )
at dalvik.system.NativeStart.run(Native Method)

"Compiler" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x40516228 self=0xbb4a0
| sysTid=264 nice=0 sched=0/0 cgrp=default handle=1410336
| schedstat=( 2003631608 99297851584 22341 )
at dalvik.system.NativeStart.run(Native Method)

I found some info about this in google:
1) ANR = Application Not Responding
2) dalvikvm stack trace file '/data/data/com.android.htcprofile/anr_history.txt'

What is it exactly and how can I stop it?
 

decmk

Senior Member
Jul 5, 2008
323
103
I have the same file, my is 2mb.
I deleted. After reboot i have new with 0 bytes.
I don't know how to stop this.

Sent from my HTC Desire using Tapatalk
Gingerbread 2.3.3 RUU Rooted S-Off with Link2SD partition 512MB
 

adamhassel

Senior Member
Oct 10, 2011
73
18
It's a log of crashes, which is of no use when you're not actively debugging. I have provided a solution and explanation here:

atlas.hasselbalch.com/android/anr-using-my-space

(Sorry, I can't link directly, since I'm a noob)
 
Last edited:

dragula2008

New member
Dec 3, 2011
3
0
i've a desire running GB (official), and i've 147 MB free Internal storage (should), but after i rooted it, the internal used about 20 MB, and dont know what app used it, even i have factory reset the phone, clear storage, wipe everything, the gmail not yet pushed, it always the same, the internal memory used about 20 MB, can anyone help me, is this because the dalvik or else?

i've rooted my desire using revolutionary have an s-off, recovery using clockworkmod

just want to know, where the 20 MB goes :)
 

speculatrix

Senior Member
Mar 7, 2006
708
136
Cambridge
for a while now I've been getting low space warnings, and each time moved some more apps to SD card. what puzzled me was I hadn't been installing new apps, just updating.

I cleared the dalvik cache and it only helped for a while, so I started digging some more, "du -ks * | sort -n" at the top of /data, and working my way down to the biggest space hogs, I found com.android.htcprofile directory had this huge anr_history.txt file!!

googled and found this discussion.

my anr_history.txt was 197MB, and given my desireZ running virtuousUnity doesn't have the largest data partition (?1300MB?) that was huge loss of space.

I renamed the file, rebooted, and then deleted it, and now I have 27% free space.
 
Last edited:

digitalmahdi

Senior Member
Sep 12, 2009
192
31
i do have the same problem. i have htc chacha with 150 internal memory. i managed to use combination of link2sd and titanium backup to move both of application files and data to my sd card so in result i had 130 mb free space left and the rest were used by android. aftr 2 week i found my freespace is decreased to 20 mb and it wasnt being used by apps. after looking for large files i ended up to find this file using more than 100 mb of my internal memory.
i deleted the file but it again started to gain size and become like 8 mb after 24 hour.

anyone came up with any solution?
 

decmk

Senior Member
Jul 5, 2008
323
103
i do have the same problem. i have htc chacha with 150 internal memory. i managed to use combination of link2sd and titanium backup to move both of application files and data to my sd card so in result i had 130 mb free space left and the rest were used by android. aftr 2 week i found my freespace is decreased to 20 mb and it wasnt being used by apps. after looking for large files i ended up to find this file using more than 100 mb of my internal memory.
i deleted the file but it again started to gain size and become like 8 mb after 24 hour.

anyone came up with any solution?

Delete file
Make new file with same name
Set permission to read only
Change owner to nobody

File will remain 0 bytes

Sent from my HTC One X+ using Tapatalk 2
 

ayupduck

New member
Oct 10, 2011
4
0
Delete file
Make new file with same name
Set permission to read only
Change owner to nobody

File will remain 0 bytes

Sent from my HTC One X+ using Tapatalk 2

Perfect - thanks. I did this using the "Root Browser" app. It stopped my partner's Wildfire S having the ever growing '/data/data/com.android.htcprofile/anr_history.txt' file. Great to finally get rid of the problem.

Previously, without doing the change of owner and permissions, the file soon grew and became an issue again after just deleting it.

:)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    i do have the same problem. i have htc chacha with 150 internal memory. i managed to use combination of link2sd and titanium backup to move both of application files and data to my sd card so in result i had 130 mb free space left and the rest were used by android. aftr 2 week i found my freespace is decreased to 20 mb and it wasnt being used by apps. after looking for large files i ended up to find this file using more than 100 mb of my internal memory.
    i deleted the file but it again started to gain size and become like 8 mb after 24 hour.

    anyone came up with any solution?

    Delete file
    Make new file with same name
    Set permission to read only
    Change owner to nobody

    File will remain 0 bytes

    Sent from my HTC One X+ using Tapatalk 2