LogCat Stops Running in Eclipse Needs Restart

AndroidEclipseLogcat

Android Problem Overview


Periodically LogCat will stop showing messages even though I am in debug mode. At other times it will display only one line at a time! I have a solution, restart eclipse. But I would like to understand this better. It takes too much time to restart eclipse when this happens. I have seen this behavior on the emulator and connected to a device. Either the LogCat shows one line with no history or nothing.

Android Solutions


Solution 1 - Android

I was with the same problem and the solutions here didn't work for me. The solution I found is open the DDMS perspective and select the device and the running process on the Devices window. With that done, the LogCat returns to life.

Solution 2 - Android

Yes, I can get the normal logcat back by clear the log. Also I uncheck the "Limit console output" in Run/Debug->Console.

Solution 3 - Android

I solve these LogCat issues in two different ways:

  1. Clearing the log to fix the one line at a time issue
  2. Opening the devices window (Window -> Show View -> Other -> Android -> Devices), and clicking on the device that I want to view the log for. This seems to force Android to refresh LogCat on that device.

These are much easier options than restarting eclipse, or messing with adb.

Solution 4 - Android

I've had that "one line at a time" problem numerous times. I don't know why exactly it happens but there is a very simple fix that works for me every time. Just hit the clear log button. Simple and easy.

I've also had Logcat fail to show messages. Generally this has been due to a problem with the emulator and it required an emulator restart.

Solution 5 - Android

In eclipse you need to give more space to log buffer, default is 5000, i set it to 50000 and no have any problems.

Window->preference->android>logcat maximum num of log message to buffer ________ set some number 50k is ok

Solution 6 - Android

I'd recommend adjusting the Logcat buffer size and enable workspace application message monitoring in your preferences, mine are set as seen below.

eclipse Logcat preferences

Solution 7 - Android

On a real Device (mine is an HTC Desire in question) I've found simply disabling then enabling ADB does not always solve it. What works more often is to disable ADB, close the page (perhaps by back) then to renter the Development page, and re-enable debug mode.

Solution 8 - Android

Same here! What worked for me is open DDMS perspective and on devices pane I clicked reset adb

Solution 9 - Android

Click "Display saved filters view" button By showing the two-pane view of your LogCat you'll be able to check the active filter in the left-pane. I once fixed the empty LogCat by selecting "All messages".

Solution 10 - Android

When logcat stops displaying log entries, I find that closing Eclipse and re-opening it solves the problem for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAndroiderView Question on Stackoverflow
Solution 1 - AndroidDBragionView Answer on Stackoverflow
Solution 2 - AndroidLencielView Answer on Stackoverflow
Solution 3 - AndroidAustyn MahoneyView Answer on Stackoverflow
Solution 4 - Androiduser432209View Answer on Stackoverflow
Solution 5 - AndroidmarkoView Answer on Stackoverflow
Solution 6 - AndroidJustin BuserView Answer on Stackoverflow
Solution 7 - AndroidsparksalotView Answer on Stackoverflow
Solution 8 - Androidmt0sView Answer on Stackoverflow
Solution 9 - AndroidStrawDragonView Answer on Stackoverflow
Solution 10 - AndroidgonzobrainsView Answer on Stackoverflow