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

[Arch Linux] Spotube dumps core on Sway Wayland #117

Closed
Thymelizabeth opened this issue Jun 19, 2022 · 14 comments
Closed

[Arch Linux] Spotube dumps core on Sway Wayland #117

Thymelizabeth opened this issue Jun 19, 2022 · 14 comments
Labels
bug Something isn't working

Comments

@Thymelizabeth
Copy link

Describe the bug
When Spotube is run from the command line, it opens an empty window. When this window is closed, the only message in the terminal is zsh: segmentation fault (core dumped) spotube

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal
  2. Run command spotube
  3. Close window that appears
  4. See error

Expected behavior
Spotube opens and runs reasonably well.

Screenshots
19-06-2022_22-06-1655636143
19-06-2022_22-06-1655636159

Installation Source/Method

  • Community Repo: AUR - spotube-bin

Desktop (please complete the following information):

  • OS: Arch Linux
  • Version: Rolling distro

Additional context
Using Sway window manager (Wayland)

Core dump
spotube-coredump.txt

@Thymelizabeth Thymelizabeth added the bug Something isn't working label Jun 19, 2022
@KRTirtho
Copy link
Owner

It's really one of the critical problem anyone can ever experience. I can't say surely but do you have gtk (gtk, gtk3 & gtk4) dependencies & glu installed?

@Thymelizabeth
Copy link
Author

I have gtk2, gtk3, gtk4, and glu all installed.

@Thymelizabeth
Copy link
Author

Thymelizabeth commented Jun 20, 2022

From gdb:
Thread 16 "io.flutter.ui" received signal SIGSEGV, Segmentation fault. Switching to Thread 0x7fffc4ef1640 (LWP 35607) 0x00007fffe0023033 in PlayerSetRate () from /usr/share/spotube-bin/lib/libwinmedia.so

@KRTirtho
Copy link
Owner

Just as I thought, the discontinued audio library (which was active before) is slowly becoming incompatible with newer versions of webkit2gtk
Did you try re-installing (including webkit2gtk)?

@Thymelizabeth
Copy link
Author

After reinstalling gtk2, gtk3, gtk4, glu, and webkit2gtk, spotube still segfaults. GDB gives a slightly different error this time:
Thread 16 "io.flutter.ui" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffc4ef1640 (LWP 16837)] 0x00007fffe001f731 in Player::SetVolume(float) () from /usr/share/spotube-bin/lib/libwinmedia.so

Another thing that's changed: I have started using Linux Zen kernel. Don't know if that affects anything, just thought I'd mention it.

@KRTirtho
Copy link
Owner

I don't think that's an issue with zen kernel because I also use it & no problems
Can you install the Flatpak/Appimage variant and see if it works

@Thymelizabeth
Copy link
Author

AppImage (after adding suid to fusermount) also segfaults.
After installing flatpak and rebooting, gives this error:
(spotube:2): Gdk-WARNING **: 18:12:07.573: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop

@KRTirtho
Copy link
Owner

Do you have xdg-desktop-portal and xdg-desktop-portal-gtk (or xdg-desktop-portal-wlr in the case of sway) installed on your system?

@Thymelizabeth
Copy link
Author

I have xdg-desktop-portal and xdg-desktop-portal-wlr installed. I am using sway. xdg-desktop-portal-gtk is not installed.

@ghost
Copy link

ghost commented Jun 22, 2022

I installed it just now, it worked when i opened it the first time but after that it gives me this error

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0 Auth.loadFromLocal (package:spotube/provider/Auth.dart:75)
#1 new PersistedChangeNotifier. (package:spotube/utils/PersistedChangeNotifier.dart:30)

spotube: ../libepoxy/src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 && "Couldn't find current GLX or EGL context.\n"' failed.
Aborted

On sway that is, I also have plasma and it works just fine there.

@KRTirtho
Copy link
Owner

KRTirtho commented Jul 7, 2022

I still don't have any clue why this isn't working in Sway. Really sorry. It could be from the Sway's side so can you guys check if either other Flutter Applications work in Sway or not?

Such Linux desktop apps are:

@ghost
Copy link

ghost commented Jul 9, 2022

@KRTirtho So, i found this it might be related
anholt/libepoxy#163

and if i start the app twice in successions like spotube & spotube one instance launches.
So it might be something like the first one creates glx or egl context and second launch grabs that.

Oh and i have no idea about the guy above i guess i should have created a different issue.

@ghost
Copy link

ghost commented Jul 10, 2022

Tried harmonoid and appimagepool both of them work.

@Thymelizabeth
Copy link
Author

I just installed the latest Flatpak, and it worked. The same happened for the native package in the AUR. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants