unobserved-io / espanso-gui

GUI frontend for espanso
GNU General Public License v3.0
54 stars 3 forks source link

Addons from the espanso hub cause a crash #10

Open Anagastes opened 4 months ago

Anagastes commented 4 months ago

Addons from the hub lead to a crash. Can I somehow provide debug logs to help?

Clicking on it leads to a crash of espansoGUI.

Bildschirmfoto_20240718_224423

rickykresslein commented 3 months ago

There isn't much of a debug log, but you can run espansoGUI from the terminal and then get the output. espansoGUI is still very basic in what it can do, so Addons aren't supported as of now. I hope to add more espanso functionality to the app in the future, but I have a lot of projects going on at the moment and this one isn't a priority, so contributions would be awesome.

Anagastes commented 3 months ago

There isn't much of a debug log, but you can run espansoGUI from the terminal and then get the output. espansoGUI is still very basic in what it can do, so Addons aren't supported as of now. I hope to add more espanso functionality to the app in the future, but I have a lot of projects going on at the moment and this one isn't a priority, so contributions would be awesome.

I totally understand it. I really wish more developers would see the need for a GUI... especially for use by end users... :S

I have now tracked this with a full backtrace.

env RUST_BACKTRACE=full espanso-gui
thread 'main' panicked at src/app.rs:1464:41:
Could not open file.: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
   0:     0x5e53d841c1f5 - <unknown>
   1:     0x5e53d8449adb - <unknown>
   2:     0x5e53d84178df - <unknown>
   3:     0x5e53d841bfce - <unknown>
   4:     0x5e53d841d309 - <unknown>
   5:     0x5e53d841d04d - <unknown>
   6:     0x5e53d841d7a3 - <unknown>
   7:     0x5e53d841d684 - <unknown>
   8:     0x5e53d841c6b9 - <unknown>
   9:     0x5e53d841d3b7 - <unknown>
  10:     0x5e53d6787c83 - <unknown>
  11:     0x5e53d6788216 - <unknown>
  12:     0x5e53d6944fb4 - <unknown>
  13:     0x5e53d68ae059 - <unknown>
  14:     0x5e53d689c7b9 - <unknown>
  15:     0x5e53d683a328 - <unknown>
  16:     0x5e53d6845cf7 - <unknown>
  17:     0x5e53d6908ae3 - <unknown>
  18:     0x5e53d678be5c - <unknown>
  19:     0x5e53d6845b51 - <unknown>
  20:     0x5e53d684376a - <unknown>
  21:     0x5e53d68457e1 - <unknown>
  22:     0x5e53d6845dc3 - <unknown>
  23:     0x5e53d6845d63 - <unknown>
  24:     0x5e53d68cc04e - <unknown>
  25:     0x5e53d68d0771 - <unknown>
  26:     0x5e53d68caff5 - <unknown>
  27:     0x5e53d68cb51e - <unknown>
  28:     0x5e53d686eae1 - <unknown>
  29:     0x5e53d686f3c8 - <unknown>
  30:     0x5e53d678c6ab - <unknown>
  31:     0x5e53d684524c - <unknown>
  32:     0x5e53d6892a0a - <unknown>
  33:     0x5e53d67aa2a7 - <unknown>
  34:     0x5e53d67c1b35 - <unknown>
  35:     0x5e53d678a588 - <unknown>
  36:     0x5e53d678aec8 - <unknown>
  37:     0x5e53d8411a90 - <unknown>
  38:     0x5e53d678ae98 - <unknown>
  39:     0x5e53d67aa321 - <unknown>
  40:     0x7d725cef3e08 - <unknown>
  41:     0x7d725cef3ecc - __libc_start_main
  42:     0x5e53d67886c5 - <unknown>
  43:                0x0 - <unknown>
rickykresslein commented 3 months ago

That error shows there is an issue when opening the espansoGUI saved data (which stores the espanso directory you've saved), which is an unexpected error. Did you move your espanso directory after initially setting it? Regardless, this seems like a bug and should not happen, so thank you for bringing it to my attention.

Any more details you can provide, like OS (looks like Linux, but what distro), if you installed espansoGUI via Flathub or something else, location of your espanso directory, etc. would be helpful in trying to solve this.

Anagastes commented 3 months ago

I have not changed anything in this folder (as far as I remember) and the area where the ‘classic’ shortcuts are also works without any problems.

It could really just be the lack of add-on support.

Here is a short recording an my sys infos ^^.

Operating System: EndeavourOS 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.6.42-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4670 CPU @ 3.40GHz
Memory: 23.4 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: ASUS
Product Name: All Series

https://github.com/user-attachments/assets/ac4db455-6cb2-4358-af4a-2d20ffddae96

rickykresslein commented 1 month ago

Sorry I've taken so long to get back to you on this. For some reason I though it had already been closed. Are you willing to show whats in the .yml file? It's most likely something unsupported, whether not a standard match and replace (only the basics are supported by espansoGUI so far) or a weird character (just thinking this since you have it in an 'emojis' folder).