Unable to start on Ubuntu 20.04

Hello Folks,

I recently updated to Ubuntu 20.04 and Logic2 now fails to start due to a missing libffi.so.6 shared object.

According to the available packages it looks that Ubuntu only ships libffi7 in 20.04.

mm@mm-precision:~$ /opt/Logic-2.x.appimage 
/tmp/.mount_Logic-3VYMph ~
~
Environment
  Executable path: /tmp/.mount_Logic-3VYMph/Logic
  Executable directory: /tmp/.mount_Logic-3VYMph
  Original working directory: /home/mm
  Current working directory: /tmp/.mount_Logic-3VYMph
Python Home: /tmp/.mount_Logic-3VYMph/resources/linux/pythonlibs
/home/mm/.config/Logic/logs/graphio-2020-04-28--10-57-38.log
2020-04-28 10:57:38.449829:[0x00007f9403673200]: boost::log::keywords::file_name: /home/mm/.config/Logic/logs/graphio-2020-04-28--10-57-38.log [ /home/vsts/work/1/s/core/saleae_base/src/saleae_log.cpp:150: void Saleae::SetLogFileName(const char*) ]
2020-04-28 10:57:38.449829:[0x00007f9403673200]: boost::log::keywords::file_name: /home/mm/.config/Logic/logs/graphio-2020-04-28--10-57-38.log [ /home/vsts/work/1/s/core/saleae_base/src/saleae_log.cpp:150: void Saleae::SetLogFileName(const char*) ]
2020-04-28 10:57:38.449993:[0x00007f9403673200]: boost::log::keywords::target_file_name: /home/mm/.config/Logic/logs/graphio-2020-04-28--10-57-38--%5N.log [ /home/vsts/work/1/s/core/saleae_base/src/saleae_log.cpp:151: void Saleae::SetLogFileName(const char*) ]
2020-04-28 10:57:38.449993:[0x00007f9403673200]: boost::log::keywords::target_file_name: /home/mm/.config/Logic/logs/graphio-2020-04-28--10-57-38--%5N.log [ /home/vsts/work/1/s/core/saleae_base/src/saleae_log.cpp:151: void Saleae::SetLogFileName(const char*) ]
2020-04-28 10:57:38.450027:[0x00007f9403673200]: boost::log::keywords::target: /home/mm/.config/Logic/logs [ /home/vsts/work/1/s/core/saleae_base/src/saleae_log.cpp:152: void Saleae::SetLogFileName(const char*) ]
2020-04-28 10:57:38.450027:[0x00007f9403673200]: boost::log::keywords::target: /home/mm/.config/Logic/logs [ /home/vsts/work/1/s/core/saleae_base/src/saleae_log.cpp:152: void Saleae::SetLogFileName(const char*) ]
terminate called after throwing an instance of 'std::runtime_error'
  what():  ImportError('libffi.so.6: cannot open shared object file: No such file or directory')
  File "/tmp/.mount_Logic-3VYMph/resources/linux/pythonlibs/lib/python3.8/site-packages/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/tmp/.mount_Logic-3VYMph/resources/linux/pythonlibs/lib/python3.8/site-packages/numpy/core/__init__.py", line 106, in <module>
    from . import _dtype_ctypes
  File "/tmp/.mount_Logic-3VYMph/resources/linux/pythonlibs/lib/python3.8/site-packages/numpy/core/_dtype_ctypes.py", line 25, in <module>
    import _ctypes

Failed to get crash dump id.
Report Id: {"response":"ok","_rxid":"16000000-d
Terminated (core dumped)

You’re right, if you upgrade and let it remove “unneeded” packages it will remove libffi version 6 and you’re sunk. I upgraded but told it not to remove the unneeded packages and the software works fine. You can also copy the .6 file from an older install of Ubuntu, 18.04 through 19.10 and that copied file will then work.

1 Like

Well on my home box I was lucky the libffi6 remained on the system, however once the Logic2 starts it greets me with a blank black screen (after the Saleae logo and the initializing text disappear):

In the command line output I do not see any suspicious.

Hmm, I know this isn’t helpful to you but as a baseline, I’m on 20.04 and it does work for me. At least, I was able to start it and the screen looks normal. Someone else reported being able to use it after copying the .6 library from Ubuntu 18. So, we’re two out of three. I don’t know what is the difference for you. One thing I might inquire about, though, is whether you might have an add-on graphics card? I’m using a laptop with an nVidia GTX 1650 in it but I’m running Linux and currently have the nVidia card disabled and I’m just using the built-in Intel graphics. This is working for me. But, I wonder if you might be having a graphics card driver issue? I don’t know how you’d test that unless you also have two graphics cards and can select the other one.

Thanks for the reply Collin. I also have an NVS nVidia card in may notebook, and I think it is using that one (having nvidia drivers installed).

I am getting the same error on the latest Manjaro as well.
I downloaded the previous version from here: https://archive.archlinux.org/packages/l/libffi/libffi-3.2.1-4-x86_64.pkg.tar.xz
I then extracted Logic from the appimage
./Logic-2.2.13-master.AppImage --appimage-extract
And placed the libffi.* from the above pkg into the root of the extracted folder and everything worked for me.

We’re planning to fix these issues, for old versions of Mac and new versions of Linux, very soon. Hopefully, in a week or two.
It’s not an easy task to support all platforms, and especially Linux distros :slight_smile:
Sorry about that anyway…

1 Like

No worries, I know how hard could be a the multiplatform deployment.

1 Like

I was able to use Logic 2…15 by running it as root, using sudo Logic --no-sandbox. YMMV.

1 Like

–no-sandbox did the trick for me on my work machine. Hopefully it will work on my home box as well.