Android DDMS not working - android

The allocation tracker in DDMS in eclipse is no longer working. It worked last night, but my phone got a android update this morning. It no longer will work. When I click the Get Allocations button the console displays as follows:
[2014-07-21 17:42:31 - ddm-heap] *** Received REAL
in red text. Any one else have this problem?

I found out that my code was breaking ddms. Go figure.

Related

Ever since clearing logcat, logcat shows nothing

About a week ago I cleared logcat with the "clear logcat" button on the top left of the logcat screen. Since then, nothing shows up in logcat.
This may sound like some duplicate question, but I have tried every accepted answer with no change. I need some ideas or solutions. Don't close this saying it's a duplicate please.
I have invalidated caches/restarted.
Restarted Android Studio.
Restarted my phone.
Killed, Restarted, updated the adb.
Restarted computer.
Pressed alt+6 multiple times to restart logcat.
Hit the restart button in the logcat panel. Then changed options like debug/verbose as other solutions say.
I have also checked and rechecked every field in logcat (verbose, no filter, etc) and have tried every possible combination, including the usual "fix" of verbose + no filter. I can't even get logs (Log.i, eg) to show up.
Another solution was to go to Tools>Android>Enable ADB integration. This option no longer exists.
More info: Windows 10, newest version. Android Studio 3.4.2.
Edit: My question is DIFFERENT because NONE of those solutions have worked, as stated originally.
I have also now done a complete clean reinstall of Android Studio and still no working logcat.
Edit 2: So I guess this must be a bug of some kind? No solutions after weeks of trying everything. I'll contact Android support I guess? Hopefully it works out.
Try adding debuggable: "true" to the application tag in manifest. Compile your project now and you'll saw every log in the logcat. Hope it may help you.
My model of ZTE phone does not allow logcat. People have reported the same issue with this phone. So it's the phone and not Android Studio or my app.

Eclipse LogCat - Not Working

This is the most frustrating thing ever, LogCat keeps deactivating/disconnecting. After running eclipse, LogCat logs for first run and after that, it goes Blank. I have to restart Eclipse to get it running again, and then same thing happens again. What is matter with it? It used to work fine. I can't recall changes I've made to undo what I (might) have done.
EDIT - Screen of Eclipse as requested.
EDIT 2 - Screen of currently installed SDK packages
If the LogCat is empty, the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the Devices panel (top-left screen).
Same thing with a device. You just have to click on the entry representing that device and the log messages comes.
I believe this other post with the same problem will answer this:
https://stackoverflow.com/a/11967853/241014
Essentially, set the log's buffer to a higher value by going in Eclipse to Window > Preferences > Android > LogCat. Set the "Maximum number of logcat messages to buffer" to something higher than the default of 5,000.
Most of the time Rahuls method would work, but sometimes even that doesn't work in that case, Kill the ADB and restart the eclipse.
For Eclipse only when LogCat isn't working:
1 - Open Perspective "DDMS".
2 - On the left side, click on the device you want to monitor.
3 - Change Perspective back to "JAVA".
In case if you are using cynogenmod in your mobile, try this:
In your device, open "/system/etc/init.d/" folder
If there are many files, try opening each file and find for this line:
rm /dev/log/main
Now, comment this line like this: # rm /dev/log/main
save the file and reboot.
If you close LogCat and re-open it it will display the information.
Although this question has been asked long before, I am answering for others who might stumble upon this trouble.
In Mars, eclipse 4.5 and linux using GTK 3, if Android Logcat display is missing, add the following in eclipse.ini before "--launcher.appendVmargs".
--launcher.GTK_version
2
May also refer these posts.
Logcat show invisible messages in Eclipse Mars
Eclipse GUI broken

Android, track Memory by DDMS, "Get Allocations" doesn't do anything

As the title of the question said. Steps I did:
click on Update heap
In Allocation Tracker tab, click "Start Tracking"
Click "Get Allocations"
In the console, I saw red messages saying:
[2013-12-29 13:56:40 - ddm-heap] *** Received REAL`
What happened? am I missing anything?
Thanks
It needs to be done in Android Studio. (Thanks to the Project Member who said this on this bug report: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&groupby=&sort=&id=74059)
You can see that the icons even have the same name as the icons in DDMS (which is confusing)! But the Allocation Tracker in DDMS does not work, and the one in Android Studio "Android Monitor" does.
P.S. In the screenshots I was using Android Studio 2.3 and Android Device Monitor version 25.2.2.
Wrong (Does not work):
Right (works):
The results will show up in a window next to your source code like this:
For more info:
https://developer.android.com/studio/profile/am-memory.html https://developer.android.com/studio/profile/am-allocation.html
Well, REAL is a REcent ALlocation.
Based on the source code, logging an error is the very first line of handleREAL(). Just an assumption - this should be Log.d() instead of Log.e(), but I cannot say for sure.
And yes, "Get Allocations" for me works not every time I click it. The resulting log cannot be exported, and disappears as soon as the app on device finishes. Sadly, not a very convenient tracing tool...

Logcat getting empty if any filter option in eclipse is clicked

My logcat is behaving very strange. If I have started or restarted the eclipse it is showing the logcat values but once I clicked any option For example Allmessages(nofilters) or com.applicationname(sessionfilter) then suddenly logcat is getting empty. I am not able to figure out what is the problem. This problem started once I updated my ADT to 22. Can any one please tell me what is the problem and how to solve this
Thanks
1. If you are using Eclipse, in the DDMS perspective, make sure the correct device (probably emulator-xxxx) is selected and highlighted. Only then will you get the logcat output in the logcat view.
Also, the Android plugin is a bit unstable, and sometimes only shows the last line in the logcat view. If this happens, try to clear the log. After that, you should get all the log entries again.
2. However this sometimes happens also, when you have Mylyn installed.
http://code.google.com/p/android/issues/detail?id=1808
3. If the LogCat panel is empty in Eclipse the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the Devices panel (top-left screen).
In my case, it usually takes 20 or more seconds for my logcat to display anything. After it does, I see "debugger waiting to settle" messages. This happens every single time.
Try waiting a while to see if it ends up showing up.

Logcat data not displaying in the Log Tab of DDMS Eclipse

The log tab is visible in DDMS and I have been logging data using Log.v(...) for many a week now without any problems.
Today, the log data is now longer being displayed in the Log window. Worked, then did a programming change to track a bug and now the log data is no longer showing.
Have tried running the app on an external Android phone, on the Android Simulator and it makes no difference.
Have closed down Eclipse, reloaded and still no change.
The console displays activity but only to the point of starting the activity.
The external phone is set up for debugging - not that this could be a problem since I have the same problem with the simulator
It looks like I have inadvertantly set something incorrectly but can't remember changing anything :-(
Anyone come across this problem before - have looked at previous posts but none seem relevant.
Regards,
Oliver
I had the same problem a while back. I was using the emulator and device for debugging. Apparently you have to select the device listed in the DDMS view whose logs you want to see. My logs were blank because the device that I was expecting logs from was not the one selected.
Hope that helps
Tried this:
https://stackoverflow.com/a/9826502/1238317
Check in your logcat window - TOP RIGHT corner PAUSE button || (Pause
receiving new logcat messages)
Few clicks + eventually restart eclipse (usually works in my case)
Check your LogCat window to see if you are filtering and make sure to set the debug level to Verbose.
There are possible reasons and solutions:
LogCat might have to much in cache, clear the log and see if it fixed the issue
You might need to select the device in the device view (even if it is already selected, try to click on it)
adb is not correctly working anymore, try to kill and start it again
Check if you see output if you use the command line adb logcat
Just go to DDMS perspective and click on the device's name in upper left corner and done your log cat will Start with a BOOm :P
In Android Studio, which I have found to be much more reliable and intuitive than Eclipse, I found this to be a common issue. For me what solves it (device is automatically set when running your app) besides checking code, is to Quit and restart the emulator or Quit Android Studio and Emulator and reopen/restart

Categories

Resources