Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365426 - Opening a TitleAreaDialog crashes client (Invalid Argument)
Summary: Opening a TitleAreaDialog crashes client (Invalid Argument)
Status: RESOLVED WORKSFORME
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-12-02 08:31 EST by Elvis Dominguez CLA
Modified: 2012-03-21 05:16 EDT (History)
0 users

See Also:


Attachments
Example project to reproduce error (22.50 KB, application/zip)
2011-12-21 10:47 EST, Elvis Dominguez CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elvis Dominguez CLA 2011-12-02 08:31:02 EST
Build Identifier: 

Log here on pastebin: http://pastebin.com/3YE7EUiR
Raises only on Internet explorer (tested IE8 and IE9 on win xp and win7)
No problems with FF or chrome (tested win and linux)

I think I found the problem:

This is ok (titleimage, title, message) in TitleAreaDialog sublclasses

public final void create()
{
	super.create();
	setTitleImage(AbstractUIPlugin.imageDescriptorFromPlugin("id", "i.gif").createImage());
	setTitle("Title");
	setMessage("The message");
}

This is not OK (title, message, titleimage)

public final void create()
{
	super.create();
	setTitle("Title");
	setMessage("The message");
	setTitleImage(AbstractUIPlugin.imageDescriptorFromPlugin("id", "i.gif").createImage());
}



Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2011-12-02 12:23:59 EST
Elvis, it seems that a lot widgets are created in your dialog which makes the debugging from the error message impossible. Could you provide a small complete (self-running) snippet/project that demonstrate the issue?
Comment 2 Ivan Furnadjiev CLA 2011-12-08 04:27:18 EST
Elvis, I've tested the TitleAreDialog with both of your code snippets in IE8( Win XP SP3) and IE9(Win 7) and I can't reproduce the issue against CVS HEAD. Which version of RAP are you using? A small complete (self-running) snippet/project that demonstrate the issue is really welcomed.
Comment 3 Elvis Dominguez CLA 2011-12-21 10:47:06 EST
My RAP version is 1.4.1.20110914-1945

I have found how to always reproduce the issue.
The Dialog title and message must be variable (should change) between instantiations. Making so the Dialog never appears. To accomplish my situation I have used, in my snippet, a Random.

Hope you can find and solve this strange situation.
Comment 4 Elvis Dominguez CLA 2011-12-21 10:47:31 EST
Created attachment 208692 [details]
Example project to reproduce error
Comment 5 Ivan Furnadjiev CLA 2011-12-21 10:59:07 EST
I can't reproduce it against CVS HEAD (1.5M4). Tested with IE9 (Win7) and IE8 (WinXP). Could you confirm this?
Comment 6 Ivan Furnadjiev CLA 2012-03-21 05:16:27 EDT
Elvis, I will close this bug as WORKSFORME. Please reopen it if the issue still persists with 1.5M5 (M6).