Bug 569403 - Using some style elements in Sequence Diagram raise an error
Summary: Using some style elements in Sequence Diagram raise an error
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-12-02 12:02 EST by Glenn Plouhinec CLA
Modified: 2021-01-06 05:37 EST (History)
2 users (show)

See Also:


Attachments
Model to reproduce (490.44 KB, application/x-zip-compressed)
2020-12-03 05:57 EST, Glenn Plouhinec CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Plouhinec CLA 2020-12-02 12:02:32 EST
In the VAT-014-000 scenario with element styles in a sequence diagram, using the Basic Shape, Workspace Image and Diamond styles in the .odesign file raises an error in the error log.

Uncaught exception during post-commit listener notifications

org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4723)
	at org.eclipse.swt.SWT.error(SWT.java:4638)
	at org.eclipse.swt.SWT.error(SWT.java:4609)
	at org.eclipse.swt.widgets.Display.error(Display.java:1240)
	at org.eclipse.swt.widgets.Display.checkDevice(Display.java:795)
	at org.eclipse.swt.widgets.Display.getHighContrast(Display.java:1861)
	at org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure.setGradientData(NodeFigure.java:366)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart.setBackgroundColor(ShapeNodeEditPart.java:290)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart.refreshBackgroundColor(ShapeNodeEditPart.java:261)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeEditPart.refreshVisuals(ShapeEditPart.java:207)
	at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramBorderNodeEditPart.refreshVisuals(AbstractDiagramBorderNodeEditPart.java:394)
	at org.eclipse.sirius.diagram.sequence.ui.tool.internal.edit.part.LifelineEditPart.refreshVisuals(LifelineEditPart.java:86)
	at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:725)
	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:644)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$3(GraphicalEditPart.java:1)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$3.run(GraphicalEditPart.java:862)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refresh(GraphicalEditPart.java:852)
	at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramBorderNodeEditPart.refresh(AbstractDiagramBorderNodeEditPart.java:226)
	at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramNodeEditPart.refresh(AbstractDiagramNodeEditPart.java:137)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
	at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
	at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.util.stream.ReferencePipeline.forEach(Unknown Source)
	at org.eclipse.sirius.diagram.sequence.ui.tool.internal.edit.part.SequenceDiagramEditPart$1.refreshInstanceRoleEditPartsOnAbstractNodeEventSetBounds(SequenceDiagramEditPart.java:127)
	at org.eclipse.sirius.diagram.sequence.ui.tool.internal.edit.part.SequenceDiagramEditPart$1.resourceSetChanged(SequenceDiagramEditPart.java:99)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl$1.run(TransactionalEditingDomainImpl.java:781)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.postcommit(TransactionalEditingDomainImpl.java:771)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.deactivate(TransactionalEditingDomainImpl.java:543)
	at org.eclipse.emf.transaction.impl.TransactionImpl.close(TransactionImpl.java:712)
	at org.eclipse.emf.transaction.impl.TransactionImpl.commit(TransactionImpl.java:474)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:155)
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:496)
	at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
	at org.eclipse.sirius.diagram.ui.tools.internal.editor.DDiagramEditorImpl.launchRefresh(DDiagramEditorImpl.java:1480)
	at org.eclipse.sirius.diagram.ui.tools.internal.editor.DDiagramEditorImpl.access$2(DDiagramEditorImpl.java:1451)
	at org.eclipse.sirius.diagram.ui.tools.internal.editor.DDiagramEditorImpl$1.run(DDiagramEditorImpl.java:796)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Comment 1 Glenn Plouhinec CLA 2020-12-03 05:57:39 EST
Created attachment 284953 [details]
Model to reproduce

Open the "Sequence Diagram on fixture" with the local "Interactions" viewpoint.
Open the error log and the "interactions.odesign" file.
In the .odesign select Interaction > Interactions > Sequence Diagram on Interaction > Default > Instance Role Participant.

Delete the "Square blue" style and replace it with the "Basic Shape" style and save. In the representation, the style should be updated and an there is an error in the error log.
Repeat these steps with "Workspace Image" and "Diamond" styles, it raise an error.