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 relaunch Nuvola-app or launch second Nuvola-App #378

Closed
laramy2020 opened this issue Sep 26, 2017 · 10 comments
Closed

Can't relaunch Nuvola-app or launch second Nuvola-App #378

laramy2020 opened this issue Sep 26, 2017 · 10 comments
Labels
need info Assignee needs more information to work on this ticket. type: bug Something is not working as expected or the documentation is incorrect.

Comments

@laramy2020
Copy link

laramy2020 commented Sep 26, 2017

System: Arch Linux 4.12.14-1 x86_64
DE: Gnome 3.24.3
nuvola --version:

Web Apps - based on Nuvola Apps™ project
Version 4.7.0
Revision snapshot
Diorite 4.7.0
WebKitGTK 2.16.6
libsoup 2.58.2

Affects all nuvola-apps

How to reproduce.

  • Launch nuvola via the Web App Desktop shortcut, The dedi nuvola-app shortcut, or running nuvola in the commandline
  • Close the Web app.
  • Launch any web app using any of the same 3 steps above

Error dialog pops up saying:

app can not start
Failed to connect to nuvola app runtime service
Error message: Failed to connect to socket 'N3'. Connection refused

This issue prevents 2 nuvola-apps from running at the same time as well.

To kill the service I run
pkill -f nuvola
Forgot to mention. These are compiled builds. Using update PKGBUILDS found in the aur
AUR
And
GitHub

@jiri-janousek jiri-janousek added this to the November 2017 milestone Sep 28, 2017
@jiri-janousek
Copy link
Member

Hello @laramy2020. Thank for reporting this issue. Does it still affect Nuvola 4.8? If so, could you provide me with debug logs (nuvola --debug)?

Using update PKGBUILDS found in the aur

Off topic but you pass --webkitgtk-supports-mse to Nuvola's build. Are you 100% sure that Arch Linux builds of WebKitGTK+ support MSE (-DENABLE_MEDIA_SOURCE=ON)?

@laramy2020
Copy link
Author

The program still hangs
nuvolaout.txt
I don't have dbus launcher enabled yet. I am aiming for enabling that once i get all packages managed/maintained in the aur. If that might help i will give that a try as well.

I did not see that flag exactly. But I did a recursive grep of "ENABLE_MEDIA_SOURCE" in the source files (including the PKGBUILD) and i got returns of all ENABLE_MEDIA_SOURCE=ON

So that was everywhere, just not in the build script.
If there is a way I can confirm an installed package, that would be great.

If the source requires DENABLE_MEDIA_SOURCE=ON for the build to be enabled i can add that to my PKGBUILD libs.

Ok looks like things have changed from 2.16 to 2.18 i might have to make a modified webkitgtk build in the aur.
webkit2gtk.txt

@jiri-janousek
Copy link
Member

The program still hangs nuvolaout.txt

I cannot see any sign of an error in the log. It shows that Google Play Music started and exited successfully, nothing more.

If there is a way I can confirm an installed package, that would be great.

Check window.MediaSource in WebKit WebInspector. Nuvola 4.9 will do that for you though (since 1d8c398). If you need more info, start a new topic at nuvola-devel mailing list.

@laramy2020
Copy link
Author

Check window.MediaSource in WebKit WebInspector. Nuvola 4.9 will do that for you though (since 1d8c398). If you need more info, start a new topic at nuvola-devel mailing list.

Looks like arch dose not enable MSE. Will be making that package now as well...

I plan on making a new debug build tomorrow in a clean arch install. I will grab logs and videos.

@jiri-janousek jiri-janousek added the need info Assignee needs more information to work on this ticket. label Oct 11, 2017
@laramy2020
Copy link
Author

Attached are two more logs and the system it was tested on
systempackages.txt
system.txt

nuvola.log
nuvola2.log

And a video of the 3 machine I have with this issue (all 3 have this issue) Video

And the updated AUR PKGBUILD

@jiri-janousek
Copy link
Member

There obviously is an issue with a socket connection from the youtube subprocess to the master process. A relevant code in Diorite might be:

grep -rn "Failed to connect to socket" src
src/glib/io.vala:57:		throw new IOError.CONN_FAILED("Failed to connect to socket '%s'. %s", path, e.message);
src/glib/SocketChannel.vala:64:			throw new IOError.CONN_FAILED("Failed to connect to socket '%s'. %s", name, e.message);
src/glib/SocketChannel.vala:78:			throw new IOError.CONN_FAILED("Failed to connect to socket '%s'. %s", name, e.message);

@jiri-janousek jiri-janousek added type: bug Something is not working as expected or the documentation is incorrect. and removed need info Assignee needs more information to work on this ticket. labels Oct 23, 2017
jiri-janousek added a commit to tiliado/diorite that referenced this issue Nov 4, 2017
@jiri-janousek
Copy link
Member

@laramy2020, Diorite master now produces three unique error messages instead of "Failed to connect to socket". Could you post new debugging output once this changeset reaches your builds (Diorite 4.9)?

jiri-janousek added a commit to tiliado/diorite that referenced this issue Dec 17, 2017
  * New widget: Drtgtk.Entry - an enhanced version og Gtk.Entry.
  * Fixed parsing of RPC notifications. Issue: tiliado/nuvolaplayer#385
  * New widget: Drtgtk.HeaderBarTitle - a custom title widget for
    Gtk.HeaderBar.
  * New utility function: System.cmdline_for_pid - Get command line of
    a process with given PID.
  * Better debugging: Distinguish between socket creation errors.
    Issue: tiliado/nuvolaplayer#378
  * New namespace: Drt.Dbus -  DBus introspection and service
    activation.
  * New utility method: Drt.Flatpak.check_desktop_portal_available - to
    check whether a proper XDG Desktop Portal DBus interface is present.
  * New functionality: Functions to get, set and look up GTK+ 3
    themes - see Drtgtk.DesktopShell.
  * New widget: Drtgtk.GtkThemeSelector - a selector to list and change
    a GTK+ theme.

Signed-off-by: Jiří Janoušek <[email protected]>
@jiri-janousek
Copy link
Member

Could you post new debugging output once this changeset reaches your builds (Diorite 4.9)?

Nuvola 4.9 is out ;-)

@jiri-janousek jiri-janousek removed this from the October 2017 milestone Dec 17, 2017
@jiri-janousek jiri-janousek added the need info Assignee needs more information to work on this ticket. label Dec 17, 2017
@laramy2020
Copy link
Author

Awesome. will do soon. Been a busy month, but my scripts seem to be working on making new pkgbuilds.

@jiri-janousek
Copy link
Member

Closing as expired because there has not been any response for a month. Feel free to add requested information to reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info Assignee needs more information to work on this ticket. type: bug Something is not working as expected or the documentation is incorrect.
Projects
None yet
Development

No branches or pull requests

2 participants