Jack Dsilva
Jack Dsilva

Reputation: 1514

getting blank screen in logcat

I have got a problem in my logcat screen and the problem is that,whenever I get error from my application I get blank screen in logcat and I am unable to look at the errors and fix them.How do I overcome this sort of issue?

here is my logcat screen:

enter image description here

Upvotes: 3

Views: 1865

Answers (7)

sunnyboy
sunnyboy

Reputation: 43

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

Upvotes: 0

Dennis Thompson
Dennis Thompson

Reputation: 1

I ran into this issue in the Android Debug Monitor today. The reason this happened to me was because I had set the "maximum number of logcat messages to buffer" under Preferences/Android/LogCat to some very large amount like 50000000000. If you have played with this setting try setting it lower to like 5000. Once I configured mine back down to 50000 I started seeing messages come through LogCat again. You may have to restart things like the Android Debug Monitor, adb, the computer, the emulator, or the phone. At one point or another I tried all of those. Also you should see an error message when you try to configure this setting back to default. I believe it was a Java Null pointer or something. You can safely ignore the message and just check that the configuration worked when you go back into the Debug monitor. Good luck!

Upvotes: 0

MKJParekh
MKJParekh

Reputation: 34291

you have 3 things to do..

  1. start emulator...

  2. then see devices select your avd like Windows-show view-other-android-devices...

  3. then start logcat Windows-show view-other-android-logcat..that's it and it will do..

But First you should see the emulator in devices..

If you can't then in devices click down arrow near camera icon and click on reset adb.

Upvotes: 0

Huang
Huang

Reputation: 4842

I run into that problem sometimes and I suggest:

  • Make sure you select the "V" tag to prove that why this happened is not because there is really no errors (Since you select the "E" tag).
  • Install the USB driver from the manufacturer of your device. Although you can connect the phone to PC as an USB storage device without the driver, you can't debug on the phone without it.
  • In Settings->Applications->Development, check the USB debugging choice to allow you to debug on the phone.
  • Make sure you have selected the proper device or emulator, not some other emulators or devices.
  • Sometimes, the logcat shows nothing, even if you have finished these steps above. In this case, click the "Clear" tag(at the top right, with a RED cross), unplug the phone and plug in again.

Upvotes: 0

aNi
aNi

Reputation: 1359

Update your ADT plugin in Eclipse and right now you are using deprecated Logcat.

Help > Check for Updates

Upvotes: 3

Uttam
Uttam

Reputation: 12399

Just Try this command:---

adb shell
echo 1 > /sys/kernel/logger/log_main/enable

Upvotes: 0

Lalit Poptani
Lalit Poptani

Reputation: 67286

Go to DDMS->Devices and select the device that you are currently working on.

enter image description here

Upvotes: 3

Related Questions