Android :: "Out Of Memory" / No Useful Stack Trace

Apr 11, 2010

My android app is getting an "Out of memory" error without a useful stack trace. It occurs after I have repeatedly re-invoked its main logic through a menu interaction, which leads me to believe that there's a memory leak somewhere.

I say that the stack trace isn't useful because it doesn't include references to any of my own code. There are no references to my own code in the logcat output, either.

I'm wondering if any of you can help me figure out where my memory leak might be occurring, given my stack trace and my logcat output.

Here's the stack trace: Code...

Could my error be related to the "Window already focused ..." warnings? If so, how can I find out what is causing these? I know that I could sprinkle my code with lots of calls to Log.v() in order to zero in on where my problem might be occurring, but I'm wondering if there is a better way to get more meaningful information about the cause of my memory leak.

Android :: "Out of memory" / no useful stack trace


Android :: How Can I Track Down A Crash In A .so Without A Stack Trace

Sep 20, 2010

My game is crashing on the HTC Hero and I have managed to get a user to send me their log. I don't see a Java stack trace at all. It looks like it's crashing in the OpenGL driver. I was wondering how I could go about trying to determine the problem. I was thinking of adding that acra project that sends crash reports to a server but I am thinking it will just send the same that is in this log. I have error checking everywhere so I am really at a lose where to go from here. I even went out and bought a HTC Hero but Canada only has 1.5 for the OS. Code...

View 10 Replies View Related

Android :: Stack Trace Does Not Reference Application

Dec 16, 2009

So I have an app on the market with >10k active users. I have recieved maybe 50 complaints from Droid-user that the program crashes arbitrarily. I have not been able to replicate the error with my own droid, but I got one of the to send me this crash log. However, it does not reference the application. Do you have any suggestions on how to track down this error? I stand baffled.

11-25 16:18:03.730 D/AndroidRuntime( 2964): Shutting down VM 11-25 16:18:03.730 W/dalvikvm( 2964): threadid=3: thread exiting with uncaught exception (group=0x4001b180) 11-25 16:18:03.730 E/AndroidRuntime( 2964): Uncaught handler: thread main exiting due to uncaught exception 11-25 16:18:03.761 E/AndroidRuntime( 2964): java.lang. Code...

View 3 Replies View Related

Android :: Why Phone Don't Print Stack Trace

Jul 6, 2010

Even explicitly writing e.printStackTrace() it doesn't print to the console, why?

View 3 Replies View Related

Android :: Stack Trace / Fix A Bug That Doesn't Point To Any Of Code?

Jun 8, 2010

How do I fix a bug that doesn't point to any of my code? I got the stack trace below from the Marketplace crash reports, but I have no clue how to fix it since it points to none of my own code.

java.lang.NullPointerException:at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:487)at android.view.View.measure(View.java:7964)at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023) at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)at android.view.View.measure(View.java:7964)at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)at android.view.View.measure(View.java:7964)at android.view.ViewRoot.performTraversals(ViewRoot.java:763)at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)at android.os.Handler.dispatchMessage(Handler.java:99)at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363)at java.lang.reflect.Method.invokeNative(Method.java:-2)at java.lang.reflect.Method.invoke(Method.java:521)at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:­860)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)at dalvik.system.NativeStart.main(NativeStart.java:-2)

I'm not seeing any issues on any emulators or devices.

View 4 Replies View Related

Android :: How Can I Catch SIGSEGV - Get A Stack Trace Under JNI On Phone?

Jul 4, 2009

I'm moving a project to the new Android Native Development Kit (i.e. JNI) and I'd like to catch SIGSEGV, should it occur (possibly also SIGILL, SIGABRT, SIGFPE) in order to present a nice crash reporting dialog, instead of (or before) what currently happens: the immediate unceremonious death of the process and possibly some attempt by the OS to restart it. (Edit: The JVM/Dalvik VM catches the signal and logs a stack trace and other useful information; I just want to offer the user the option to email that info to me really.)

The situation is: a large body of C code which I didn't write does most of the work in this application (all the game logic) and although it's well-tested on numerous other platforms, it's entirely possible that I, in my Android port, will feed it garbage and cause a crash in native code, so I want the crash dumps (both native and Java) that currently show up in the Android log (I guess it would be stderr in a non-Android situation). I'm free to modify both C and Java code arbitrarily, although the callbacks (both going in and coming out of JNI) number about 40 and obviously, bonus points for small diffs.

I've heard of the signal chaining library in J2SE, libjsig.so, and if I could safely install a signal handler like that on Android, that would solve the catching part of my question, but I see no such library for Android/Dalvik.

View 3 Replies View Related

Android :: How To Open Stack Trace File Phone / MapActivity?

Apr 23, 2010

I tried using the MapActivity as given in the following link. http://developer.android.com/guide/tutorials/views/hello-mapview.HTML
I get the error in LogCat : DalvikVm: unable to open stack trace file android '/data/anr/traces.txt' Permission Denied. May I know why this happens. However, after making some changes in the code as shown below, I get the map view perfectly.code...

View 2 Replies View Related

Android :: Calling Get JSONArray Throwing Exception With No Stack Trace

Apr 7, 2010

I'm currently working on an android app that pulls a list of forums from a JSON feed. I'm trying to parse the feed and immediately upon calling getJSONArray a JSON exception is being thrown with no stack trace. The JSON being returned is stored in an JSONObject jobj with the format as follows: However when running the following code, I get an immediate exception without a stack trace: Code...

View 1 Replies View Related

Android :: Troubleshooting Or Dealing With Stack Overflow Errors When Trace Shows Nothing?

Aug 17, 2010

Got a trace like this:
java.lang.StackOverflowError
at android.widget.TextView.onMeasure(TextView.java:5160)
at android.view.View.measure(View.java:8172)
at android.widget.TableRow.getColumnsWidths(TableRow.java:308)
at android.widget.TableLayout.findLargestCells(TableLayout.java:497)
at android.widget.TableLayout.measureVertical(TableLayout.java:462)
at android.widget.TableLayout.onMeasure(TableLayout.java:428)
at android.view.View.measure(View.java:8172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3140)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:381)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
at android.view.View.measure(View.java:8172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3140)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:696)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:306)
at android.view.View.measure(View.java:8172)
at android.widget.ListView.measureScrapChild(ListView.java:1135)
at android.widget.ListView.measureHeightOfChildren(ListView.java:1200)
at android.widget.ListView.onMeasure(ListView.java:1109)
at android.view.View.measure(View.java:8172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3140)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:381)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
at android.view.View.measure(View.java:8172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3140)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
at android.view.View.measure(View.java:8172)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:526)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
at android.view.View.measure(View.java:8172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3140)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
at android.view.View.measure(View.java:8172)
at android.view.ViewRoot.performTraversals(ViewRoot.java:805)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1744)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method) Is there anything that can be done here? I'm getting reports of blank screens and force closes.

View 1 Replies View Related

Android :: Development - Debugging Tools / Generate A Java Stack Trace?

Apr 29, 2010

Is there a way to achieve the following in Android?

1. generate a Java stack trace in Android. In J2SE, we use to use something like this - send a signal to the Java Virtual Machine; the Java Virtual Machine generates a stack trace for you; or we can also use debugging tools or Java API calls.

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 4 Replies View Related

Android :: Stack Trace Gives Hex Values Not Function Names When Core Library Crashes

Feb 12, 2009

Here my application "com.android.hello" calls a core library "libvt.so" through JNI call. There is a segmentation fault in "libvt.so". When executed I get the following log What I see is some Hex value followed by a library name. #00 pc afe0d24c /system/lib/libc.so

Also there is a Stack section 01-01 00:02:57.800: INFO/DEBUG(1600): stack: 01-01 00:02:57.800: INFO/DEBUG(1600):bef2e570 bef2e604 [stack] 01-01 00:02:57.810: INFO/DEBUG(1600):bef2e574 afe0a333 /system/ lib/libc.so

This too gives similar information. I am looking for little more informations rather than Hex values. Like the backtrace feature where the stack hex values is mapped to the function names and function names are visible.

Please provide information how to see the function names in stack rather than Hex values. Is ther any compiler options needs to be updated? Any makefile to be updated to enable backtrace?

View 7 Replies View Related

Android :: Trace Memory / Window Leaks In Droid?

May 17, 2010

How to trace the Memory Leaks in Android Development? I am working on eclipse IDE to develop the application. i cant find out how to rectify the memory or window Leaks Exceptions? Any Idea.

Mainly the Window Leaked error raises the Illegal Argument Exception? how to rectify both og this.

View 1 Replies View Related

Android :: Leads To Theorize That Memory Is Leaking On The Stack

May 7, 2010

I'm writing an app that has a foreground service, content provider, and a Activity front end that binds to the service and gets back a List of objects using AIDL. The service does work and updates a database.

If I leave the activity open for 4-8+ hours, and go to the "Running Services" section under settings on the phone (Nexus One) an unusually large amount of memory being used is shown (~42MB).

I figure there is a leak. When I check the heap memory i get Heap size:~18MB, ~2MB allocated, ~16MB free. Analyzing the hprof in Eclipse MAT seems fine, which leads me to theorize that memory is leaking on the stack. Is this even possible? If it is, what can I do to stop or investigate the leak? Is the reported memory usage on the "Running Services" section of android even correct (I assume it is)?

Another note: I have been unable to reproduce this issue when the UI is not up (with only the service running)

View 1 Replies View Related

Android :: Way To Visualize Activity Stack (activities In Memory) On Droid?

Jun 26, 2010

I'm currently debugging my app which is quite complex and has up to 5 activity levels. In order to detect memory leaks (i.e. activities that aren't removed from memory even finish() is called, due to some references held somewhere) I want to check which activities are still alive in memory. Currently I create hprof dumps, but it's not very convenient, cause every time I need to mount the sdcard, copy the hprof dump file from the sdcard to my PC, etc. (Side note: I already tried to automate the pulling of my hprof file more easily, but I'm on an unrooted device and adb pull <hprof file> won't let me / no permission.) Therefore I am wondering, if all I want to know is IF and WHICH activities are still currently alive in my memory, is there a way through the Android API or any other way on-the-fly with which I can achieve this (list all alive activities of my app), programatically.

View 2 Replies View Related

Android :: Sms Blocker - Can't Trace Person

Sep 12, 2010

This person has been texting me none stop for 3 days I've even involved the police who didn't even bother since its a cricket wireless # they can't trace. This person seems obsessed and at times honestly scares me. They've sent over a hundred texts in less than an hour. Pls I've tried googling but come up with year old posts that lead to nothing. Market searches lead to only bad reviews.

View 5 Replies View Related

Android :: How To Trace HTTP Requests / Responses?

Jul 22, 2009

How to trace the HTTP requests/responses e.g. by using Wireshark? I am using soap web services i want tocheck wheather the soap request from the web service sis going properly.I neee the Xml response from the server but non xml format i am getting how to check this request and response using Wireahark or any other process.

View 2 Replies View Related

Android :: How To Trace Localhost Proxy Connection?

Jun 16, 2010

I'm currently trying to debug an issue with my application and I wanted to see if my internal proxy is sending the data in the proper order. Is there any way to essentially sniff my proxy pipe?

View 3 Replies View Related

Android :: Trace File Is Created But Empty

Jul 23, 2009

I have a problem with creating a trace file containing logs on my app. I use Debug.startMethodTracing("tracing"); and in my onDestroy() method i stop the methodTracing. Everything is going fine, like my file is created on my phone BUT it is empty, and i don't get why because it worked once and since i can't get it working. Here is the log ive got, and it says that it is writting on the file, so this is acting a bit weird. Code...

View 3 Replies View Related

Android :: How To Get Function Call Trace On Phones

Jul 14, 2010

Does anybody know how can I get the build-in function call trace on Android phone?

View 7 Replies View Related

Android :: Error In Pulling Trace File -sdcard

May 21, 2010

I created sdcard and mounted it on my emulator , after closing my app , when i try to pull to copy the files (using command:adb pull /sdcard/calc.trace /tmp)i get this error:"remote object /sdcard/calc.trace does not exist".I am listin gdown the commands in sequence.

1)f:>mksdcard 1024 ./myimage

2)f:>emulator -sdcard ./myimage -avd 1

3)(After running my app and exiting the app)adb pull /sdcard/calc.trace /tmp

In my activity i have start/stop method tracing with fiename calc.trace. i am running windows.

View 1 Replies View Related

Android :: Need To Read Trace - Text File /no Data Directory

Sep 25, 2009

Sometimes in LogCat I'll see Wrote stack trace to '/data/anr/traces.txt'

But when using the DDMS perspective, "File Explorer" View, I can't see anything in the "data" directory, I'm assuming because permission denied. Is there a way (short of rooting my ion device) to read what's in that text file?

Is there perhaps an android app for developers that will show the contents of the file? It would seem there would have to be some way of reading the file without rooting the device, otherwise why does the o.s. write it out? How can I read this file?

View 3 Replies View Related

Android :: Phone Trace File Created But Zero Bytes Long

Feb 1, 2010

I am trying to follow the instructions on this page to create a trace file. I can see the file in File Explorer in DDMS and can pull it onto my PC but it is zero bytes long.

Any suggestions as to what I might be doing wrong, please?

View 1 Replies View Related

Android : How To Trace ContentProvider - Under The Base/core/java/content

Mar 16, 2010

I am now reading contentProvider.java( under the base/core/java/android/content)

Ln 127 looks following:

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

I'm really confused about that contentProvider invoke this.query()

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

where is it implement? How can i find it? anyone can tell me?

View 3 Replies View Related

Android :: Stack Of Activity From Activity Stack

Nov 2, 2009

There is a stack of activity i want to call the activity from that stack , My question is that is it possible to check from that stack and call that intent.When i press home button and again when i press the executable it should start the activity where i have left .Is it possible?Any example related to the same would be great help

View 3 Replies View Related

Samsung Captivate :: How To Remove Almost Every Trace Of AT&T

Jul 26, 2010

Here you go! Ripped straight from my article: How To: Remove AT&T From Captivate.

Instructions; WARNING: I am not responsible for any bricked, messed up, ruined devices. You modify your phone at your own risk. These processes are not necessarily safe for your Samsung Captivate or any other device.

Root the Samsung Captivate

First things first. You'll need to root your device to continue with many of the modifications listed below. For our How to Root the Samsung Captivate¯ guide, click here. Its very very easy. Even a total noobie can do it! If you have questions, post a comment and well get back to you A.S.A.P. Look below if you get the idea, check out our How to Root the Samsung Captivate¯ guide if you donte.
Download Update.zip
Plug in your Captivate to your computer. When the phone notifies you that the USB has been plugged in, scroll down your notifications bar and click on USB connected: Select to copy files to/from your computer.¯
Click Mount¯
Now, you'll probably see a popup telling you a new USB drive has been inserted, open it up on your computer. In Windows, click Open folder to view files.¯
Drag Update.zip into the Captivate USB drive (on the top level do not navigate into folders)
Turn off the Captivate (Power Off)
Hold down the Volume Up/Down rocker and the power button until you see some action. Your phone is now booting into recovery.
Use the volume down button to scroll down to Reinstall package
Click the power button to select that option

Enable App Sideloading, AT&T has some weird reservations against app sideloading. That means, AT&T Android users can not use any apps not downloaded on the Android Market. Have no fear! You can remove this restriction easily. Check below for the basic instructions, or click to go to our Enable Captivate App Sideloading¯ guide. Code...

View 23 Replies View Related

General :: Samsung Like Keyboard With T9 Trace?

Sep 6, 2012

I tried some keyboards but didn't find the right one.

I'm looking for a keyboard that shows a 3x3 layout in portrait mode. Like the Samsung keyboard. But it should also support t9 trace aka swype. Or is it possible to activate this in the Samsung keyboard?

GT-I9100 with Tapatalk 2

View 1 Replies View Related

General :: Xtouch X907 - Cannot Trace Drivers For PC

Dec 2, 2012

I am not quite experienced.I bought yday the xtouch x907 (9.7 tablet) running android 4.1.1 and i want to root it.I have used the bin4ry v17 but not resluts i cannot also trace the drivers for my pc).

i own an xtouch x506 (mobile phone) and i rooted it wih bin4ry however with this tablet (ie the x907) i have not managed to do anything.

View 6 Replies View Related

General :: Completely Remove App And Leave No Trace?

May 9, 2013

I have an app that when someone downloads it from the Play Store, recognizes the phone and connects to a server (Internet is needed) so every time I open it I have all my data and my "app activity" shown there. So, here's the thing: I want to sell the phone to a friend of mine, but I don't want (neither does he) to reset to factory because he wants a large amount of the apps I have already installed and it is part of the price.

So, I ask you: Is there a way to completely remove-uninstall an app and ALL of its data so that there is no way for the app to have MY data displayed, and basically the app is "reseted' to factory, so that my friend can use from scratch?

View 1 Replies View Related

Sprint HTC Hero :: File In Root Directory Of Your SD Card Named Search.trace?

Jun 17, 2010

Do anyone have a file in the root directory of your SD card named search.trace? I have one that is about 8.5 megs. I took a look at it but it didn't look like the entries were specific to a particular app. Looks like some system log. Anyone know if there would be a problem deleting it?

View 2 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







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