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

Superproductivity won't start #3866

Open
GaetanCia opened this issue Jan 10, 2025 · 11 comments
Open

Superproductivity won't start #3866

GaetanCia opened this issue Jan 10, 2025 · 11 comments
Labels

Comments

@GaetanCia
Copy link

Your Environment

Expected Behavior

application start

Current Behavior

Application appear in systray but it's not shown.

Steps to Reproduce (for bugs)

git clone https://aur.archlinux.org/superproductivity-bin.git
cd superproductivity-bin
makepkg -s
sudo pacman -U superproductivity-bin-11.1.1-1-x86_64.pkg.tar.zst

Can you reproduce this reliably?

Yes

Error Log (Desktop only)

superproductivity                                                                                                                                                 

Start app...
13:16:41.841 › { enabled: null, showDevTools: false, mode: 'bottom' }
[161447:0110/131641.884063:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: L’interface « org.freedesktop.portal.FileChooser » doesn't exist
[161447:0110/131641.884146:ERROR:select_file_dialog_linux_portal.cc(294)] Failed to read portal version property
Saving backups to /home/bakelue/.config/superProductivity/backups
13:16:41.910 › Saving backups to /home/bakelue/.config/superProductivity/backups
13:16:42.407 › No custom styles detected at /home/bakelue/.config/superProductivity/styles.css
ERR Global Shortcut registration failed: Ctrl+Shift+X
13:16:42.417 › Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/usr/lib/superproductivity/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /usr/lib/superproductivity/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86667)
    at WebContents.emit (node:events:518:28)
13:16:42.417 › Global Shortcut registration failed: Ctrl+Shift+X Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/usr/lib/superproductivity/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /usr/lib/superproductivity/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86667)
    at WebContents.emit (node:events:518:28)
13:16:42.417 › Additional Error info:  Ctrl+Shift+X
^C13:17:04.616 › close, isQuiting: null
13:17:04.619 › Actions to wait for  [ 'FINISH_DAY_BEFORE_CLOSE_EFFECT' ]
13:17:04.621 › BEFORE_CLOSE_DONE FINISH_DAY_BEFORE_CLOSE_EFFECT []
13:17:04.622 › close, isQuiting: null
13:17:04.622 › close, isQuiting: true
@GaetanCia GaetanCia added the bug label Jan 10, 2025
Copy link

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

Copy link

Hello there GaetanCia! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

For more open ended discussions and/or specific questions, please visit the discussions page. 💖

@johannesjo
Copy link
Owner

Does it start properly, when using the app image?

ping @alosarjos

@GaetanCia
Copy link
Author

When using app image it work but the app show first in systray and after 2 or 3 min, the app show up.

./superProductivity-x86_64.AppImage                                                                                                                               ─╯
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

sudo pacman -S fuse2 


 ./superProductivity-x86_64.AppImage                                                                                                                               
Start app...
14:53:43.481 › { enabled: null, showDevTools: false, mode: 'bottom' }
[196717:0110/145343.595627:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: L’interface « org.freedesktop.portal.FileChooser » doesn't exist
[196717:0110/145343.595666:ERROR:select_file_dialog_linux_portal.cc(294)] Failed to read portal version property
Saving backups to /home/bakelue/.config/superProductivity/backups
14:53:43.938 › Saving backups to /home/bakelue/.config/superProductivity/backups
[196774:0110/145414.081369:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[196717:0110/145414.088440:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
14:54:14.691 › No custom styles detected at /home/bakelue/.config/superProductivity/styles.css
ERR Global Shortcut registration failed: Ctrl+Shift+X
14:54:14.702 › Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/tmp/.mount_superPQDNAo3/resources/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /tmp/.mount_superPQDNAo3/resources/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/tmp/.mount_superPQDNAo3/resources/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/tmp/.mount_superPQDNAo3/resources/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86665)
    at WebContents.emit (node:events:518:28)
14:54:14.702 › Global Shortcut registration failed: Ctrl+Shift+X Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/tmp/.mount_superPQDNAo3/resources/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /tmp/.mount_superPQDNAo3/resources/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/tmp/.mount_superPQDNAo3/resources/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/tmp/.mount_superPQDNAo3/resources/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86665)
    at WebContents.emit (node:events:518:28)
14:54:14.702 › Additional Error info:  Ctrl+Shift+X
[196717:0110/145444.234604:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[196774:0110/145514.376541:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[196717:0110/145514.384197:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[196774:0110/145514.501042:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

I did not see it at first, but i have this log if i wait (2 or 3min) with the app (from building, not app image)

14:55:53.357 › Additional Error info:  Ctrl+Shift+X
[197667:0110/145623.002657:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[197708:0110/145653.137819:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[197667:0110/145653.145852:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512

I don't know if it's relevant, but i have the same behavior with vscode. After launching the app, I have to wait 2 or 3 min for it to show up, but if i pass the parameter --disable-gpu, it shows instantly.

@alosarjos
Copy link
Contributor

Working fine here using Gnome (Also Arch)

imagen

I see you are using Hyperland, do you have the correct portal package installed? https://archlinux.org/packages/extra/x86_64/xdg-desktop-portal-hyprland/

If that doesn't work I would suggest asking on the Hyprland support channels

@alosarjos
Copy link
Contributor

Also, try installing this package: xdg-desktop-portal-gtk

@GaetanCia
Copy link
Author

pacman -Q | grep xdg
python-pyxdg 0.28-4
xdg-dbus-proxy 0.1.6-1
xdg-desktop-portal 1.18.4-2
xdg-desktop-portal-hyprland 1.3.9-3
xdg-utils 1.2.1-1

I added xdg-desktop-portal-gtk but the issue is still there.

@alosarjos
Copy link
Contributor

Can you try using the AUR bin package and with xdg-desktop-portal-gtk run the program from the terminal to see the logs?

@GaetanCia
Copy link
Author

GaetanCia commented Jan 13, 2025

I removed superproductivity-bin-11.1.1-1

Installed xdg-desktop-portal-gtk with pacman and superproductivity from AUR with yay helper.

log :

superproductivity                                                                                                                                                 
Start app...
16:29:04.512 › { enabled: null, showDevTools: false, mode: 'bottom' }
[301735:0113/162904.553751:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: L’interface « org.freedesktop.portal.FileChooser » n’existe pas
[301735:0113/162904.553814:ERROR:select_file_dialog_linux_portal.cc(294)] Failed to read portal version property
Saving backups to /home/gaetan/.config/superProductivity/backups
16:29:04.583 › Saving backups to /home/gaetan/.config/superProductivity/backups
16:29:05.092 › No custom styles detected at /home/gaetan/.config/superProductivity/styles.css
ERR Global Shortcut registration failed: Ctrl+Shift+X
16:29:05.104 › Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/usr/lib/superproductivity/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /usr/lib/superproductivity/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86667)
    at WebContents.emit (node:events:518:28)
16:29:05.104 › Global Shortcut registration failed: Ctrl+Shift+X Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/usr/lib/superproductivity/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /usr/lib/superproductivity/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86667)
    at WebContents.emit (node:events:518:28)
16:29:05.104 › Additional Error info:  Ctrl+Shift+X
[301735:0113/162934.717324:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[301735:0113/163004.867135:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[301781:0113/163035.112786:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

The app appear after this line : [301781:0113/163035.112786:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

log after quitting superproductivity :

16:34:00.571 › close, isQuiting: null
16:34:00.574 › Actions to wait for  [ 'FINISH_DAY_BEFORE_CLOSE_EFFECT' ]
16:34:00.575 › BEFORE_CLOSE_DONE FINISH_DAY_BEFORE_CLOSE_EFFECT []
16:34:00.576 › close, isQuiting: null
16:34:00.577 › close, isQuiting: true
16:34:00.579 › Quit after all windows being closed
[301735:0113/163400.582588:ERROR:wayland_event_watcher.cc(47)] libwayland: warning: queue 0x2b44007f9800 destroyed while proxies still attached:

[301735:0113/163400.582683:ERROR:wayland_event_watcher.cc(47)] libwayland:   wl_shm_pool#49 still attached

@alosarjos
Copy link
Contributor

I removed superproductivity-bin-11.1.1-1

Installed xdg-desktop-portal-gtk with pacman and superproductivity from AUR with yay helper.

log :

superproductivity                                                                                                                                                 
Start app...
16:29:04.512 › { enabled: null, showDevTools: false, mode: 'bottom' }
[301735:0113/162904.553751:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: L’interface « org.freedesktop.portal.FileChooser » n’existe pas
[301735:0113/162904.553814:ERROR:select_file_dialog_linux_portal.cc(294)] Failed to read portal version property
Saving backups to /home/gaetan/.config/superProductivity/backups
16:29:04.583 › Saving backups to /home/gaetan/.config/superProductivity/backups
16:29:05.092 › No custom styles detected at /home/gaetan/.config/superProductivity/styles.css
ERR Global Shortcut registration failed: Ctrl+Shift+X
16:29:05.104 › Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/usr/lib/superproductivity/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /usr/lib/superproductivity/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86667)
    at WebContents.emit (node:events:518:28)
16:29:05.104 › Global Shortcut registration failed: Ctrl+Shift+X Error: Global Shortcut registration failed: Ctrl+Shift+X
    at errorHandlerWithFrontendInform (/usr/lib/superproductivity/app.asar/electron/error-handler-with-frontend-inform.js:10:18)
    at /usr/lib/superproductivity/app.asar/electron/ipc-handler.js:182:101
    at Array.forEach (<anonymous>)
    at registerShowAppShortCuts (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:141:18)
    at IpcMainImpl.<anonymous> (/usr/lib/superproductivity/app.asar/electron/ipc-handler.js:111:9)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86667)
    at WebContents.emit (node:events:518:28)
16:29:05.104 › Additional Error info:  Ctrl+Shift+X
[301735:0113/162934.717324:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[301735:0113/163004.867135:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=512
[301781:0113/163035.112786:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

The app appear after this line : [301781:0113/163035.112786:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

log after quitting superproductivity :

16:34:00.571 › close, isQuiting: null
16:34:00.574 › Actions to wait for  [ 'FINISH_DAY_BEFORE_CLOSE_EFFECT' ]
16:34:00.575 › BEFORE_CLOSE_DONE FINISH_DAY_BEFORE_CLOSE_EFFECT []
16:34:00.576 › close, isQuiting: null
16:34:00.577 › close, isQuiting: true
16:34:00.579 › Quit after all windows being closed
[301735:0113/163400.582588:ERROR:wayland_event_watcher.cc(47)] libwayland: warning: queue 0x2b44007f9800 destroyed while proxies still attached:

[301735:0113/163400.582683:ERROR:wayland_event_watcher.cc(47)] libwayland:   wl_shm_pool#49 still attached

Can you give it a try to creating this file:

~/.config/xdg-desktop-portal/portals.conf with this content:

[preferred]
org.freedesktop.impl.portal.FileChooser=gtk

also can you validate this two env vars are setted?

XDG_CURRENT_DESKTOP = Hyprland
XDG_SESSION_TYPE = wayland

I'm not expert but if this doesn't work I would suggest also asking in any Hyprland community you know

@GaetanCia
Copy link
Author

GaetanCia commented Jan 14, 2025

Unfortunately, after creating creating portals.conf, I've got the same issue.

env | grep xdg                                                          
XDG_CONFIG_DIRS=/etc/xdg
XDG_MENU_PREFIX=Hyprland-
XDG_BACKEND=wayland
XDG_DATA_HOME=/home/gaetan/.local/share
XDG_CONFIG_HOME=/home/gaetan/.config
XDG_SESSION_DESKTOP=Hyprland
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=Hyprland
XDG_CACHE_HOME=/home/gaetan/.cache
XDG_VTNR=1
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/home/gaetan/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

Thanks for the help, i will also try to reach Hyprland community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants