sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

Can't run sc-controller on Fedora 33 KDE (libffi.so.7 not found)

Open aboutafter opened this issue 3 years ago • 20 comments

I can't run the .appimage. Here is the output: https://pastebin.com/YZ9e31Yf

It seems to be missing libffi.so.7, and the most similar package that I've found is libffi, which is already installed.

Thank you in advance.

aboutafter avatar Jan 28 '21 08:01 aboutafter

Looks like appimage bundles older version of libffi and every other distro has current one available.

Can you check whether this appimage works?

sc-controller-0.4.8.fedora_fix.glibc-x86_64.AppImage

kozec avatar Jan 29 '21 08:01 kozec

Sadly, it doesn't.

The only message that I receive when running it from the terminal is: "WINDOW DECORATIONS RELOADED", and then it closes.

aboutafter avatar Jan 29 '21 08:01 aboutafter

Hello, I have the same problem on fedora 33 workstation, I've tried out the fedora-fix appimage and while I didn't get "WINDOW DECORATIONS RELOADED", I got this

W Config        Failed to load configuration; Creating new one.
W Config        Reason: (IOError(2, 'No such file or directory'),)

That was on first attempt, after it I didn't get any output

Jeder321 avatar Jan 31 '21 12:01 Jeder321

So, I've ended up installing Fedora kde into VM and that crazy thing works.

Can either of you post output of cat /etc/fedora-release and then of ./sc-controller-0.4.8.fedora_fix.glibc-x86_64.AppImage gui -d ?

kozec avatar Jan 31 '21 19:01 kozec

$ cat /etc/fedora-release Fedora release 33 (Thirty Three)

$ ./sc-controller-0.4.8.fedora_fix.glibc-x86_64.AppImage gui -d WINDOW DECORATIONS RELOADED

Nothing more, sadly.

aboutafter avatar Jan 31 '21 21:01 aboutafter

Any idea where WINDOW DECORATIONS RELOADED message comes from? It doesn't show on my machine.

kozec avatar Feb 01 '21 07:02 kozec

No idea. Maybe I'm missing some GTK component since I'm not on Gnome.

aboutafter avatar Feb 01 '21 10:02 aboutafter

this is what happens for me

$ cat /etc/fedora-release
Fedora release 33 (Thirty Three)
$ ./sc-controller-0.4.8.fedora_fix.glibc-x86_64.AppImage gui -d

and nothing more, besides babble from appimage integrator

Jeder321 avatar Feb 01 '21 10:02 Jeder321

Okay, so now what's different on my VM...

Is either of you using graphics driver that has to be installed manually? Window manager plugin? Wayland? @Jeder321 what appimage integrator are you using?

kozec avatar Feb 02 '21 07:02 kozec

I have the same problem in 3 different PC's.

One is a Ryzen 5 3400G, another with an i5 4670k and Nvidia GTX 770 (driver installed from rpmfusion), and the other is a Thinkpad with an i7-3520M and intel HD graphics 4000.

All are using Xorg and the latest version of KDE.

In the Ryzen I don't have the WINDOW DECORATIONS RELOADED message. That's the only difference.

EDIT: I tried in other PC running KDE Neon and it also shows the WINDOW DECORATIONS RELOADED message, but it works fine. So that message doesn't seem to be of importance.

aboutafter avatar Feb 02 '21 09:02 aboutafter

I use https://github.com/TheAssassin/AppImageLauncher

I am using AMDGPU, one from kernel and I am on wayland, gnome of course, running on ThinkPad t495 with ryzen 5 3500u inside. I've also installed snap version yesterday and strangely enough it's working, but I don't like snaps

Jeder321 avatar Feb 02 '21 10:02 Jeder321

Ok, so judging from raging diversity of our systems, it's probably not related to GPU, driver, desktop environment or even whether one uses X or Wayland. Only common thing is Fedora and running on non-virtual HW.

Where is that snap comming from? Maybe there is some workaround used that I'm not aware of.

kozec avatar Feb 02 '21 18:02 kozec

I apologize for this late reply, but that snap is from here https://snapcraft.io/sc-controller

Jeder321 avatar Feb 09 '21 13:02 Jeder321

Same issue, Kubuntu 20.10 here. And with 0.4.7: libffi.so.6: cannot open shared object file (notice the 6 instead of 7)

edit: I tried this

Can you check whether this appimage works? sc-controller-0.4.8.fedora_fix.glibc-x86_64.AppImage

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 75: ordinal not in range(128)

According to this: https://askubuntu.com/a/1286776 the library isn't the same anymore.

lapineige avatar Feb 27 '21 22:02 lapineige

I did install libffi.so.7 according to this: https://askubuntu.com/a/1290347

Now I have: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 75: ordinal not in range(128)

I had this right away with sc-controller-0.4.8.fedora_fix.glibc-x86_64.AppImage so I believed it fixed library that issue.

lapineige avatar Feb 27 '21 22:02 lapineige

Ok I found that was a python 2/python 3 issue (python 2 not installed on my system). I did remove libffi.so.7, just in case it could do something bad to my system to have mixed library versions. And following this: https://github.com/kozec/sc-controller/issues/367#issuecomment-727286721 I did install the Python 3 fork latest version https://github.com/Ryochan7/sc-controller/releases/tag/v0.4.8.2.

It works :slightly_smiling_face: - surprisingly, without any special fix for that issue. Problem solved for me :)

lapineige avatar Feb 28 '21 08:02 lapineige

I did install the Python 3 fork latest version https://github.com/Ryochan7/sc-controller/releases/tag/v0.4.8.2.

It works slightly_smiling_face - surprisingly, without any special fix for that issue. Problem solved for me :)

I confirm that version works for me too!

aboutafter avatar Feb 28 '21 09:02 aboutafter

I did install the Python 3 fork latest version https://github.com/Ryochan7/sc-controller/releases/tag/v0.4.8.2.

It works - surprisingly, without any special fix for that issue. Problem solved for me :)

Works for me too, didn't have to remove anything

Jeder321 avatar Mar 03 '21 18:03 Jeder321

I can't tell if it's a python2-specific issue, or some other issue fixed by the fork, but at least that was simple :)

I guess this issue can be closed ?

lapineige avatar Mar 03 '21 19:03 lapineige

I can't tell if it's a python2-specific issue, or some other issue fixed by the fork, but at least that was simple :)

UnicodeDecodeError most likely is but if there is no other message printed out I can't even begin to imagine what may be causing it.

I guess this issue can be closed ?

Feel free to. Although I was never able to reproduce the issue, adding missing library to appimage should theoretically solve it.

kozec avatar Mar 03 '21 23:03 kozec