7

My PC running on Debian Jessie & Logcat's messages are all invisible on eclipse Mars. I tried a solution here, but no help. What to do now?

Screenshot

---------- UPDATE ----------

I tried the followings:

  1. Change logcat/ddms's metadata settings in com.android.ide.eclipse.ddms.prefs file.
  2. Don't use GTK3 by export SWT_GTK3=0

But both failed to fix the situation.

Community
  • 1
  • 1
RyanB
  • 1,287
  • 1
  • 9
  • 28

4 Answers4

10

I had a similar problem (Eclipse Mars on Arch Linux) and it turned out to be a GTK issue. The solution was to add the following two lines

--launcher.GTK_version
2

in eclipse.ini right before the

--launcher.appendVmargs

line, as explained in https://bbs.archlinux.org/viewtopic.php?id=200053 Note that the location of eclipse.ini is distro specific (in my case it was under /usr/lib/eclipse) and multiple copies of the file in different directories can override the same setting, so make sure you are adding the lines in the right place.

aatoma
  • 146
  • 1
  • 8
2

Same problem here! Arch linux with eclipse-java 4.5.0-3

My solution was this reply: https://stackoverflow.com/a/28856904/2398244

ddms.logcat.auotmonitor.level=error  
ddms.logcat.automonitor=false  
ddms.logcat.automonitor.userprompt=true  
eclipse.preferences.version=1
logcat.view.colsize.Application=169
logcat.view.colsize.Level=54
logcat.view.colsize.PID=54
logcat.view.colsize.Tag=198
logcat.view.colsize.Text=619
logcat.view.colsize.Time=182
Community
  • 1
  • 1
user2398244
  • 41
  • 2
  • 5
2

There are some problems with GTK and Eclipse Mars. Try to set the SWT_GTK3 environment variable to 0 before launching eclipse:

export SWT_GTK3=0
eclipse
1

I got the same issue on eclipse MARS, ubuntu14.04 and i solved the problem by modifying the file.

/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs

you should close the eclipse and paste following code.

ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor=false
ddms.logcat.automonitor.userprompt=true
eclipse.preferences.version=1
logcat.view.colsize.Application=200
logcat.view.colsize.Level=70
logcat.view.colsize.PID=50
logcat.view.colsize.TID=50
logcat.view.colsize.Tag=170
logcat.view.colsize.Text=300
logcat.view.colsize.Time=140

Then restart the eclipse. You could adjust by dragging the section of the Logcat as your prefer.

  • I did that, but it also doesn't work. I think this is a bug of eclipse mars since logcat & ddms are ok on older eclipse versions. Never mind, i'm now switching to android studio & everything is fine atm. – RyanB Aug 26 '15 at 07:15