Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 526830

Summary: Upgrade underlying SWT/Platform version so that UI is usable on Wayland instead of X11
Product: [Tools] MAT Reporter: Michael Vorburger <mike>
Component: GUIAssignee: Project Inbox <mat.gui-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jan.public
Version: 1.7   
Target Milestone: 1.8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 534578    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of MAT under Wayland on Fedora 26 none

Description Michael Vorburger CLA 2017-11-03 17:42:55 EDT
Created attachment 271323 [details]
Screenshot of MAT under Wayland on Fedora 26

I'm using MAT 1.7.0 on Fedora 26 under Wayland and am getting window sizing errors, huge black bars in the Overview as shown in the attached screenshot, and errors when opening reports, due this:

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTError: No more handles [Browser style SWT.MOZILLA and Java system property org.eclipse.swt.browser.DefaultType=mozilla are not supported with GTK 3 as XULRunner is not ported for GTK 3 yet])

I suspect that all of this would be disappear if the next MAT release upgrade to the latest SWT / Platform?  (Wayland support isn't fully complete their either, but I use Photon Milestone 2 (4.8.0M2) on the same Fedora 26, and it's much better already.)
Comment 1 Michael Vorburger CLA 2017-11-03 17:59:49 EDT
This works around it by forcing X11 instead of Wayland:

  export GDK_BACKEND=x11
  ./MemoryAnalyzer

but ideally one shouldn't have to know this magic incatation and it should just work, of course.
Comment 2 Andrew Johnson CLA 2018-05-28 16:00:03 EDT
We are going to release RCPs based on Photon - bug 534578, which should fix this problem.
Comment 4 Andrew Johnson CLA 2018-07-26 07:42:47 EDT
Memory Analyzer 1.8 was released, based on Eclipse Photon 4.8

This should have fixed the problem - if not then please reopen.
Comment 5 Michael Vorburger CLA 2018-07-26 10:51:20 EDT
> This should have fixed the problem - if not then please reopen.

yup; works great - thank you!