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

Manjaro: 1.6.9 AppImage closes on joining room / launching vlc #486

Closed
SagittaryX opened this issue Nov 17, 2021 · 10 comments
Closed

Manjaro: 1.6.9 AppImage closes on joining room / launching vlc #486

SagittaryX opened this issue Nov 17, 2021 · 10 comments

Comments

@SagittaryX
Copy link

Describe the bug
When running the latest Manjaro GNOME and using the AppImage (through the AppImageLauncher tool) to run the program Syncplay will exit when hitting run after the configurations screen. The main program and the associated VLC instance will show up briefly before the program automatically stops running / exits with no error message.

To Reproduce
Steps to reproduce the behavior:

  1. Run the latest version of Manjaro with GNOME as DE
  2. Install appimagelauncher from the official Manjaro repository
  3. Download Syncplay 1.6.9 AppImage and run it with the appimagelauncher
  4. Select server / name / roomname
  5. Hit store configuration and launch Syncplay
  6. Program exits after briefly showing room and VLC instance

Expected behavior
Program should not exit after running / joining a lobby.

Screenshots
If applicable, add screenshots to help explain your problem.

N/A

Version and platform:

  • OS: Manjaro (5.13.19-2-MANJARO) with GNOME 40.5
  • Syncplay 1.6.9 AppImage

Additional context
I recently switched from using Manjaro with KDE Plasma as my DE, on this version 1.6.9 did work fine. With GNOME however the program fails as described above. The 1.6.8 version of Syncplay however does work as described.

I am a relative Linux beginner, let me if there is anything I can do to provide more info / debugging.

@SagittaryX SagittaryX changed the title 1.6.9 AppImage closes on joining room / launching vlc 1.6.9 AppImage closes on joining room / launching vlc on Manjaro GNOME Nov 17, 2021
@SagittaryX SagittaryX changed the title 1.6.9 AppImage closes on joining room / launching vlc on Manjaro GNOME Manjaro: 1.6.9 AppImage closes on joining room / launching vlc Nov 17, 2021
@Et0h
Copy link
Contributor

Et0h commented Nov 18, 2021

Linux isn't my speciality, but here are some questions which will hopefully help us better understand the issue:

  1. What version of VLC are you using?
  2. Does it work if you use mpv rather than VLC?
  3. Are you running Syncplay as a regular user or as an administrator/superuser?

My understanding is that @sxiii has been able to run Syncplay with Manjaro without issue, but not sure on versions/GNOME/AppImage.

@daniel-123
Copy link
Contributor

As additional questions for quick diagnosis:

  • Does the appimage produce any notable output when you run it from terminal?
  • Are you running in Wayland or X session?

@SagittaryX
Copy link
Author

What version of VLC are you using?

3.0.16 Vetinari

Does it work if you use mpv rather than VLC?

It will not immediately exit as with VLC, though sound seems to be not working. Further elaborated below. Though I should not that if I integrate and run with the AppImageLauncher it seems to work as intended.

Are you running Syncplay as a regular user or as an administrator/superuser?

Does the appimage produce any notable output when you run it from terminal?

Not sure if I did exactly what you intended, I know there should ways to do this without AppImageLauncher but running the file from terminal using ./file and sudo ./file on my system is still launching the programs with the AppImageLauncher. Let me know if you want me to remove it and launch it some other way.

Running the AppImage from terminal with just ./file leads to the error. The only terminal output is "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.". Running the AppImage with sudo ./file does appear to work, but VLC spits out audio errors when trying to play a file:

"Audio output failed:
The audio device "default" could not be used:
No such file or directory."

This is the whole terminal output for running the program as sudo (all before trying to run a file):

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=@.host --user to connect to bus of other user)
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=@.host --user to connect to bus of other user)
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.

I also tried using mpv while running as sudo ./file which resulted in no sound. Below is the extra terminal output when doing this, otherwise same as the above. Though as mentioned above, if AppImageLauncher has integrated the AppImage then it does work.

error: XDG_RUNTIME_DIR not set in the environment.
ALSA lib pcm_dmix.c:1035:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Are you running in Wayland or X session?

Using X.

@daniel-123

This comment has been minimized.

@daniel-123
Copy link
Contributor

I've done some testing myself in fresh Manjaro installation and I think I managed to significantly narrow down the problem:

  • Syncplay works perfectly fine with mpv. This is also a workaround you can use for now.
  • VLC on its own works normally
  • Syncplay with VLC specifically causes VLC to crash/close very quickly after its started by Syncplay. Which seems that the problem is probably somewhere around our lua interface to it. What do you think @Et0h ?

@SagittaryX
Copy link
Author

My workaround for now is to use 1.6.8, mentioned in my additional notes as well but that version does not seem to have the issue.

@daniel-123
Copy link
Contributor

Hmm, 1.6.8 indeed works without problems. This is really quite weird as there wasn't any change that could obviously affect this. Only thing with least remote possibility of being related that changed between 1.6.8 and 1.6.9 is that AppImage now has bundled libxcb and libglib2 as result of those three commits: 1, 2 and 3. That and how the very process of building the AppImage always runs the latest version of its toolchain.

I guess we will have to investigate more. The problem also seems to persist in latest builds from main branch.

@vgambier
Copy link

vgambier commented Dec 5, 2021

I am using Pop!_OS (with the GNOME desktop) and I encountered the same issue. I worked around it by switching to mpv (which is what I wanted to do anyway). I tried the AppImage, the .deb install, and the tarball install, and it was the same. Running it from the terminal without sudo also displayed "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created".

The symptoms were a little different than what SagittaryX reported though, upon joining a server Syncplay simply became unresponsive, I could not interact with the UI at all. There was no VLC window that I could see. If I tried moving and resizing the window I would occasionally get glitchy results (like a "full-screen" window not actually being full screen, with parts of the UI hidden behind the borders of the monitor). Eventually once I spammed the close button my desktop would tell me the program is unresponsive, asking if I want to kill it.

@HarmfulBreeze
Copy link

Can confirm the issue. I believe a better workaround would be to simply use the AUR version, rather than downgrading to 1.6.8.

@Et0h
Copy link
Contributor

Et0h commented Nov 9, 2023

I am closing this issue because Syncplay has now discontinued AppImage support. See: #643 for more details. If an issue recurs with the Deb package or Tarball then please re-open this comment and let us know of the details.

@Et0h Et0h closed this as completed Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants