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

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

Open
aboutafter opened this issue Jan 28, 2021 · 20 comments
Open

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

aboutafter opened this issue Jan 28, 2021 · 20 comments

Comments

@aboutafter
Copy link

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.

@kozec
Copy link
Owner

kozec commented Jan 29, 2021

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

@aboutafter
Copy link
Author

Sadly, it doesn't.

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

@Jeder321
Copy link

Jeder321 commented Jan 31, 2021

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

@kozec
Copy link
Owner

kozec commented Jan 31, 2021

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 ?

@aboutafter
Copy link
Author

aboutafter commented Jan 31, 2021

$ 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.

@kozec
Copy link
Owner

kozec commented Feb 1, 2021

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

@aboutafter
Copy link
Author

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

@Jeder321
Copy link

Jeder321 commented Feb 1, 2021

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

@kozec
Copy link
Owner

kozec commented Feb 2, 2021

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?

@aboutafter
Copy link
Author

aboutafter commented Feb 2, 2021

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.

@Jeder321
Copy link

Jeder321 commented Feb 2, 2021

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

@kozec
Copy link
Owner

kozec commented Feb 2, 2021

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.

@Jeder321
Copy link

Jeder321 commented Feb 9, 2021

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

@lapineige
Copy link

lapineige commented Feb 27, 2021

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
Copy link

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
Copy link

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: #367 (comment)
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 :)

@aboutafter
Copy link
Author

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!

@Jeder321
Copy link

Jeder321 commented Mar 3, 2021

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

@lapineige
Copy link

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 ?

@kozec
Copy link
Owner

kozec commented Mar 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants