Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logcat show invisible messages in Eclipse Mars

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.

like image 613
RyanB Avatar asked Jul 14 '15 10:07

RyanB


4 Answers

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.

like image 145
aatoma Avatar answered Nov 20 '22 16:11

aatoma


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
like image 27
user2398244 Avatar answered Nov 20 '22 17:11

user2398244


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
like image 30
Andrea Ajek Avatar answered Nov 20 '22 17:11

Andrea Ajek


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.

like image 1
Joo Sung Lee Avatar answered Nov 20 '22 16:11

Joo Sung Lee