Android :: Cupcake Memory Bug With WebViews - That Disappears When Debugger Attached

May 15, 2009

I've literally spent 15+ hours trying to figure out this one bug (when I should be studying for finals). Any help is greatly appreciated. The bug appears on the dev1 phone running cupcake. It was not present before the upgrade. Basically, the problem is that when a activity with a webview and 2 threads is run, the service that runs after it will always crashes the process (but it works fine when the debugger is attached). The worst part is that it crashes at arbitrarily places in the service, so I can't isolate the error.

The details:

I have an activity with a WebView. The activity executes two threads, one after the other using the basic new Thread(new Runnable() {public void run()... Both threads use the same handler to report back results to the main activity. Flow works like this: when the activity starts, the first thread gets data to construct the URL that the webview will load (using DefaultHTTPClient). Then when the user navigates to a certain page, the second thread is again fired (using DefaultHTTPClient) to get some xml. This works fine.

The problem happens right afterwards. Once the activity with the webview finishes (it calls finish on itself), a service is started that has a thread that using DefaultHttpClient to downloaded some xml, process it, etc. The service crashes at arbitrary points with no error messages, simply displaying a memory dump, and kills the main process with it. When I attempt to debug the process, it runs just fine w/ no crashes. I've repeated this at least 30 times, with the same result. (no crash w/ debugger, crash when installing signed apk file to device and running it).

The program doesn't crash when the threads are removed from the activity with webview. So even if the webview activity runs (but all threads are removed), the service runs just fine regardless of the debugger.

Here is how my threads start (both of the ones in the activity with the webview, and the main thread in the service that is launched afterwards):

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

.................

Here is what logcat displays:

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

Android :: Cupcake Memory Bug with WebViews - that disappears when debugger attached


Android :: OpenWnn Project Disappears In Latest Cupcake Code / Why Is So?

Apr 23, 2009

The OpenWnn project was involved in the cupcake project when I got the code at 1st April, but it disappears in the latest cupcake code. Why? Will it be in the final cupcake release?

View 2 Replies View Related

Android :: Webviews Not Displayed Completely

Feb 28, 2010

My program doesn't work correctly with Android 1.6 (running on Acer), it works correctly with others devices. Apparently, my xml view is not correctly understood with this device (or Android version). With Android 2.1 all is ok, but with Android 1.6 I've a second scroll bars displayed (one for webview another for the scroll view), my last relative layout covers the webview which is not displayed completely. I know that an issue was existing with Android 1.5.

View 3 Replies View Related

Android :: Virtual Keyboard Input Focus With Webviews

Mar 15, 2010

I'm having a very very strange problem with input and textarea html tags in a WebView. Basically they never seem to gain input focus with the virtual keybaord. which shows a single input box. There is now way just tapping around the screen to get it to accept input. Strangely, if I use my trackball on my G1 to select the field, I can eventually get focus and type in it. For trackball-less things like the N1, that doesn't help though.

View 16 Replies View Related

Android :: VM And Debugger ?

Sep 13, 2009

Is there any virtual machine to test Android? How can I debug the program for Android?

View 1 Replies View Related

Android :: Waiting For Debugger

Mar 29, 2010

I am trying to debug my application on Emulator, but it just stucks off on one message "Waiting for Debugger - Application XXX is waiting for the debugger to Attach". Its really annoying probably I am missing something.

View 3 Replies View Related

Android :: Debugger Not Working?

May 20, 2009

Im working on a widget, I'm using eclipse and windows vista 64 bit. I run the app in debug mode and I put a breakpoint on the context.startService line below but the app isn't stopping. My widget is displaying as expected, just showing my frame and some text saying loading.

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

When I am running the emulator my console gets spammed with messages like this, even when im not in debug mode. [2009-05-20 03:02:38 - ddms]Can't bind to local 8643 for debugger

View 3 Replies View Related

Android :: Using The Eclipse Debugger?

Nov 10, 2009

Im programmign on Windows with Elcipse and a Motorola Droid. ADB will successfully download the code to the Droid and run it, but ive been unable to get debugging to work either remotely or with the emulator. (To be honest Im having multiple problems with the emulator and id rather just not have to use it.)

Does remote debugging work? If so, how would I get it working? If not, does emulator debugging work and how would I get that working?

Right now my "debugging" consists of setting the text of an onscreen text-view, but thats not a good long-term solution.

View 3 Replies View Related

Android :: Debugger Not Working For AppWidgets?

May 8, 2009

I'm trying to make an AppWidget, and for some reason the Eclipse debugger doesn't suspend on any of the breakpoints I set (but I know the code is executed because I see it working on the emulator). I don't have this problem with other 'regular' apps (non AppWidgets). Is this a known limitation, or is it just a problem on my installation?

View 4 Replies View Related

Android :: Debugger Doesn't Start On G1

May 3, 2009

Whenever I try to run debugger for my applications, it gets stuck on "Waiting for Debugger." It works fine on a ADP1 phone. Leaving it for a while ends up restarting the phone. I even reset the phone to factory mode and the problem persists.

View 2 Replies View Related

Android : Debugger Suddenly Can't See My Device

Sep 27, 2010

I was debugging away and moved my phone a bit and the debugger lost contact. I figured it was just a loose USB so I reseated the cable and attempted to restart the debugger. Now the debugger can't find my phone. I can manage the phone from DDMS without any problem so it's not a phone, cable, or driver issue. Something went wacko in the debugger setup. When I go to Run Configurations in Eclipse, the phone is simply not in the list of choices. Any ideas where I can look for what's wrong?

View 9 Replies View Related

Android :: Can't Bind To Local Nnnn For Debugger?

May 30, 2010

I'm new to Android programming (and Eclipse IDE and Android emulator).I've got Hello World and some of Notepad working, but I'm still constantly getting quite a few DDMS console log messages (shown below) about not being able to bind locals for debugger.Is this a problem? Can I get rid of these messages somehow?

View 1 Replies View Related

Android :: App Waiting For Debugger When Not Connected To Computer / Why Is So?

Jan 8, 2010

It seems like every step I take in the Android world I run into problems. Im soon up to 20 questions here on StackOverflow hehe =)

Usually, I have my HTC Hero connected to the computer via USB and I launch the application either in debug mode or in normal mode.

So, the last time I ran the app in normal mode. Then I disconnect the device (I want to try to have it "free", not connected to computer) and I start the app from the menu. When I do that I get a popup saying "Application xxx is waiting for the debugger to attach" and there it stops and eventually dies.

Why is it waiting for the debugger, when the last time I ran the app (while connected) I didnt run it as Debug?

View 3 Replies View Related

Android :: Does The Debugger Truncate Debug Messages

Oct 14, 2010

Im asking because Im trying to debug a SQL query problem and adb only seems to show part of the SQL string and chops off the end.

Im getting an "unrecognized token" error when running a query:

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

As you can see the query above appears truncated.

View 1 Replies View Related

Android :: Eclipse Debugger Is Skipping Instructions!

Jul 23, 2010

I am debugging an app that tests an API I wrote. There is a section of code that simply reads a DB cursor like this:

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

View 4 Replies View Related

Android :: Remote Debugger Not Connecting To DDMS

Apr 1, 2009

It seems that DDMS does not accept that a debugger in another host connects to it (a scenario where host A has the Emulator and DDMS running, and host B has the debugger). It appears that DDMS is binding to the loopback address. Does anyone know if that is intentional ?

View 2 Replies View Related

Android :: How To Start Debugger On ADP1 Device Rather Than AVD

Sep 17, 2009

Does anyone know how to get the debugger to launch on an ADP1?. It was recently flashed to 1.5. Dev platform is Eclipse on Windows XP with the SDK 1.5 USB driver installed (HTC Dream Composite Interface). Windows can see the device and adb can see the device with "adb devices" command. USB Debugging has been enabled on the device and the application manifest has android:debuggable="true" set in it. The LogCat windows is showing log output from the ADP1 too.

But when Selecting Run->Debug or Run->Run the avd is always launched. The instructions say that it should launch to the device or give a choice if the avd is running too.

Do anyone know what needs to be done to get the debugger to launch against the real device instead of the avd?

View 3 Replies View Related

Android :: Break Into Debugger On Exception In Droid Emulator?

Feb 14, 2010

Assuming I didn't start in debug mode, is there a way to make the eclipse debugger automatically start if my app throws an exception inside the emulator?

Alternatively, is there a way to get a more useful error message out of the emulator (something more useful than "Sorry, your app terminated unexpectedly").

View 3 Replies View Related

General :: Uninstall Factory Apps Through Android Debugger

Apr 24, 2012

Is possible to uninstall factory apps with root access.But, ADB have 'root' command that give root access to the terminal what you are in, so, in this case, factory apps can be uninstalled by androig debugger with root acces?

like:

adb root
adb uninstall XXX

View 1 Replies View Related

Android :: Failed Sending Reply To Debugger : Broken Pipe Error / Fix It?

Feb 11, 2009

I am getting the below two errors, can someone help me, why these errors i am getting.

02-11 10:56:12.120: ERROR/dalvikvm(334): pthread_setspecific failed, err=22 02-11 10:56:13.210: ERROR/jdwp(345): Failed sending reply to debugger: Broken pipe

View 2 Replies View Related

HTC EVO 4G :: Usb Debugger - Enable Or Disable

Oct 6, 2010

How would u enable or disable the ish debugger.

View 1 Replies View Related

Android :: INTENT_SEND And Attached Files

Jul 26, 2010

My app wants to send a data file by email. However, the data only exists inside the database. There is no physical file containing it. In order to make it possible to send this using INTENT_SEND, I need to return a file descriptor in ContentProvider.openFile(). This means I need to write my data out to a temporary file on disk somewhere so I can open it to get a real file descriptor. However, the email app doesn't necessarily use the file immediately, and *doesn't tell me* when it's finished with it, so I don't know when to remove the temporary file. As the file is likely to be quite large I don't want to keep it around for long periods.

What I'd really like to do is to be able to avoid the whole issue by using a callback to synthesise the data as and when the email app needs it, using some sort of pipe. Unfortunately due to the real file descriptor requirement I can't use Java pipes, there are no Unix fifo APIs that I can find, and you can't create a ParcelFileDescriptor from a Unix socket, which was my other option. Is there any easy way to do what I want, or do I need to start messing around with TCP sockets?

View 5 Replies View Related

Android :: Sent Myself Gmail With Attached AVI And Cannot D/l On Phone

Jul 25, 2010

AVI file attached to gmail on Droid only offers PREVIEW as an option and my Rock Player app (which would play it) does not appear on list of apps to use. Movies and Video Player only come up and unlike Windows, there is no ability to browse for an app. (something that should be added to android). Is there a setting somewhere to fix up this goofiness? Been looking, but so far no luck.

View 6 Replies View Related

Android :: Tab Host Disappears

Aug 10, 2010

I am developing an Android application consisting of 4 tabs. On the first tab I have a button, which again calls an Activity called ActivityA.When my ActiviyA is started, the tab control is not shown anymore.

View 1 Replies View Related

Android :: Can't Open Attached Video In Email

Jun 19, 2010

One of my 'must-haves' is the ability to open any kind of attachment that comes in with an email (.doc, .docx, .xls, .ppt, .jpeg, etc.) I was assured the Ally could with the application docs-to-go. I am now finding that it's a hit and miss with opening files. Files that have the .doc extension will come up and say 'can't open this video'.

View 1 Replies View Related

Android :: View Not Attached To Window Manager

Feb 8, 2010

I am having some of the following exceptions:

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

I have googled it and see that it has something to do with popups and turning the screen, but there is no reference to my code.

The questions are:

Is there a way to find out exactly when this issue is happening? other than turning the screen, is there another event or action that triggers this error? how do I prevent this to happen?

View 3 Replies View Related

Android :: Delete An Attached File After It Sends?

Feb 4, 2010

We are starting the e-mail intent of the user's choice (createChooser) and sending a zip file. This zip file is created right before the email sends, but we need to make sure the file is there until the email actually gets sent. Once the e-mail is sent, it would be nice to have this file deleted instead of sitting around eating SD card storage. Is this possible? (it can't be done in onActivityResult, e-mail intents don't actually finish, they cancel and thread the sending in a background service...so when onActivityResult gets called the e-mail might not have sent yet). Any ideas?

View 1 Replies View Related

Android :: Name Of File Attached To An Email On Gmail App?

Oct 10, 2010

I'm trying to get the name of the file attached to an email on the gmail app? Can anyone point in the direction of getting the file name ? I can get the attachemnt, just don't know how to get the original file name.

View 1 Replies View Related

Android :: Exchange Account Disappears

Apr 18, 2010

My exchange account disappears at least once a week and I have to set it up again. I also get unable to connect to server sometimes and I have to pull the battery to reset to make it work. What is going on?

View 1 Replies View Related

Android :: Gps Icon Disappears / Way To Get Back?

Jul 22, 2010

I am using the GPS and something I do in my program causes the GPS icon in the notification area of my phone to disappear for a few seconds then come back, then disappear again. None of the other GPS programs I use have this "problem"... if it is actually a problem. I've read all kinds of articles about the GPS icon staying on after the program exits, but I can't find anything about it disappearing while the application is using it. What causes the GPS icon to disappear?

View 5 Replies View Related







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