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

lpsxsim hangs on ubuntu 22.04 #1788

Open
mega-explorer opened this issue Oct 17, 2024 · 5 comments
Open

lpsxsim hangs on ubuntu 22.04 #1788

mega-explorer opened this issue Oct 17, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@mega-explorer
Copy link

Dear Members of the mcrl2 Team,

Please help with the following issue.

The lpsxsim tool hangs on my system. I am trying a simple hello world model

act
  sayHello, sayWorld;
proc
  P1=sayHello;
  P2=sayWorld;
init
  P1||P2;

When I press Simulate Specification, the LpsXSim window opens and is active. Then I double click on an action, e.g., sayHello,
and the window turns gray and inactive. In addition, I get
Warning: QMetaMethod::invoke: Unable to handle unregistered datatype 'std::size_t' ((null):0, (null))

System: Ubuntu 22.04.5

$ mcrl22lps --version
mcrl22lps mCRL2 toolset 202407.1 (Release)

$ dpkg -l qt6-base-dev
...
qt6-base-dev:amd64 6.2.4+dfsg-2ubuntu1.1 amd64 Qt 6 base development files

Perhaps this is a dependency issue. What is the recommended way to deal with dependencies in case of mcrl2?

@mlaveaux mlaveaux self-assigned this Oct 19, 2024
@mlaveaux mlaveaux added the bug Something isn't working label Oct 19, 2024
@mlaveaux
Copy link
Member

Is this still an issue when you try the latest nightly build (https://mcrl2.org/web/home/download.html#nightly-build or compile the latest master branch)? In principle for mCRL2 package installations the dependencies should be handled by the package manager themselves, and if you want to compile from scratch on Ubuntu the listed packages should be fine since those are also the ones that we use in the CI.

@mega-explorer
Copy link
Author

Tried the nightly build
$ lpsxsim --version
LpsXSim mCRL2 toolset 202407.1.3c36707a1e (Release)

With it, this is no longer an issue: Double-clicking works fine, no Qt warnings.

@mega-explorer
Copy link
Author

As for the dependencies, I initially had the following issue:
After I installed the PPA version of mCRL2, I was unable to run, e.g., mcrl2ide: It was crashing immediately after the launch. Then I installed the qt6-base-dev package, and the crashing disappeared.

@mlaveaux
Copy link
Member

I suppose not all dependencies of qt6-base-dev should be necessary since that is the development package, but perhaps some dependency has been omitted from the .deb file causing crashes. I will have to investigate.

@mlaveaux
Copy link
Member

I was able to run mcrl2ide installed from the PPA on a fresh Ubuntu VM (with the latest version). There might be slight differences in which packages are installed by default for different Ubuntu versions, but I am not sure that we should depend on the full qt6-base-dev unless strictly necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants