"Widget is disposed" error pop up in v4.10.0

Started by Xiaoqi, February 08, 2023, 15:06:13 PM

Previous topic - Next topic

Xiaoqi

Hi all,

Not found other posts on this topic, I'm using 4.10.0, just got this pop up suddenly in Windows 11 OS.

Before report this as bug, would like to post here for seeking any comments.

The pop up is appeared first when I drag one existing element into view.

Not stop the Archi, I can click "OK" and seems Archi is still working. Will keep observing.

Regards,
Xiaoqi

Phil Beauvoir

Hi Xiaoqi,

is there anything in the log file? The error log can be accessed in Archi by selecting the "About Archi" menu item. In the dialog box press the "Installation Details" button, then select the "Configuration" tab and press the "View Error Log" button.

Phil
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Xiaoqi

Hi Phil,

Attached I extract the error for today, indeed there're some Widget related error handling. As attached, please kindly check.

By the way, I'm using coArchi, and just published the change to remote Git, this processing is working fine.

Regards, Xiaoqi

Phil Beauvoir

Yes, it's the famous tooltip bug:

org.eclipse.swt.SWTException: Widget is disposed
    at org.eclipse.swt.SWT.error(SWT.java:4918)
    at org.eclipse.swt.SWT.error(SWT.java:4833)
    at org.eclipse.swt.SWT.error(SWT.java:4804)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:450)
    at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:369)
    at org.eclipse.swt.widgets.ToolTip.getMessage(ToolTip.java:165)
    at org.eclipse.swt.widgets.MenuItem.setToolTipText(MenuItem.java:1082)

This is an Eclipse bug that has been partly fixed in later versions of Eclipse (as used in Archi 5) and even later versions:

https://github.com/eclipse-platform/eclipse.platform.swt/commit/ead104789db56eeb38d94f3916cceb0d17dbbbbd

https://github.com/eclipse-platform/eclipse.platform.swt/commit/43bef44c78da87224111c9e7a8517b7372eca07e

https://github.com/eclipse-platform/eclipse.platform.swt/commit/68379b8f78dae6cba2b659c2b14b2f692a5ce387

If it happens again, quit Archi and restart. Eventually, it will get finally fixed in Eclipse.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Xiaoqi

Thanks Phil, good to hear that it's considered fixing in our Archi 5.

I've testing Archi 5 for some personal models in other machines, so far not ever see this error. While the working machine is still in Archi 4.10.0 since our team need to plan the upgrading together once Archi 5 is formally launched, looking forward for that!

Will do restart Archi and keep observing, thanks for your quick feedback.

Regards, Xiaoqi

Alberto

Just FYI... I just saw the pop up on the v5 Beta (Build 202212041528) on Windows 10

I've been running the Beta and this is the first time I see something iffy.   I was too quick to X out of the popup or capture any details. 

Phil Beauvoir

Quote from: Alberto on February 09, 2023, 17:03:24 PMJust FYI... I just saw the pop up on the v5 Beta (Build 202212041528) on Windows 10

I've been running the Beta and this is the first time I see something iffy.   I was too quick to X out of the popup or capture any details. 


Archi 5 is built on Eclipse 4.25 (September 2022). The latest Eclipse fix is after that version:

https://github.com/eclipse-platform/eclipse.platform.swt/commit/68379b8f78dae6cba2b659c2b14b2f692a5ce387
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.