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

Guake Crashes on open after changing preferences #2201

Closed
tblommel opened this issue Sep 13, 2023 · 2 comments
Closed

Guake Crashes on open after changing preferences #2201

tblommel opened this issue Sep 13, 2023 · 2 comments

Comments

@tblommel
Copy link

I installed Guake using apt-get and was able to use it just fine, however after changing preferences and closing the application, I now get the following output when trying to launch. I just updated to Ubuntu 22.04.3 LTS

(base) thomas@LaptopInspiron:~$ guake
Guake not running, starting it
Loading Gnome schema from: /usr/share/glib-2.0/schemas
Language previously loaded from: /usr/share/locale
Guake Terminal 3.10
VTE 0.68.0
Gtk 3.24.33
created fresh notebook for workspace 0
Spawning new terminal at /home/thomas
current workspace is 0
can't bind show-focus key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
return self.get_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/guake/main.py", line 479, in main
remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
return self.ProxyObjectClass(self, bus_name, object_path,
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in init
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/guake", line 33, in
sys.exit(load_entry_point('guake==3.10', 'console_scripts', 'guake')())
File "/usr/lib/python3/dist-packages/guake/main.py", line 664, in exec_main
if not main():
File "/usr/lib/python3/dist-packages/guake/main.py", line 495, in main
instance = Guake()
File "/usr/lib/python3/dist-packages/guake/guake_app.py", line 249, in init
self.load_config()
File "/usr/lib/python3/dist-packages/guake/guake_app.py", line 852, in load_config
self.settings.general.triggerOnChangedValue(self.settings.general, "background-image-file")
File "/usr/lib/python3/dist-packages/guake/settings.py", line 119, in triggerOnChangedValue
func(settings, key, user_data)
File "/usr/lib/python3/dist-packages/guake/gsettings.py", line 185, in background_image_file_changed
self.guake.background_image_manager.load_from_file(settings.get_string(key))
File "/usr/lib/python3/dist-packages/guake/utils.py", line 399, in load_from_file
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, pixbuf.get_width(), pixbuf.get_height())
AttributeError: 'NoneType' object has no attribute 'get_width'

Here is the results of guake --support:

(base) thomas@LaptopInspiron:~$ guake --support

$ guake --support

Guake Version: 3.10

Vte Version: 0.68.0

Vte Runtime Version: 0.68.0


GTK+ Version: 3.24.33

GDK Backend: <GdkX11.X11Display


Desktop Session: ubuntu


Display: :1

RGBA visual: True

Composited: True

  • Monitor: 0 - BOE eDP-1-1
    • Geometry: 1920 x 1080 at 1920, 0
    • Size: 344 x 193 mm²
    • Primary: True
    • Refresh rate: 59.998000000000005 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DEL HDMI-0
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 598 x 336 mm²
    • Primary: False
    • Refresh rate: 60.0 Hz
    • Subpixel layout: unknown
@tblommel
Copy link
Author

After playing around for a little longer I seem to have found the issue. I first reset my user preferences by finding the guake directory in dconf-editor and selecting Reset recursively. This allowed me to run guake again. I can reproduce the issue reliably by uploading a non-image file to the Background image section. When I close guake and then try to restart it the issue appears. I was able to break guake while placing an .mp4 and a .pdf file, but a .png file works just fine and does not cause issues.

I guess the solution could be to not have your users be dumb and upload non-image files

@Davidy22
Copy link
Collaborator

Davidy22 commented Oct 7, 2023

Made an issue for this at #2205 to track this.

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

2 participants