Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSATE 2.6.0 plugin crashes non-"Modeling Tools" Eclipse package. #2061

Closed
schwerdf opened this issue Nov 12, 2019 · 13 comments
Closed

OSATE 2.6.0 plugin crashes non-"Modeling Tools" Eclipse package. #2061

schwerdf opened this issue Nov 12, 2019 · 13 comments
Assignees

Comments

@schwerdf
Copy link
Contributor

Summary

In at least one Eclipse package variant other than "Modeling Tools," when OSATE 2.6.0 is installed as a plugin, Eclipse subsequently fails to launch, rendering it unusable.

Steps to Reproduce

  1. Start with a clean copy of Eclipse 2019-09, "RCP and RAP Developers" package variant.
  2. Add update sites for OSATE and ELK (exported update site list attached).
  3. Install all components under the "OSATE2 for AADL2" category.
  4. Restart Eclipse after installation.
  5. Exit Eclipse, then try to relaunch.
  6. Note that Eclipse fails to launch, with an error dialog pointing the user to the workspace log (log attached).

Environment

  • OSATE Version: 2.6.0
  • Operating System: Windows 7, macOS 10.14
@lwrage
Copy link
Contributor

lwrage commented Nov 13, 2019

@schwerdf
Copy link
Contributor Author

I tried removing the dataAreaRequiresExplicitInit line. This makes it possible to launch Eclipse, but also makes it impossible to select a workspace on launch.
On further examination, the cause of the crash seems to be EMV2: the crash only happens when EMV2 and/or its source code is installed.

@lwrage
Copy link
Contributor

lwrage commented Nov 13, 2019

Did you install a downloaded package or did you use the eclipse installer?

@schwerdf
Copy link
Contributor Author

A downloaded package.

@lwrage
Copy link
Contributor

lwrage commented Nov 14, 2019

Could you try with the eclipse installer? Maybe there's a difference. I can't reproduce it either way.

@schwerdf
Copy link
Contributor Author

Same result when using the installer -- after EMV2 is added, Eclipse crashes on startup.

@schwerdf
Copy link
Contributor Author

Are you installing the OSATE plugin via some other method than the "Install New Software" dialog?

@lwrage
Copy link
Contributor

lwrage commented Nov 14, 2019

No, that's what I was doing. Unfortunately I have no idea what could cause this problem.
However, on my machine I have recorded user preferences that are automatically applied to each Eclipse workspace. Maybe that makes a difference. Maybe just setting some preference from the UI is needed.

@schwerdf
Copy link
Contributor Author

I stood up a clean Linux VM (Fedora 31, live distribution) and installed Eclipse (through the installer) and OSATE on there. It still crashed on exit and relaunch. Whatever is preventing your reproducing this, it must be specific to your machine.

@lwrage
Copy link
Contributor

lwrage commented Nov 15, 2019

Again, it works for me in a fresh Ubuntu 18.04 virtual machine with OpenJDK 8.

@philip-alldredge
Copy link
Collaborator

This is just a wild guess but could SELinux be blocking something in OSATE or Java? I believe Fedora defaults to it being on.

See below for checking the SELinux logs and how to temporarily disable it.
https://fedoraproject.org/wiki/SELinux_FAQ#How_do_I_find_out_whether_SELinux_is_denying_access_for_any_software.3F
https://fedoraproject.org/wiki/SELinux_FAQ#How_do_I_enable_or_disable_SELinux_.3F

@schwerdf
Copy link
Contributor Author

This is very strange: I stood up an Ubuntu 18.04 VM, installed OpenJDK 8 via the universe repository, Eclipse RCP/RAP via the installer -- still got the crash on exit and relaunch after installing the OSATE plugin. I am now completely out of ideas as to what the point of divergence could be.

@lwrage
Copy link
Contributor

lwrage commented Nov 16, 2019

I forgot the second restart step with the Ubuntu VM. I am now able to reproduce the issue with "Eclipse for RCP and RAP Developers." I also tried with "Eclipse for Java Developers" which works just fine.
I have no idea how this could be fixed, and I don't think it's worth the effort. I will add this as a known issue to the release notes.

@lwrage lwrage self-assigned this Nov 16, 2019
@lwrage lwrage closed this as completed Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants