super-productivity: App doesn't start after installation (snap)

Environment

  • Version: 5.0.7 - 5.0.8;
  • Operating System and version: Ubuntu 18.04;
  • Desktop Environment: Gnome.

Current Behavior

New fresh system Ubuntu 18.04. I just reinstalled whole my system on new SSD disk. Before I used that app in Ubuntu 18.04 as well and had no problems. Just installed app from edge channel 5.0.8 version and it didn’t start. Okay, run sudo snap remove --purge superproductivity and installed stable version as sudo snap install superproductivity, but result was the same… I uninstalled it again and installed from ‘Ubuntu software’ app - nothing changed. Am I missing some dependencies? Please, help! I need tracking! 😃

Steps to Reproduce

  1. Fresh Ubuntu 18.04.
  2. sudo snap install superproductivity
  3. superproductivity from command line…
  4. App doesn’t start and there is no hanging in command line, a new line appears immediately. So it looks like app starts and exits, or crashes 😃

Console Output

There are no console output or any logs files in dirs: ~/.config/superProductivity/log.log ~/snap/superproductivity/current/.config/superProductivity/log.log

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 23 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Hi, I wanted to try out the app and possibly (?) hit the same issue. I did get the app running eventually but I’m not sure what was the root cause, but maybe some of it will be of help… So here’s what I did.

  1. Installed from stable channel using snap
  2. Launched using desktop entry, nothing poped-up.
  3. Tried launching through shell with superproductivity got EXITING due to failed single instance lock
  4. Checked htop, the app was there but I didn’t find a way to display it.
  5. Uninstalled. Reinstalled from stable
  6. Ran using CLI, got JS exception about SingletonCookie not being found (sorry, I don’t have the output anymore 😦)
    • old path got reported as present
    • new path got reported as missing (false)
  7. Deleted the path which was mentioned as “culprit” I guess? This was rm -rf ~/snap/superproductivity/current/.config/superProductivity/ for me.
  8. App launched fine at this point.

Hopefully this is of some help, and sorry once again about the sub-par reproduction steps.

Seems that it still happening. I am facing a same issue. Got it running by just removing config dir. (actually im not sure did i ever install it in this machine before or not, maybe isExistsOldPath true is set incorrectly some case, but not sure). After closing it did not start again. And attrempting to start it directly from /snap/superproductivity/current/superproductivity starts the app but all my work is lost.

however ls -la /home/mkungla/snap/superproductivity/current/.config/superProductivity gives me broken symlinks

.
..
backups
Crashpad
SingletonCookie -> 1279671974594869725 (broken symlink)
SingletonLock -> gogogo-461228 (broken symlink)
SingletonSocket -> /tmp/scoped_dirL102m6/SingletonSocket (broken symlink)

when remove these broken symlinks then app starts from gnome but, seems to be broken when i close it and reopen it then everything is again lost.

snap    2.61.1-0.fc39
snapd   2.61.1-0.fc39
series  16
fedora  39
kernel  6.6.13-200.fc39.x86_6
  1. install
sudo dnf install superproductivity

superproductivity 7.17.2 from johannesjo installed

  1. starting from gnome desktop failed

  2. started from cli

which superproductivity

/var/lib/snapd/snap/bin/superproductivity superproductivity EXITING due to failed single instance lock Gtk-Message: 22:16:02.553: Failed to load module “pk-gtk-module” Gtk-Message: 22:16:02.555: Failed to load module “pk-gtk-module” /usr/share/libdrm/amdgpu.ids: No such file or directory

  1. starting with full path app it starts with following output

/snap/superproductivity/current/superproductivity

Start app… › { enabled: null, showDevTools: false, mode: ‘bottom’ } MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete Saving backups to /home/mkungla/.config/superProductivity/backups Saving backups to /home/mkungla/.config/superProductivity/backups No custom styles detected at /home/mkungla/.config/superProductivity/styles.css [440207:0201/221804.528909:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [440207:0201/221804.534261:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [440207:0201/221804.543714:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times! close, isQuiting: null Actions to wait for [ ‘FINISH_DAY_BEFORE_CLOSE_EFFECT’ ] BEFORE_CLOSE_DONE FINISH_DAY_BEFORE_CLOSE_EFFECT [] close, isQuiting: null close, isQuiting: true Quit after all windows being closed

combined system logs

systemd[4408]: Started app-gnome-superproductivity_superproductivity-439435.scope - Application launched by gnome-shell.
systemd[4408]: Started snap.superproductivity.superproductivity-137284cf-49c2-4d81-945a-65cf84a09458.scope.
audit[439489]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=439489 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7f4391ae74e7 code=0x50000
audit[439488]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=439488 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7ff04660e4e7 code=0x50000
superproductivity_superproductivity.desktop[439435]: EXITING due to failed single instance lock
superproductivity_superproductivity.desktop[439514]: /usr/share/libdrm/amdgpu.ids: No such file or directory
audit[439514]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=439514 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff04b67ec7f code=0x50000
last line repeated 30 times
polkitd[2541]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action io.snapcraft.snapd.manage for unix-process:436463:7036735 [snap install superproductivity] (owned by unix-user:mkungla)
sudo[436513]:  mkungla : TTY=pts/8 ; PWD=/home/mkungla ; USER=root ; COMMAND=/usr/bin/snap install superproductivity
snapd[436367]: api_snaps.go:424: Installing snap "superproductivity" revision unset
systemd[1]: Mounting var-lib-snapd-snap-superproductivity-1830.mount - Mount unit for superproductivity, revision 1830...
systemd[1]: Mounted var-lib-snapd-snap-superproductivity-1830.mount - Mount unit for superproductivity, revision 1830.
systemd[4408]: Started app-gnome-superproductivity_superproductivity-438878.scope - Application launched by gnome-shell.
systemd[4408]: Started snap.superproductivity.superproductivity-bb730160-d0bd-40f9-9bc3-6dcd6e15bdbd.scope.
audit[439046]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=439046 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7fe79ea6b4e7 code=0x50000
audit[439047]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=439047 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7f0254c104e7 code=0x50000
superproductivity_superproductivity.desktop[438878]: Start app...
superproductivity_superproductivity.desktop[438878]: -------------------------------------------------------------
superproductivity_superproductivity.desktop[438878]: Detected legacy snap user data. Copying it over to common...
superproductivity_superproductivity.desktop[438878]: -------------------------------------------------------------
superproductivity_superproductivity.desktop[438878]: oldPath /home/mkungla/snap/superproductivity/current/.config/superProductivity
superproductivity_superproductivity.desktop[438878]: newPath /home/mkungla/snap/superproductivity/common/.config/superProductivity
superproductivity_superproductivity.desktop[438878]: isExistsOldPath true
superproductivity_superproductivity.desktop[438878]: isExistsNewPath false
superproductivity_superproductivity.desktop[438878]: A JavaScript error occurred in the main process
superproductivity_superproductivity.desktop[438878]: Uncaught Exception:
superproductivity_superproductivity.desktop[438878]: Error: ENOENT: no such file or directory, stat '/home/mkungla/snap/superproductivity/current/.config/superProductivity/SingletonCookie'
superproductivity_superproductivity.desktop[438878]:     at statSync (node:fs:1690:3)
superproductivity_superproductivity.desktop[438878]:     at t.statSync (node:electron/js2c/asar_bundle:2:5064)
superproductivity_superproductivity.desktop[438878]:     at /snap/superproductivity/1830/resources/app.asar/electron/start-app.js:97:50
superproductivity_superproductivity.desktop[438878]:     at Array.forEach (<anonymous>)
superproductivity_superproductivity.desktop[438878]:     at copyDir_1 (/snap/superproductivity/1830/resources/app.asar/electron/start-app.js:94:22)
superproductivity_superproductivity.desktop[438878]:     at startApp (/snap/superproductivity/1830/resources/app.asar/electron/start-app.js:109:13)
superproductivity_superproductivity.desktop[438878]:     at Object.<anonymous> (/snap/superproductivity/1830/resources/app.asar/electron/main.js:17:34)
superproductivity_superproductivity.desktop[438878]:     at Module._compile (node:internal/modules/cjs/loader:1271:14)
superproductivity_superproductivity.desktop[438878]:     at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
superproductivity_superproductivity.desktop[438878]:     at Module.load (node:internal/modules/cjs/loader:1126:32)
superproductivity_superproductivity.desktop[439074]: /usr/share/libdrm/amdgpu.ids: No such file or directory
audit[439074]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=439074 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fe7a3adbc7f code=0x50000
last line repeated 30 times
superproductivity_superproductivity.desktop[439074]: Warning: vkCreateInstance: Found no drivers!
superproductivity_superproductivity.desktop[439074]: Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
superproductivity_superproductivity.desktop[439074]:     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:101)
superproductivity_superproductivity.desktop[439074]:     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:493)
superproductivity_superproductivity.desktop[439074]:     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:379)
superproductivity_superproductivity.desktop[439074]:     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:301)
superproductivity_superproductivity.desktop[439074]:     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:556)
systemd[4408]: Started snap.superproductivity.superproductivity-4946792b-d53d-4521-af6b-3256088788f2.scope.

removed config dir and app started after that normally

rm -rf /home/mkungla/snap/superproductivity/current/.config/superProductivity

systemd[4408]: Started app-gnome-superproductivity_superproductivity-443539.scope - Application launched by gnome-shell.
systemd[4408]: Started snap.superproductivity.superproductivity-ff258965-9524-46b3-8464-e1c3bcadbbaf.scope.
audit[443592]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=443592 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7faf9b4d94e7 code=0x50000
audit[443593]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=443593 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7f95c0a174e7 code=0x50000
superproductivity_superproductivity.desktop[443539]: Start app...
superproductivity_superproductivity.desktop[443539]: SNAP: common directory is used
uperproductivity_superproductivity.desktop[443539]: 22:58:54.987 › { enabled: null, showDevTools: false, mode: 'bottom' }
superproductivity_superproductivity.desktop[443539]: Saving backups to /home/mkungla/snap/superproductivity/1830/.config/superProductivity/backups
superproductivity_superproductivity.desktop[443539]: 22:58:55.123 › Saving backups to /home/mkungla/snap/superproductivity/1830/.config/superProductivity/backups
superproductivity_superproductivity.desktop[443622]: /usr/share/libdrm/amdgpu.ids: No such file or directory
audit[443622]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=443622 comm="superproductivi" exe="/snap/superproductivity/1830/superproductivity" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fafa0549c7f code=0x50000
...
superproductivity_superproductivity.desktop[443539]: 22:58:57.464 › No custom styles detected at /home/mkungla/snap/superproductivity/common/.config/superProductivity/styles.css
superproductivity_superproductivity.desktop[443622]: [443622:0201/225857.475813:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
superproductivity_superproductivity.desktop[443622]: [443622:0201/225857.492545:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
superproductivity_superproductivity.desktop[443622]: [443622:0201/225903.635344:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
superproductivity_superproductivity.desktop[443539]: 22:59:23.475 › close, isQuiting: null
Feb 01 22:59:23 gogogo superproductivity_superproductivity.desktop[443539]: 22:59:23.478 › Actions to wait for  [ 'FINISH_DAY_BEFORE_CLOSE_EFFECT' ]
superproductivity_superproductivity.desktop[443539]: 22:59:23.480 › BEFORE_CLOSE_DONE FINISH_DAY_BEFORE_CLOSE_EFFECT []
superproductivity_superproductivity.desktop[443539]: 22:59:23.480 › close, isQuiting: null
superproductivity_superproductivity.desktop[443539]: 22:59:23.481 › close, isQuiting: true
superproductivity_superproductivity.desktop[443539]: 22:59:23.488 › Quit after all windows being closed
systemd[4408]: snap.superproductivity.superproductivity-ff258965-9524-46b3-8464-e1c3bcadbbaf.scope: Consumed 5.013s CPU time.

Finally when i just snap uninstall and install again then it seems to work correcty (so far)

  • I can close and start app without loosing anything, but only odd thing is that when I complete the task and try to close the app then I get unreadable dialog

image

where left btn exits and right goes app home screen

Followed the same steps. It works on Ubuntu 22.04 LTS. Thanks 😃.
The error at 6.

-------------------------------------------------------------
Detected legacy snap user data. Copying it over to common...
-------------------------------------------------------------
oldPath /home/{USER}/snap/superproductivity/current/.config/superProductivity
newPath /home/{USER}/snap/superproductivity/common/.config/superProductivity
isExistsOldPath true
isExistsNewPath false


A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, stat '/home/pallab/snap/superproductivity/current/.config/superProductivity/SingletonCookie'
    at statSync (node:fs:1690:3)
    at t.statSync (node:electron/js2c/asar_bundle:2:5064)
    at /snap/superproductivity/1830/resources/app.asar/electron/start-app.js:97:50
    at Array.forEach (<anonymous>)
    at copyDir_1 (/snap/superproductivity/1830/resources/app.asar/electron/start-app.js:94:22)
    at startApp (/snap/superproductivity/1830/resources/app.asar/electron/start-app.js:109:13)
    at Object.<anonymous> (/snap/superproductivity/1830/resources/app.asar/electron/main.js:17:34)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)

@jessexoc thank you. I did some googleling and my first conclusion was that this is some kind of permission error (as lseek seems to be responsible for accessing files ), when the app writes to the file system, but this shouldn’t happen until it has launched as far as I know at least.

There also was an electron builder bug with the snap some time ago for systems using wayland, but it’s supposed to be fixed for some time…

I’ll give updating electron and electron-builder a shot. There was a (seemingly unrelated) snap bug recently. Hopefully that does something for us…

I haven’t managed to fix this problem with snap. I am not familiar with snap very much and I’ve already spent enough time on it, so I uninstalled app and installed it again from .deb package downloaded from release page. And now it works fine. So the issue can be closed, if it is just my system problem. And thanks for quick help with this problem! And big thanks for this great app!