# Ubuntu 20.10 cannot run previously working Slicer version

**URL:** https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224
**Category:** Support
**Created:** [October 24, 2020, 3:21pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224 "2020-10-24T15:21:49Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)
#### Post date: [October 24, 2020, 3:21pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/1 "2020-10-24T15:21:49Z")

</div>

Hello,

I have been using 3D Slicer v4.10.2 on Ubuntu 20.04 without issue. After upgrading to Ubuntu 20.10, 3D Slicer fails at the splash screen.

Are there critical libraries that might be missing between Ubuntu versions?

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [October 24, 2020, 3:40pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/2 "2020-10-24T15:40:41Z")

</div>

Do the extra installs listed here help? [https://slicer.readthedocs.io/en/latest/user\_guide/getting\_started.html#linux](https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#linux)

---

<div class="post-metadata">

### Author: ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)
#### Post date: [October 24, 2020, 3:43pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/3 "2020-10-24T15:43:40Z")

</div>

Hi @pieper,

I ran those dependency installs right after upgrading to 20.10 so it seems they are not the issue.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 24, 2020, 4:09pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/4 "2020-10-24T16:09:34Z")

</div>

Make sure xinerama is installed. That seems to be a common issue for recent Ubuntu and Qt versions.

---

<div class="post-metadata">

### Author: ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)
#### Post date: [October 24, 2020, 6:03pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/5 "2020-10-24T18:03:21Z")

</div>

I have tried uninstalling and re-installing xinerama but v4.10.2 still does not load

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 24, 2020, 6:50pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/6 "2020-10-24T18:50:18Z")

</div>

Please use the latest stable (currently Slicer-4.11.20200930) and let us knw if it works any better.

---

<div class="post-metadata">

### Author: ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)
#### Post date: [October 24, 2020, 7:01pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/7 "2020-10-24T19:01:28Z")

</div>

yes the latest stable is working. I still require v4.10.2 to run as well (previous workflows rely on this backend). I’m not sure what Slicer v4.10.2 is missing between Ubuntu 20.04 and 20.10.

Should I try to build from v4.10.2 source?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 24, 2020, 7:39pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/8 "2020-10-24T19:39:41Z")

</div>

I would not recommend spending time with trying to make the old stable version work. Latest stable version contains so many fixes and improvements that even if you could make the old version work, you would need to switch to the new version for various other reasons. Is there anything specific that is missing/does not work in the latest stable?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 25, 2020, 12:34am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/9 "2020-10-25T00:34:23Z")

</div>

10 posts were split to a new topic: [Updating modules from Slicer-4.10 to Slicer-4.11](https://discourse.slicer.org/t/updating-modules-from-slicer-4-10-to-slicer-4-11/14230)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [October 24, 2020, 8:50pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/12 "2020-10-24T20:50:33Z")

</div>

If you want to try debugging some more, try `Slicer --launch xterm` and then look at the output from running `SlicerApp-real` in that window. You might also try `ldd $(which SlicerApp-real)` to see what libraries it might be missing. Also `strace $(which SlicerApp-real)` will give an idea what it was doing when it died (may need to install `strace` first).

---

<div class="post-metadata">

### Author: ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)
#### Post date: [October 24, 2020, 10:17pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/13 "2020-10-24T22:17:35Z")

</div>

I ran xterm.  
running `SlicerApp-real` returned:

```auto
[1] 2227884 abort (core dumped) ./bin/SlicerApp-real

```

running `ldd $(which SlicerApp-real)` did not return any missing libraries.

running `strace $(which SlicerApp-real)` I wasn’t sure how to interpret the output. The last bit of output returned:

```auto
openat(AT_FDCWD, "/proc/self/status", O_RDONLY) = 42
fstat(42, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(42, "Name:\tSlicerApp-real\nUmask:\t0002"..., 1024) = 1024
read(42, "t:\t0-7\nMems_allowed:\t00000000,00"..., 1024) = 393
read(42, "", 1024) = 0
close(42) = 0
statfs("/selinux", 0x7ffed2edbb10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/proc/mounts", O_RDONLY) = 42
fstat(42, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(42, "sysfs /sys sysfs rw,nosuid,nodev"..., 1024) = 1024
read(42, "f rw,nosuid,nodev,noexec,relatim"..., 1024) = 1024
read(42, "=0,minproto=5,maxproto=5,direct,"..., 1024) = 1024
read(42, "nn-vulkan/86 squashfs ro,nodev,r"..., 1024) = 1024
read(42, "/1880 squashfs ro,nodev,relatime"..., 1024) = 1024
read(42, "uid,nodev,relatime,user_id=1000,"..., 1024) = 1024
read(42, "ypt_aux_mnt1 fuse.veracrypt rw,n"..., 1024) = 226
read(42, "", 1024) = 0
close(42) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efeac000000
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
getpid() = 2229838
gettid() = 2229838
tgkill(2229838, 2229838, SIGABRT) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=2229838, si_uid=1000} ---
+++ killed by SIGABRT (core dumped) +++
[1] 2229835 abort (core dumped) strace $(which SlicerApp-real)

```

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 25, 2020, 1:02am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/14 "2020-10-25T01:02:01Z")

</div>

2 posts were merged into an existing topic: [Updating modules from Slicer-4.10 to Slicer-4.11](https://discourse.slicer.org/t/updating-modules-from-slicer-4-10-to-slicer-4-11/14230/11)

---

<div class="post-metadata">

### Author: ![surajpaib](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/surajpaib/32/8719_2.png) [@surajpaib](https://discourse.slicer.org/u/surajpaib)
#### Post date: [January 21, 2021, 12:04am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/15 "2021-01-21T00:04:56Z")

</div>

I’m having similar troubles with the latest (stable) version of Slicer. I’m on PopOS 20.10.

Tried running xterm and strace as mentioned earlier on this post with similar-looking output. I can however run Slicer normally if I disable python. I do need python on my Slicer install so I’m wondering if you managed to find a fix for the issue you had.

I’m not familiar enough with the slicer build to debug this python-related issue better. Any guidance on that front would be much appreciated as well

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [January 21, 2021, 12:22am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/16 "2021-01-21T00:22:33Z")

</div>

SlicerApp-real must be run using the `./Slicer` launcher, which sets up the runtime environment (similarly to other virtual Python environments) before it starts the application.

All other tools must be run using `./Slicer --launch ...`.

Could you get the stack trace (backtrace) of the crash? (strace prints a list of system calls, which is not that useful for investigating crashes)

---

<div class="post-metadata">

### Author: ![surajpaib](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/surajpaib/32/8719_2.png) [@surajpaib](https://discourse.slicer.org/u/surajpaib)
#### Post date: [January 21, 2021, 12:44am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/17 "2021-01-21T00:44:09Z")

</div>

Thanks for the super quick response! I have indeed been running Slicer as you’ve pointed out. Here is a snippet of the backtrace I obtained by running -  
`./Slicer --launch gdb ./bin/SlicerApp-real` as mentioned in debug instructions.

```auto
Fatal Python error: init_import_size: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 553, in <module>
    main()
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 539, in main
    known_paths = addusersitepackages(known_paths)
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 282, in addusersitepackages
    user_site = getusersitepackages()
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 258, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 248, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/lib/Python/lib/python3.6/sysconfig.py", line 601, in get_config_var
    return get_config_vars().get(name)
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/lib/Python/lib/python3.6/sysconfig.py", line 550, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/home/suraj/Repositories/tools/Slicer-4.11.20200930-linux-amd64/lib/Python/lib/python3.6/sysconfig.py", line 421, in _init_posix
    _temp = __import__ (name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

```

Tried checking out a bit on this but it seems to be a bit of a dead search (with my knowledge)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [January 21, 2021, 1:09am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/18 "2021-01-21T01:09:49Z")

</div>

> [@surajpaib](#):
>
> `ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'`

We’ve seen this error a couple of times.

Do you have anaconda installed? (see [here](https://discourse.slicer.org/t/im-getting-not-a-useful-error-when-i-try-to-start-slicer-jupyter-kernel-how-to-debug/13530/12) and [here](https://github.com/conda/conda/issues/6836) and error reports at many other places)

---

<div class="post-metadata">

### Author: ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)
#### Post date: [January 21, 2021, 9:14am UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/19 "2021-01-21T09:14:41Z")

</div>

@Greydon_Gilmore have a look at this post [https://discourse.slicer.org/t/cant-start-latest-stable-on-ubuntu-20-04/14029/19](https://discourse.slicer.org/t/cant-start-latest-stable-on-ubuntu-20-04/14029/19)

Common causes for Slicer crashing on linux are:

- Mismatch between the OS OpenSSL version and 3D Slicer version. Check that OpenSSL 1.1.1g is available in the CMake options when you build it (it was added at some point, but not sure it was at 4.10.2)
- Incompatibility with libffi (see indicated post).

I hope it helps. But as @lassoan mentioned, building old releases of Slicer in new OSs can be challenging. You would be better off migrating to recent OS and Slicer versions.

---

<div class="post-metadata">

### Author: ![surajpaib](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/surajpaib/32/8719_2.png) [@surajpaib](https://discourse.slicer.org/u/surajpaib)
#### Post date: [January 21, 2021, 4:02pm UTC](https://discourse.slicer.org/t/ubuntu-20-10-cannot-run-previously-working-slicer-version/14224/20 "2021-01-21T16:02:28Z")

</div>

I did check for a conda environment issue but the issue still persisted. ( Removed conda set environment variables and tried as well. PythonSlicer works perfectly.)

Ended up spending a considerable amount of time, followed by giving up and reverting to PopOS! 20.04

Works without an issue now. (Incase it helps someone in my exact position)

Thanks for your help @lassoan
