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

Bug 349165

Summary: Application can be launched only once
Product: [Eclipse Project] e4 Reporter: Michael Spector <spektom>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: pwebster, remy.suen, robert.scheibe
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard: stalebug
Attachments:
Description Flags
UI Model
none
Deltas.xml none

Description Michael Spector CLA 2011-06-13 03:09:32 EDT
Created attachment 197873 [details]
UI Model

I'm trying to build a sample e4 application. I have succeeded running the application once, but after changing Application.e4xmi it refused to run again. I've debugged the code, and it seemed like MApplication.getChildren() returned an empty list (even though the root still contained Trimmed Window). So, I removed the "Trimmed Window" from the model, and re-added it from scratch. Then I've run the application successfully, until I modified default.css. After modifying default.css it doesn't find any root elements again! Seems like modifying files in the project breaks something.

I'm using Eclipse 4.1RC4.

Please see the UI model attached.
Comment 1 Michael Spector CLA 2011-06-13 03:28:03 EDT
EDIT: After investigations, it seems like running the application for the second time doesn't work (not related to file changes in the project).
Comment 2 Michael Spector CLA 2011-06-13 03:48:29 EDT
Cleaning workspace does help.
Comment 3 Eric Moffatt CLA 2011-06-13 15:47:31 EDT
Michael, so you're saying that just running the app, shutting down and running again doesn't work?

Hos did you change the e4xmi file? (text editor, Tom's editor...)

If there anything in the .log file after the failing start ?
Comment 4 Michael Spector CLA 2011-06-14 00:20:22 EDT
Please read my comments above. The problem is in generated deltas.xml.

(In reply to comment #3)
> Michael, so you're saying that just running the app, shutting down and running
> again doesn't work?
> 
> Hos did you change the e4xmi file? (text editor, Tom's editor...)
> 
> If there anything in the .log file after the failing start ?
Comment 5 Remy Suen CLA 2011-06-17 11:23:19 EDT
(In reply to comment #4)
> The problem is in generated deltas.xml.

Hi Michael, thank you for testing Eclipse 4.

What did you change with the model before you shut it down? What did you change in your original e4xmi file before launching again?
Comment 6 Michael Spector CLA 2011-06-17 12:35:16 EDT
The problem is in the generated deltas.xml
Once this file is removed, the application launches correctly.

(In reply to comment #5)
> (In reply to comment #4)
> > The problem is in generated deltas.xml.
> 
> Hi Michael, thank you for testing Eclipse 4.
> 
> What did you change with the model before you shut it down? What did you change
> in your original e4xmi file before launching again?
Comment 7 Remy Suen CLA 2011-06-17 13:07:13 EDT
(In reply to comment #6)
> The problem is in the generated deltas.xml
> Once this file is removed, the application launches correctly.

Hi Michael, I can launch the application with and without the deltas file being there. Please attach your copy to this bug.
Comment 8 Michael Spector CLA 2011-06-21 04:21:23 EDT
Created attachment 198310 [details]
Deltas.xml

Here's generated deltas.xml that prevents from running the same application twice.
Comment 9 Remy Suen CLA 2011-06-21 05:39:53 EDT
(In reply to comment #8)
> Created attachment 198310 [details]
> Deltas.xml

Hi Michael, thank you for your deltas file.

The model thinks that the window should not be rendered so this sounds like you are seeing a regression that I introduced when I first tried to fix bug 348069. You should try using a newer build where I reverted that fix.
Comment 10 Eclipse Genie CLA 2018-10-09 07:43:34 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 11 Lars Vogel CLA 2019-06-05 07:45:51 EDT
This is a mass change to close all e4 bugs marked with "stalebug" whiteboard.

If this bug is still valid, please reopen and remove the "stalebug" keyword.