Bug 249861 - [About] About Dialog Plugins List Paints Corrupted
Summary: [About] About Dialog Plugins List Paints Corrupted
Status: RESOLVED DUPLICATE of bug 137916
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-06 15:28 EDT by Matthew Bisson CLA
Modified: 2009-03-16 11:34 EDT (History)
4 users (show)

See Also:


Attachments
Screenshot of problem (82.29 KB, image/jpeg)
2008-10-06 15:52 EDT, Matthew Bisson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Bisson CLA 2008-10-06 15:28:22 EDT
Build ID: I20080918-0100

Steps To Reproduce:
1. Go to plugins list in about dialog.
2. Try scrolling with mouse scroll wheel.
3. List becomes corrupted (see screenshot).


More information:
No problem with scrolling using scroll bar, arrow keys, or page-up and page-down.
Comment 1 Remy Suen CLA 2008-10-06 15:49:15 EDT
(In reply to comment #0)
> 3. List becomes corrupted (see screenshot).

Matt, it seems you forgot to attach it or the bugzilla fairies ate it.
Comment 2 Matthew Bisson CLA 2008-10-06 15:52:37 EDT
Created attachment 114351 [details]
Screenshot of problem

First upload attempt failed ... trying again.
Comment 3 Remy Suen CLA 2008-10-10 09:10:45 EDT
Looks fine to me on Windows XP with I20080918-0100 running on Sun 1.5.0_16-b02.
Comment 4 Remy Suen CLA 2008-12-03 07:59:59 EST
Matt, are you still seeing this? I can't reproduce it on I20081127-0900 on XP. And by the way, are you using a 32-bit build or a 64-bit build? I'm on a 32-bit machine here myself.
Comment 5 Matthew Bisson CLA 2008-12-03 10:59:11 EST
Yes I'm still seeing it. I just reproduced it in I20081202-1812. 

I'm running on 32-bit. 

I'm not sure if this is localized to my machine. If no one else can reproduce it, I'd assume it's just me.
Comment 6 Remy Suen CLA 2008-12-03 11:08:18 EST
(In reply to comment #5)
> I'm not sure if this is localized to my machine. If no one else can reproduce
> it, I'd assume it's just me.

Well, Remy Suen doesn't really count as "no one else". :)

I'd suggest trying reproduce it with pure SWT code. How about this main method? The image is a little big but maybe it doesn't matter if there's an image or not as you have artefacts on your text to according to your screenshot.

public static void main(String[] args) {
	Display display = new Display();
	String[] titles = { "Information", "Error", "Question", "Warning" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	String[] questions = { "who?", "what?", "where?", "when?", "why?" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
	Shell shell = new Shell(display);
	shell.setLayout(new GridLayout());
	Table table = new Table(shell, SWT.MULTI | SWT.BORDER
			| SWT.FULL_SELECTION);
	GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
	data.heightHint = 200;
	table.setLayoutData(data);
	table.setLinesVisible(true);
	table.setHeaderVisible(true);
	for (int i = 0; i < titles.length; i++) {
		TableColumn column = new TableColumn(table, SWT.NONE);
		column.setText(titles[i]);
	}
	int count = 128;
	for (int i = 0; i < count; i++) {
		TableItem item = new TableItem(table, SWT.NONE);
		item.setImage(0, display.getSystemImage(SWT.ICON_INFORMATION));
		item.setText(0, "some info"); //$NON-NLS-1$
		item.setText(1, "error #" + i); //$NON-NLS-1$
		item.setText(2, questions[i % questions.length]);
		item.setText(3, "look out!"); //$NON-NLS-1$
	}
	for (int i = 0; i < titles.length; i++) {
		table.getColumn(i).pack();
	}
	shell.pack();
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch())
			display.sleep();
	}
	display.dispose();
}
Comment 7 Matthew Bisson CLA 2008-12-04 14:49:31 EST
Thanks for the sample code Remy - I gave it a try. I do continue to get the artifacts. Removing the images did not make the problem go away either.
Comment 8 Remy Suen CLA 2008-12-05 01:06:44 EST
(In reply to comment #7)
> Thanks for the sample code Remy - I gave it a try. I do continue to get the
> artifacts. Removing the images did not make the problem go away either.

Well, it's time to bother your other SWT friends down the hallway then I guess. :)
Comment 9 Oleg Besedin CLA 2009-03-06 15:49:44 EST
I can't duplicate it either.

The About dialog got a new face recently, but if you were seeing a problem with the snippet Remi attached then its not the dialog, but something with SWT's painting?

CCing Susan as the person who wrote the new About dialog.
Comment 10 Matthew Bisson CLA 2009-03-06 16:00:43 EST
I'm on a new box now, and I no longer have that problem. I do believe it was an issue with SWT, however I do not know what made my old machine have difficulty rendering, and (so far) no one else's. 
Comment 11 Susan McCourt CLA 2009-03-06 17:09:26 EST
> CCing Susan as the person who wrote the new About dialog.

fyi..The problem was first observed on the old about dialog.  The new code hosts the same table in a tabfolder vs. its own dialog, but that's the only substantive change.

I assume the SWT snippet will be more helpful in tracking this down.

Comment 12 Felipe Heidrich CLA 2009-03-16 10:54:22 EDT
No Idea. Works for me.
Comment 13 Steve Northover CLA 2009-03-16 11:34:54 EDT
This is a really old problem that I know happens but nobody here can make it happen (hence, nothing to debug).

*** This bug has been marked as a duplicate of bug 137916 ***