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

Bug 345012

Summary: CCE thrown with the 'VNC Viewer' view
Product: z_Archived Reporter: Remy Suen <remy.suen>
Component: SequoyahAssignee: TmL Inbox <vncviewer.sequoyah-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: kpqb38, Lars.Vogel, mirko, nkvg64, pwebster, wmg040
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 345008    

Description Remy Suen CLA 2011-05-06 14:40:54 EDT
I believe this is because SWTRemoteDisplay arbitrarily sets its own layout to be the same as its parent's layout. In this case, the parent is a ScrolledComposite so its layout becomes a ScrolledCompositeLayout.

Each composite should decide what it wants to use to layout its children (if any) and not just randomly reuse the same layout (and same instance) as whatever its parent is using.

This problem pretty much makes Eclipse unusable because the CCE will keep happening whenever we need to layout the view.

java.lang.ClassCastException: org.eclipse.sequoyah.vnc.vncviewer.graphics.swt.img.SWTRemoteDisplayImg cannot be cast to org.eclipse.swt.custom.ScrolledComposite
	at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(ScrolledCompositeLayout.java:50)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1263)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1249)
	at org.eclipse.swt.widgets.Composite.setLayoutDeferred(Composite.java:1086)
	at org.eclipse.swt.widgets.Display.runDeferredLayouts(Display.java:4187)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3745)
Comment 1 Daniel Drigo Pastore CLA 2011-09-08 15:35:53 EDT
Hi Remy,

we investigated this issue, but could not reproduce it.
Could you please give us more information on how you are trying to use it?

Thanks,
Daniel Pastore
Comment 2 Remy Suen CLA 2011-09-08 16:03:21 EDT
(In reply to comment #1)
> we investigated this issue, but could not reproduce it.

This problem will manifest itself if you use the 'VNC Viewer' view plug-in on Eclipse 4.x.
Comment 3 Daniel Drigo Pastore CLA 2011-09-09 09:01:00 EDT
Hi Remy,

Well, our focus now would be for 3.7 SR1, so we can't address this bug right now.
As soon as we have some news for this, we'll announce it then.

Thanks for reporting this bug,

Daniel Pastore
Sequoyah Team
Comment 4 Eric Moffatt CLA 2012-01-30 14:57:54 EST
Ping ! we're going into M6, is there any update on this ?
Comment 5 Remy Suen CLA 2012-03-02 16:17:02 EST
Still getting this error with I20120229-2200 on Windows 7.

When I try to open the view, the 'Console' view also seems to automatically spawn although that view also seems to be broken in some way.
Comment 6 Mirko Raner CLA 2012-10-30 14:01:39 EDT
I'm getting the exact same issue with Juno build 20120614-1722/Sequoyah 2.1.0.N20120718-0509.
All that is needed to reproduce this problem is attempting to connect to a VNC server.
Comment 7 Lars Vogel CLA 2019-01-14 03:51:16 EST
Please reopen if this is still relevant