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
App still unresponsive #428
Comments
Searching the web lead me to foss-np/anubad@9d30f6e which fixes the
|
Opened an issue about the pygobject warnings: https://gitlab.gnome.org/GNOME/librsvg/issues/210 |
This sounds important. Do you have librsvg and gobject-introspection bindings for it installed? Both should be in |
Yes, I do. Without it the error woold be |
Nothing else seems to be missing from that log, but not being able to render svgs sounds like good reason to draw nothing or even freeze. Did v0.9.2.7 displayed same thing? |
Yes, it did. |
Ok, I'll be honest here, I've tried to
I'm not entirely sure if I can help you right now... // edit: I've actually downloaded ready-to-go Virtualbox appliance from NixOS page. |
Maybe this is desktop environment dependent. I will try it in the appliance as well as other VMs. |
So, running from last checkout and under...
... I was able to get GUI working with following patch: diff --git a/syncthing_gtk/infobox.py b/syncthing_gtk/infobox.py
index c5f3b19..37d3550 100644
--- a/syncthing_gtk/infobox.py
+++ b/syncthing_gtk/infobox.py
@@ -465,6 +465,7 @@ class InfoBox(Gtk.Container):
def _prepare_icon(self, icon):
if icon.endswith(".svg"):
# Icon is svg file
+ return Gtk.Image.new_from_icon_name('info', 16)
key = icon if self.dark_color is None else icon + "-dark"
if not key in svg_cache:
if not self.dark_color is None:
diff --git a/syncthing_gtk/app.py b/syncthing_gtk/app.py
index 10feb6a..b0ff5dc 100644
--- a/syncthing_gtk/app.py
+++ b/syncthing_gtk/app.py
@@ -229,9 +229,9 @@ class App(Gtk.Application, TimerManager):
if not self.daemon is None:
self.daemon.set_refresh_interval(REFRESH_INTERVAL_TRAY)
else:
- if self.wizard is None:
+ if self.wizard is None and not self.is_visible():
# Show main window
- self.cb_statusicon_click()
+ self.show()
self.hide_window = False
def setup_commandline(self):
diff --git a/syncthing_gtk/notifications.py b/syncthing_gtk/notifications.py
index 21b96a5..46c2739 100644
--- a/syncthing_gtk/notifications.py
+++ b/syncthing_gtk/notifications.py
@@ -19,7 +19,7 @@ try:
gi.require_version('Notify', '0.7')
from gi.repository import Notify
HAS_DESKTOP_NOTIFY = True
-except ImportError:
+except (ValueError, ImportError):
pass
if HAS_DESKTOP_NOTIFY: It disables drawing SVG and I kinda hope you'd have better idea why that helps as I do right now :) Continuing to investigate in meantime. |
Great, can confirm that 011c235 works, I can do without the icons for now. I have no understanding of what the problem is, except that it seems to be some kind of deadlock. Hopefully, upstream will enlighten us on https://gitlab.gnome.org/GNOME/librsvg/issues/210 |
Apparently, it was caused by two different instances of librsvg used at the same time. With NixOS/nixpkgs@47d0a11, syncthing-gtk was freezing, but when I cherry-picked NixOS/nixpkgs@0c2ede9 onto it, it started working. Thanks to @lazka for pointing me in the right direction. |
After update to 0.9.3, I tried removing
~/.config/syncthing{,-gtk}
but the app still freezes on starting Syncthing daemon – cannot even click Quit.The text was updated successfully, but these errors were encountered: