Unable to start Slicer 4.10.2 on Ubuntu 22.04

Hi,
I have downloaded 3D Slicer 4.10.2 from this data archive:
https://slicer-packages.kitware.com/#collection/5f4474d0e1d8c75dfc70547e/folder/5f4474d0e1d8c75dfc705482

(it was the only place I found with legacy releases).

And uncompressed the ZIP file to folder of my choice. When trying to start the application, the splash screen is shown for a few seconds, but then the process terminates with the following error:

me@machine:/opt/Slicer-4.10.2-linux-amd64$ ./Slicer 
error: [/opt/Slicer-4.10.2-linux-amd64/bin/SlicerApp-real] exit abnormally - Report the problem.

Can I expect an old release to work on a more recent OS version? If yes, Is there, is there a location where Slicer keeps a log of the events or an error trace so that I can share it?

Thanks.

In general yes, old releases should still work, but some sometimes the OS changes. I’ve had very old executables work on windows, so maybe try that instead of linux.

Unfortunately, trying this on Windows is really not an option in this case/for me.

@jhlegarreta, maybe you should try to build Slicer yourself, but be aware that this will probably require some patching. I don’t think it will compile out-of-the-box

Sorry Rafael, but I am willing to avoid trying to build it myself, even more so if chances are that I will run into other issues.

But thanks for the suggestion and the support.

If you want to get an idea where the binary failing to start on linux you can start a shell with the environment variables set, something like:
./Slicer --launch xterm
and then in the new window try:
sudo strace Slicer
If you look at the end of the output you’ll see what happened before it crashes. If it’s a missing file or similar you may be able to make things work.

Alternatively you might just run an older linux version in a docker container. You could tunnel the X display to show the old slicer on your newer desktop. It’s a bit of an ugly workaround but it might get you past whatever issue you are seeing.

As a general rule we only support the current releases to avoid diverting our efforts too much.

Thanks for the effort Steve.

I am attaching two files for the sake of completeness:

  • First one (could only get a screenshot, sorry) corresponds to the terminal messages I get when running ./Slicer --launch xterm. Of course, on my Ubuntu 22.04 I do not have Python 2.7, but I assume Slicer bundles its own interpreter (even if 2.7 seems old for a 2019 4.2.10 release). Installing 2.7 is not an option if that is the main issue.
  • Second one (dropbox link; current discourse instance does not allow uploading text files) corresponds to the messages I get when running sudo strace Slicer. Not sure what the BadShmSeg (invalid shared segment parameter) message means, but it does not look straightforward to debug. There are other errors in the trace that seem equally hard to me to guess what they mean/how to fix them. All seem related to X11 windowing system.

Alternatively you might just run an older linux version in a docker container

If this involves building the docker image myself, I do not think this is doable given some constraints I have.

As a general rule we only support the current releases to avoid diverting our efforts too much.

I completely understand, so if things do not seem they can be fixed easily, I would understand not continuing to put time on this on your side.

Thanks.

I assume using Slicer 4.10.2 is because it had DTI extensions available and latest Slicer does not have this extensions (re Previously available extensions no longer available on 5.2.2 - #2 by jamesobutler) . It would be great if you can try getting those DTI extensions working with latest Slicer.

1 Like

I assume using Slicer 4.10.2 is because it had DTI extensions available and latest Slicer does not have this extensions (re Previously available extensions no longer available on 5.2.2 - #2 by jamesobutler) .

Using Slicer 4.10.2 was probably just due to the fact that at the time it was the version they had working on their systems, for sure before Ubuntu 22.04 was available, and probably on a different OS (most likely macOS).

It would be great if you can try getting those DTI extensions working with latest Slicer.

I ignore the effort that this requires, and if I need to do this in my spare time, then I simply may not have the bandwidth; I am already a contributor/maintainer on a number of other open-source projects that also require time.

To avoid issue related to virtual env wrapper, you may introduce a variable called VIRTUALENV_DISABLED.

For example, see

Thanks for the tip JC. Although that indeed fixes the xterm launch error, the second command (sudo strace Slicer) still produces the same error as in the earlier post.

Sorry, that was a typo on my part. After launch in the new shell try sudo strace SlicerApp-real

Thanks for the effort Steve.

It looks like Slicer is unable to find some shared libraries/expect them to be somewhere where they are not. Not sure how this can be approached.


Did you do this part:

(corrected)

strace SlicerApp-real

Did you do this part:

Sorry Steve, yes.