Operational Capability won't show up in OCB diagram

I installed Capella 1.4.2 yesterday to my Windows 10 and was working on a tutorial of Toy Catapult Project. And facing a problem.

On my [OCB] Operational Capabilities diagram, I clicked the Operational Capability on the palette and then clicked in the working area. But it won’t appear on the diagram while an Operational Capability entry is added to the “Operational Capabilities” folder in the Project Explorer.

Does anyone can help me solve this issue?
For the detailed log, please see below. Log file contents with my description about what I did.

Step 0: After launching Capella, I see those in the log file:

!SESSION 2020-12-09 15:28:37.748 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_271
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ja_JP
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.egit.core 1 0 2020-12-09 15:28:41.301
!MESSAGE Using Apache MINA sshd as ssh client.    

!ENTRY org.eclipse.egit.ui 2 0 2020-12-09 15:28:51.092
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\iai'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.

Step 1: After creating Operation Entries diagram, I see those in the log file:

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2020-12-09 15:32:26.483
!MESSAGE C:\Program Files\Java\jre1.8.0_271\bin\awt.dll: Can't find dependent libraries
!STACK 0

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2020-12-09 15:32:26.489
!MESSAGE Could not initialize class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.AWTClipboardHelper
!STACK 0

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2020-12-09 15:33:27.358
!MESSAGE Could not initialize class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.AWTClipboardHelper
!STACK 0

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2020-12-09 15:33:27.358
!MESSAGE Could not initialize class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.AWTClipboardHelper
!STACK 0

Step2: After creating Operation Capabilities diagram, I see those in the log file:

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2020-12-09 15:35:03.821
!MESSAGE Could not initialize class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.AWTClipboardHelper
!STACK 0

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2020-12-09 15:35:03.828
!MESSAGE Could not initialize class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.AWTClipboardHelper
!STACK 0

Step 3: After putting an Operational Capability entry, I see those in the log file:

!ENTRY org.eclipse.gmf.runtime.diagram.core 2 2 2020-12-09 15:36:24.788
!MESSAGE IRJS0005E Failed to create view org.eclipse.sirius.diagram.ui.internal.view.factories.DNodeViewFactory
!STACK 0

!ENTRY org.eclipse.ui 4 0 2020-12-09 15:36:24.867
!MESSAGE Unhandled event loop exception
!STACK 0

Also the below is the corresponding lines in Usage.log:

2020-12-09 15:31:54,360;Capella;1.4.2.202010140908;Open+Session;ToyCatapult_3.aird;;
2020-12-09 15:31:56,004;Capella;1.4.2.202010140908;Open+Session;ToyCatapult_3.aird;OK;
2020-12-09 15:32:22,784;Capella;1.4.2.202010140908;Create+Representation;Operational+Entity+Breakdown;;ce822136-d7bf-4924-98ea-0010f4663426
2020-12-09 15:32:25,308;Capella;1.4.2.202010140908;Create+Representation;Operational+Entity+Breakdown;;ce822136-d7bf-4924-98ea-0010f4663426
2020-12-09 15:32:25,478;Capella;1.4.2.202010140908;Create+Representation;Operational+Entity+Breakdown;OK;ce822136-d7bf-4924-98ea-0010f4663426
2020-12-09 15:32:26,611;Capella;1.4.2.202010140908;Create+Representation;Operational+Entity+Breakdown;OK;ce822136-d7bf-4924-98ea-0010f4663426
2020-12-09 15:34:59,739;Capella;1.4.2.202010140908;Create+Representation;Operational+Capabilities+Blank;;684f7767-828a-4dee-a805-9fa45b0fa7d0
2020-12-09 15:35:03,506;Capella;1.4.2.202010140908;Create+Representation;Operational+Capabilities+Blank;;684f7767-828a-4dee-a805-9fa45b0fa7d0
2020-12-09 15:35:03,533;Capella;1.4.2.202010140908;Create+Representation;Operational+Capabilities+Blank;OK;684f7767-828a-4dee-a805-9fa45b0fa7d0
2020-12-09 15:35:03,901;Capella;1.4.2.202010140908;Create+Representation;Operational+Capabilities+Blank;OK;684f7767-828a-4dee-a805-9fa45b0fa7d0

Hum, strange, maybe this is because you have installed Capella 1.4.2 on your hard drive in a sub-folder which makes the path too long. Try installing it on a shorter path maybe, c:/capella for instance
Stephane LACRAMPE
ObeoSoft Canada

Thanks for your response. I was aware of the possibility of the long path name causing a problem, so my folder was c:\capella1.4.2 in first place. Anyway I reinstalled capella without success.

After some googling, I found a solution that is:

To install the “Visual C++ redistributable packages for Visual Studio 2015, 2017 and 2019” which is VC_redist.x64.exe available at https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

After doing that, I was able to put an Operational Capacity on the diagram.

Wow, that’s unexpected. Would you have more insights on what lead you to find this solution/What was causing the issue?

After reinstalling JAVA and Capella without success, I googled the first error message I got, that is “jre1.8.0_271\bin\awt.dll: Can’t find dependent libraries”. Then I found a few pages about the same error, in which VC++ redistributables is mentioned. For example:

https://github.com/AdoptOpenJDK/openjdk-support/issues/135
https://community.progress.com/s/article/awt-dll-Can-t-find-dependent-libraries-when-trying-to-access-a-PASOE-instance-Application-Metrics-page-from-the-OpenEdge-Management-console
https://knowledgebase.progress.com/articles/Article/awt-dll-Can-t-find-dependent-libraries-when-trying-to-access-a-PASOE-instance-Application-Metrics-page-from-the-OpenEdge-Management-console

Apparently Capella software uses awt.dll in JRE, and awt.dll uses some other file in VC++ redistributables. I don’t know much about it but I had several experiences that VC++ redistributables solve problems that I had with non-commercial software.

Thank you very much for your feedback!