Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to download trace file

Whenever I switch to DDMS view and start method profiling, I get the following error message when I stop profiling:

Method Profiling Error:

Unable to download trace file:

Remote object doesn't exist!

This only happens with 1.6 and 2.1 AVDs, 2.2 and 2.3 work fine. I've been having this problem ever since the latest update to the Eclipse Android plugin. I'm using Eclipse 3.5.2 on Ubuntu 10.04 with Android Development Toolkit version 8.0.0.v201011171904-77661. Let me know if you need any more information.

Edit 1:

Logcat output

Edit 2:

The trace file is actually created on the sdcard and I can pull it with adb or from DDMS file explorer and view it in traceview. I just get the error message when I click on the "stop method profiling" icon and the trace file isn't automatically displayed. I tried deleting the AVDs and creating new ones, installing the latest plugin version, and reinstalling the plugin but the issue remains. I can live with it, but it'd be nice to get it working like it used to.

like image 845
Firas Assaad Avatar asked Dec 22 '10 19:12

Firas Assaad


People also ask

How do I download a trace file?

To download the trace file, run ict_download_snapshot in transaction /nse38 . Enter the SolutionManager incident id in the field Transaction Number and run the program ( F8 ). The trace file will be downloaded to the local computer (for example, incident 4711 traces will be downloaded to C:/TEMP).

What does trace file mean?

A trace file is a file containing a trace of certain events that happen (or will happen) during some process. In the context of dinero simulations, the trace file contains a trace of all the addresses used in memory references by the program from which the trace is generated.


1 Answers

I've read that this method of profiling works only on Android 2.2 and higher. Sorry, can't find link now.

On lower versions you are still able profile via Debug.startMethodTracing(); ... Debug.stopMethodTracing();

Upd: check that you have properly mounted sdcard with read/write permissions and check that you have WRITE_EXTERNAL_STORAGE permission in your manifest file. May be problem in this, because beginning from Android 2.2 DDMS heap dump requests streaming directly out of the VM, removing the external storage requirement.

If you have all permissions, then post here logcat output please.

P.S. I've found a document that I mentioned.

like image 101
Sergey Glotov Avatar answered Oct 30 '22 21:10

Sergey Glotov