8000 GTK GUI locks up, if multiple script error notifications are posted in quick succession · Issue #383 · autokey/autokey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
GTK GUI locks up, if multiple script error notifications are posted in quick succession #383
Closed
@luziferius

Description

@luziferius

Classification:

Bug

Reproducibility:

Always

Version

AutoKey version: 0.95.10, git master, git develop

Used GUI (Gtk, Qt, or both): GTK

Summary

The GTK GUI hangs indefinitely, if two notifications are generated in quick succession. This happens, if a failing script is triggered multiple times.

GTK outputs this on the log:
gi.repository.GLib.GError: g-io-error-quark: GDBus.Error:org.freedesktop.Notifications.Error.ExcessNotificationGeneration: Created too many similar notifications in quick succession (36)

Steps to Reproduce (if applicable)

  • Have a Script that raises an Exception
  • Open it in the GTK GUI
  • Double click the "Run selected Script" button

Expected Results

  • One or two notifications pop up. Autokey stays usable.

Actual Results

  • The GUI locks up completely. The expansion service still works, but the GUI is unusable.

Notes

This is GTK-GUI specific. In the Qt GUI, multiple notifications work without a problem.

To fix this, either add a notification scheduler or simply add a timestamp that gets updated whenever a notification is successfully sent. Suppress further notifications, if the last timestamp is below the allowed minimum notification delay.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0