Android : Take A Memory Dump On App Crash?

Oct 4, 2010

I am busy writing an app and I have noticed that it sometimes crashes, and when it does and I get back to my computer then I only have the stack trace.

Is there a way for me to take a memory dump of the app at crash time?

Android : Take a memory dump on app crash?


Android :: Debug Memory Leak Where Exception Instances In Heap Dump Have No Inbound References?

Sep 2, 2010

I've been trying to diagnose a memory leak in an Android application I'm writing. I got a heap dump loaded into Eclipse, but the results I'm seeing are very curious. There are some 20,000 instances of an exception (specifically, LDAPException from the UnboundID LDAP library) in the heap with no inbound references.

That is, they show up at the root of the dominator tree. The OQL SELECT objects e FROM com.unboundid.ldap.sdk.LDAPException e WHERE (inbounds(e).length = 0) returns over 20,000 results, totalling to nearly all of the heap. And yet, the GC runs before the heap dump and I can see that it's running in the console, repeatedly, during the execution of the leaky code. If these instances have no inbound refs, what could be keeping them alive?

I also tried doing a "shortest paths to GC" query. It shows one LDAPConnectionReader row retaining 2 instances, and ~20k LDAPException @ <addr> unknown rows with various hex addresses.

Update: I haven't had time to further diagnose this since posting it, and the bounty I posted is ending before I likely will. I'm awarding it as best I can now, lest the points go to waste. Thanks to everyone who looked into this! I will come back later and update again with the results of further diagnosis, when life is a little less hectic.

View 3 Replies View Related

General :: Free Ram 0.0 Bytes Android 4.1.2 - Low Memory Msg For All Apps / Frequent Crash

Sep 1, 2013

I bought iball andi 5li android smart phone a few days back. The configuration of the phone is:

512mb ram
4gb internal
1.2ghz cortex a9 processor
android 4.1.2

Although my device runs almost every app out there (including temple run, subway surfers etc.) but occasionally im facing problems.

Problem occurs after 3-4 days of restarting the phone. When i restart and check the ram usage it says 350 mb (approx) as used and 150mb(approx) as free ram every app runs smoothly but as days pass by gradually the free ram starts decreasing down to 30 mb where all the apps (games and browsers) start crashing with a low memory message. then the conditions get worse after approx 2 hrs free ram is now 0.0 bytes and even the launcher,settings etc crash with a low memory message. The only solution out is to restart the phone.

[used androids before and is quite aware of closing or killing apps but none is working]

Already Tried:
# removing apps from recent list
# stopping apps from Setting>apps>running apps & cached apps as well
# restoring to factory defaults
# used ram freeing apps (no change on ram)

View 2 Replies View Related

Android :: DDMS Heap Dump Permissions?

Sep 1, 2010

I'm trying to get a heap dump from ddms in Eclipse, but it gives me the following error:

"Unable to create HPROF file for application 'space.shhh'. Check logcat for more information."

And here is the logcat output: D/ddm-heap(19153): Heap dump: file='/sdcard/com.bunnies.Shhh.hprof' E/dalvikvm(19153): hprof: can't open /sdcard/com.bunnies.Shhh.hprof- hptemp: Perm ission denied.

I've tried this on an actual device (HTC Desire w/ 2.1 Eclair) and an emulator (Donut). Both gave exactly the same result as above. Also, I do have the WRITE_EXTERNAL_STORAGE permission in the manifest.

View 4 Replies View Related

Android : Unable To Parse Hprof Dump With MAT / How To Fix?

Feb 3, 2010

I'm having trouble analyzing a hprof dum using the Memory Analyzer.. Anyone have any ideas? Here is the error message I get. I just used the "Dump HPROF file" button, and picked it up from the sdcard and opened it with MAT...

View 6 Replies View Related

Android : Get Hprof Dump For Other Processes From App Code?

Jun 16, 2010

In my application , i have an option to capture the hprof dump. I used

android.os.Debug.dumpHprofData (String fileName)

Initially i though the hprof data generated by the method above is for the entire device , which is not so . The hprof data generated is only for my process.

Now i am trying to generate hprof data for other process as well. I need to get the Hprof dump for all the running processes from application code.

from adb shell i tried "kill -10 <pid>" , This command will generate the hprof file for the corresponding process in the data/misc folder.

Now the problem is this command is working perfectly from the adb shell prompt , but i am not able to embed the command to mycode.

My code is like

Runtime.getRuntime().exec("chmod 777 /data/misc") Runtime.getRunTime().exec("kill -10 <pid>")

No exceptions are thrown , but somehow it is not working. The same code above is capturing Hprof dump for my process, when i give my process ID.

I tried with "android.os.Process.sendSignal (int pid, android.os.Process.SIGNAL_USR1) ;" also.Getting the same problem.It is capturing Hprof dump for my process. For other processes it is not working.

Do we need to have any special permission to kill other process from our process ? Or is it a built issue ? can you please suggest some possible way to get Hprof dump for other processes from application code?.

View 2 Replies View Related

Android :: How To Dump The Content Of Sqlite Via Adb Shell Command

Apr 16, 2009

I am trying to dump the content of sqlite via adb shell command.

Here is what i did:

CODE:...........

My questions I try both 'tables' command and dump the schema for 'main', I can't find my table. Can you please tell me what am I doing wrong?

In my java code, I am able to insert value to DB like this:

CODE:.................

View 4 Replies View Related

Android :: Interpret Device State Dump From DDMS?

Sep 8, 2009

Is there any documentation describing the various sections of "dump device state" output from DDMS?

View 3 Replies View Related

Android : Dump HPROF File Button In DDMS

Nov 18, 2009

Here,http://android.git.kernel.org/?p=platform/ dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD is a description about Dalvik Heap Profiling.

In "Android 1.6 ("Donut")" section, it says "Select your application and click the "dump HPROF file" button. ". I can find that button in DDMS.

I found there were three items in Device menu: 1.dump device state 2.dump app state(always disabed) 3.dump radio state

Is "dump app state" button the "dump HPROF file" button?

View 5 Replies View Related

Android : Dump All Thread Stacks / Can Do This From Within Java Code?

Aug 4, 2010

We have a service that seem to get deadlocked very occasionally in the field. It's not possible to hook up to a debugger. We can detect the deadlock situation programmatically. Is it possible to do this from within Java code?

if (ohIamDeadlocked()) { Thread.something.dumpStacksOfAllThreads(); }

If this is not possible, is there an adb command that could do it? I tried "adb dumpsys" but it doesn't print any stack information.

View 3 Replies View Related

Android : Dump Current Screen To A Bitmap In Droid?

Jun 3, 2010

Is there way to dump the current screen to a bitmap in Android?

And what about dump screen of other applications? For example, running a service background, the foreground app could send an intent to start the service, and capture the current screen and save as a bitmap.

View 2 Replies View Related

Android : How To Dump A Sqlite Statements Text File Into Db?

Nov 5, 2010

I am preparing a new update of my application, in this version I need to insert lot of new rows (200) in my db.

Because I don't want to programatically add 200 insert code line for each row, I would like to know what is the best method to accomplish it just with a call to the file and dumping it into my db.

View 4 Replies View Related

Android :: Java + HTML To TXT Library That Mimics The Output Of Lynx -dump?

Nov 12, 2010

I need a library in java that can take HTML content and generate text in the same format that is generated by the Linux lynx program.

That's it. Reasons below if you care.

I need to expose data provided by 3rd party servers to end users on Android. Data format is ancient, in badly formatted HTML, so much that I've tried reading it using java and it fails occasionally (unacceptable). It is also growing every month (preinstall ruled out) and I can't convince them to change to "modern" stuff (life would be great in XML etc.).

Shortest route: I wrote a class to use the W3 html2txt service online (google search it). It worked fine on the app until I got complains and noticed that the W3 service fails occasionally. It's not that big of a deal, but the black box logic expects the output to be in this "lynx like" text format.

So I would like a library to do the conversion (HTML->TXT) in "lynx style" inside the app and avoid the outages in the W3 service. And besides, the lynx output the probably the best I've seen, the most organized and neat.

View 1 Replies View Related

HTC EVO 4G :: Droid X System Dump - Apps

Jun 24, 2010

Below is a list of all .apk files in the dump, and some notes about what is working and not working .apk apps in the Droix X dump useful for the Evo.

LIST
AccountAndSyncSettings.apk
AdminFeedNotifier.apk
AdService.apk
amazonmp3_1.7.22_signed_zipaligned.apk
android-syncservice-app.apk
ApplicationsProvider.apk
ArcPhotoworkshop.apk
ArcVideoEditorLite.apk (Doesn't work)
AtCmd.apk
AudioEffectSettings.apk
BackupAssistanceClient.apk
BatteryManager.apk
BatteryReport.apk
Blockbuster.apk (Won't install)
Bluetooth.apk
BluetoothDun.apk
blur-services.apk
BlurAlarmClock.apk
BlurCalendar.apk
BlurCalendarProvider.apk
BlurCamera.apk
BlurContacts.apk
BlurContactsSync.apk
BlurEmail.apk
BlurEmailEngine.apk
BlurHome.apk
BlurPhone.apk
BlurSNMessagingEngine.apk
BlurUpdater.apk
Browser.apk
BuaContactAdapter.apk
Calculator.apk
CalendarSync.apk
CarDock.apk (works)
CertInstaller.apk
CityID.apk
ClockWidget.apk
cmas.apk
CompassCalibrate.apk
ContactsData.apk
ContactsProvider2_0.apk
ContactsUnconnected.apk
Conversations.apk
DatamanagerApp.apk
DataManagerService.apk
DLNA.apk
DlnaSystemService.apk
DMService.apk
Dock.apk
DownloadProvider.apk
DrmProvider.apk
EnhancedGoogleSearchProvider.apk
ExtDispService.apk
file.txt
FileManager.apk
FirewallService.apk
FMRadio.apk
FMRadioService.apk
Fota.apk
FriendFeed.apk
GlobalSearch.apk
GlobalUnplug.apk
Gmail.apk
GmailProvider.apk
GoogleApps.apk
GoogleCheckin.apk
GoogleContactsSyncAdapter.apk
GooglePartnerSetup.apk
GoogleSearch.apk
GoogleSettingsProvider.apk
GoogleSubscribedFeedsProvider.apk
gtalkservice.apk
HelpCenter.apk
HomeSyncWizard.apk
HTMLViewer.apk
ImDmPlugin.apk
LatinIME.apk
LiveWallpapers.apk
LiveWallpapersPicker.apk
Location.apk
LocationProxyDmPlugin.apk
MagicSmokeWallpapers.apk
Maps.apk
MarketUpdater.apk
MasterClearErrorReport.apk
MediaGallery.apk
MediaProvider.apk
MediaSync.apk
MediaUploader.apk
megamaid.apk
MessagesWidget.apk
Messaging.apk
MotoAtCmdPlugin.apk
MotoAttAtCmdPlugin.apk
MotoGAL.apk
MotorolaSettingsProvider.apk
MtlrNotifier.apk
Music.apk
Mynet.apk
MyVerizon.apk
NetworkLocation.apk
NewsWidget.apk
oma1motService.apk
OMADownload.apk
OMAProvisioning.apk
OverlaySettingsProvider.apk
PackageInstaller.apk
PhoneAddons.apk
PhoneConfig.apk
PhotoWidget.apk
PicoTts.apk
PNI-Moto.apk
PolicyMgrProvider.apk
PolicyMgrService.apk
ProgramMenu.apk
ProgramMenuSystem.apk
Protips.apk
QuickContactWidget.apk
QuickOffice.apk
RichTextCommon.apk
ScreenReader.apk
SDMService.apk
Settings.apk
Setup.apk
SetupProvider.apk
SetupWizard.apk
Skype_mobile.live.apk ("Skype Mobile can only be used on Verizon Wireless phones")
SocialMessaging.apk
SocialShare.apk
SoundRecorder.apk
StatusWidget.apk
StickyNoteWidget.apk
Stk.apk
StorageMonitorService.apk
Street.apk
Swype.apk
SyncML.apk
SyncMLApp.apk
Talk.apk
TalkProvider.apk
TelephonyProvider.apk
Term.apk
ToggleWidgets.apk
TtsService.apk
UniversalInbox.apk
Upgrader.apk
Usb.apk
UserDictionaryProvider.apk
VClipboard.apk
Vending.apk
VideoPlayer.apk
Visualization.apk
VisualizationWallpapers.apk
VoiceCommands.apk
VoiceSearch.apk
VpnServices.apk
Vvm.apk
WeatherWidget.apk
WmdrmDla.apk
WmdrmWebpush.apk
WorkContacts.apk
YouTube.apk

View 16 Replies View Related

HTC EVO 4G :: Unwanted Dump Of Text Message History

Nov 27, 2010

Seems that what I am about to describe has plagued Droid Incredible users (post from another Android forum). Hoping someone using an Evo on Sprint can share some insight and/or solutions to the issue.

At least twice in the past couple months, all of my text messages (several thousand within dozens of conversation threads) have suddenly disappeared without warning. It basically happens like this: I check or send some texts, check something else on my phone like my email or calender or other routine function, then go back within moments to check or send another text and just like that, my entire text message history is EMPTY. Talk about frustrating!

I have doubled checked my settings and have nothing set that would cause older messages to be purged. Anyone know what may cause this and how to prevent it from happening again? BTW, I also had all my favs as identified in my favs widget totally disappear once (had to re-select each one again). Not sure if this is related, but I thought I mention it.

View 2 Replies View Related

General :: Dump All Game Data To External SD?

Oct 2, 2012

I downloaded GT Racing Motor Academy and want to download it, but face the problem of not having enough space. I have a 32gb external SD card and moved the app itself to the SD card but want all the 650mb of game data to download to it.

SAMSUNG-SGH-I577

View 5 Replies View Related

General :: Nexus 7 - How To DEODEX System Dump

Aug 21, 2013

I know how to do it with standard ROMs using the android kitchen. Recently the new Motorola X system dump has been leaked and I got my hands on it... I want to start pulling features and making my own ROM based off AOSP or PAC source. Nexus 7

View 2 Replies View Related

General :: Get Dump Image Boot From Device

Sep 28, 2012

I was trying to get dump_image boot from my device, but I got this instead

Code:
shell@android:/ $ su root
su root
shell@android:/ # dump_image boot /sdcard/boot.img
dump_image boot /sdcard/boot.img
sh: dump_image: cannot execute - Permission denied

View 1 Replies View Related

General :: How To Make Flashable Rom From System Dump - HTC One

Oct 3, 2013

so I've been searching around but I couldn't find any clues. Right now I have a complete system dump for a HTC One Rom. How could add root to it and make it flashable via recovery?

View 4 Replies View Related

General :: Rom Dump Using MTK Root And Droid Tools?

Dec 31, 2012

How to rom dump mtk 6575 HDC galaxy s3 clone using MTK root and droid tools

View 1 Replies View Related

General :: Dump Boot Or Recovery (Stock)

Aug 3, 2013

I just trying to make cwm for my brand new SAMSUNG GALAXY STAR G-S5282 but coudn't find any source orsomething like that... its running jelly bean i try to dump boot image but its says

Code:
dump_image boot boot.img
/system/bin/sh: dump_image: not found
ok now something wron it dont have dump_image file in it

partitions of this mobile is

Code:
cat /proc/partitions
major minor #blocks name

179 0 3817472 mmcblk0
179 1 3840 mmcblk0p1

[Code] ..........

Now is there any wy to make dump of boot.img or recovery.img for making cwm?

View 9 Replies View Related

Motorola Droid :: X Boot Animation - From System Dump

Jun 24, 2010

Don't know why I didn't think to post this up earlier. Now I'm at work, lol, sneaking this up.

bootanimation.zip

Copy to /data/local or /system/media

This is the boot animation from the actual device!

View 30 Replies View Related

General :: Port Moto X Google Now Since System Dump Is Out?

Aug 5, 2013

4th Galaxy of the Android Universe - Port Moto x Google now since system dump is out?

View 3 Replies View Related

Samsung Behold 2 :: System Dump Of The Default Update To Root

Mar 8, 2010

With the New Update Do this For me?

adb pull /system C:BH2 ( C:BH2 = Your File Folder ) then upload the file's and Post them here?

Since I'm still waiting on the Update myself, I've had a brief chat with my Source at Samsung & he confirmed there isn't nothing life chaning in the kernel regarding problems. All fixes was addressed mainly to the OS it's self.

The Faster I can get the System Dump of the Update, the Faster I roll out updates to the system.img for everyone..

View 20 Replies View Related

Motorola Droid :: Found A Multitouch.xml File In System Dump

Dec 9, 2009

In the system dump i found a android.hardware.touchscreen.multitouch.xml file in the .etc/permissions directory...does this hold any water?

View 1 Replies View Related

HTC Incredible :: Droid 2 Live Wallpaper And Boot Animation And System Dump

Aug 11, 2010

Here is the newest Droid Eye live wallpaper ripped from the Droid 2!
Go here:

Droid 2 Live Wallpaper Apk ripped for your Android Device! | WJD Designs

And Also Added the Droid 2 Boot Animation!

Also added full Droid 2 system dump!

Added static wallpapers as well

Added Droid 2 keyboard port & Droid 2 Metamorph Lockscreen & Droid 2 Blue Live wallpaper Mod!

All Credit goes to LegionofTHEFecalExcretion over at XDA!

View 41 Replies View Related

Jelly Bean :: Galaxy S4 - System Dump To Port Live Wallpapers

Oct 14, 2013

I just got a samsung galaxy s4 and I also have a Samsung Epic 4G Touch system dump. I was wondering if there was a way through the system dump to port the live wallpapers to the S4.

View 4 Replies View Related

Android :: Installer Intent To Install On Memory Card Or On Phone Memory

Dec 2, 2009

How to tell the installer intent to install on memory card or on phone memory ?

View 2 Replies View Related

Android :: Out Of Memory / Orientation Change / Memory Analyzer Question

Jan 21, 2010

My application is designed to support both portrait and landscape orientations. Using my HTC IO device, it survives 12 orientation changes before throwing an out of memory exception while inflating my activity.When I follow the recommended procedure of using DDMS to first force a GC and then write a heap dump, and then load it into the Eclipse Memory Analyzer, there is only one retained instance of my application, as there should be. None of the other retained objects are obvious offenders. Just for yuks, I reran the test, and did everything the same way except I didn't force a GC. In this case I see 13 instances of my application, which is more consistent with throwing an OOM exception. Is this telling me something useful? If forcing a GC with DDMS reclaims the memory used by now-defunct instances of my activity, I would have thought the VM would have garbage collected some, if not all of these defunct activities automatically. Do I need to request GC at the very beginning of my activity lifecycle to make sure?

View 7 Replies View Related

Android :: Use VBO On 1.6 SDK And Get A Crash

Feb 22, 2010

I tried to use VBO on 1.6 Android SDK and get a crash whenever I try to give the VBO id free using glDeleteBuffers. The issue has already been filed here: http://code.google.com/p/android/issues/detail?id=4273

Is there any way of giving a VBO id free, then? Otherwise I'm afraid that I can't use VBO because I might run out of graphics memory/buffer IDs.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved