The desktop app fails to launch

Bug report

Environment

  • Platform: Pop!_OS (based on Ubuntu)
  • Platform version: 22.04 LTS
  • App Version: 5.11.9 rev 76

How to reproduce

The desktop app is not launching. This problem started today, after I accepted a number of system and package updates. I’ve rebooted twice, but the problem persists. The System Monitor shows that 6 Inkdrop processes are running when I launch Inkdrop.

Seeing some errors with libcanberra-gtk-module, I followed the suggestion from the troubleshooting page to install some packages that could be missing:

sudo apt-get install libgconf2-4 libcanberra-gtk-module libgnome-keyring0 gnome-keyring

I got errors with the installation of most of those packages, but when I tried libcanberra-gtk-module alone it installed. Still, it didn’t seem to make any difference.

I saw the recent announcement Security Update: Turnstile enabled on the client apps. Please update, but it looks like I was already on the latest version of the 5.11.* series.

I rely on Inkdrop daily. Should I try reverting to an older version? It doesn’t look like a new version was pushed in the last few days.

Thanks!

Here is the runtime log I get when I launch the app from the command line with the --enable-logging option:

run-time log

Gtk-Message: 00:13:14.532: Not loading module “atk-bridge”: The functionality is provided by GTK natively. Please try to not load it.

(inkdrop:37910): Gtk-WARNING **: 00:13:14.574: GTK+ module /snap/inkdrop/76/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 00:13:14.574: Failed to load module “canberra-gtk-module”

(inkdrop:37910): Gtk-WARNING **: 00:13:14.575: GTK+ module /snap/inkdrop/76/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 00:13:14.575: Failed to load module “canberra-gtk-module”
app:info Creating app window +0ms
[37997:0622/001314.685756:WARNING:sandbox/policy/linux/sandbox_linux.cc:404] InitializeSandbox() called with multiple threads in process gpu-process.
app:info Initializing inkdrop app.. +142ms
app:info Starting the main process.. +1ms
app:info axios default config: { proxy: false, httpAgent: undefined, httpsAgent: undefined } +1ms
app:info Starting a session +48ms
(node:37910) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use inkdrop --trace-deprecation ... to show where the warning was created)
(node:37910) UnhandledPromiseRejectionWarning: Error: /snap/inkdrop/76/gnome-platform/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.31' not found (required by /snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar.unpacked/node_modules/leveldown/build/Release/leveldown.node) at process.func [as dlopen] (node:electron/js2c/node_init:2:2617) at Module._extensions..node (node:internal/modules/cjs/loader:1874:18) at Object.func [as .node] (node:electron/js2c/node_init:2:2844) at Module.load (node:internal/modules/cjs/loader:1448:32) at Module._load (node:internal/modules/cjs/loader:1270:12) at c._load (node:electron/js2c/node_init:2:17993) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:244:24) at Module.require (node:internal/modules/cjs/loader:1470:12) at require (node:internal/modules/helpers:147:16) (node:37910) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag –unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) app:info Finished starting the main process +200ms app:info Command line argument: /snap/inkdrop/76/usr/lib/inkdrop/inkdrop +0ms app:info Arguments: /snap/inkdrop/76/usr/lib/inkdrop/inkdrop +0ms app:info Command line argument: --no-sandbox +0ms app:info Arguments: --no-sandbox +0ms app:info Command line argument: --enable-logging +0ms app:info Arguments: --enable-logging +0ms (node:37910) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'localPouch') at handleSessionStatusChange (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/main.js:2:42302) at Emitter.simpleDispatch (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/node_modules/event-kit/dist/emitter.js:64:14) at Emitter.emit (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/node_modules/event-kit/dist/emitter.js:257:28) at h.setStatus (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/main.js:2:9236) at h.init (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/main.js:2:8767) at async xe.start (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/main.js:2:31494) at async Z (/snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/main.js:2:115510) at async /snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/main.js:2:1194673 (node:37910) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag–unhandled-rejections=strict` (see Command-line API | Node.js v26.3.1 Documentation ). (rejection id: 2)
[37910:0622/001315.262988:INFO:CONSOLE:2] “Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘onSync’)”, source: file:///snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/browser-main.js (2)
[37910:0622/001315.263054:INFO:CONSOLE:2] “Uncaught (in promise) TypeError: Cannot destructure property ‘sync’ of ‘this.main.dataStore’ as it is undefined.”, source: file:///snap/inkdrop/76/usr/lib/inkdrop/resources/app.asar/browser-main.js (2)

Hi @Emilio_Mayorga ,

Thanks for the report.

GLIBCXX_3.4.31’ not found

According to this error, your OS doesn’t have GLIBCXX_3.4.31.
What package do you use (deb, snap, or zip package)?

I built the app on Ubuntu 24.04, but it seems that your OS is based on 22.04.
Would it be possible to bump it up to 24.04?

If it’s hard to do it for you now, you can downgrade the app to 5.11.8 for now.

https://dist.inkdrop.app/v5.11.8/inkdrop_5.11.8_amd64.deb

Please note that you can’t log in again from it.
Hope it helps.

Thanks for your quick follow up!

I use the snap package.

I’ve been holding off updating to Pop!_OS 24.04 because it introduced important divergence from Ubuntu 24.04 (use of the new COSMIC Desktop Environment), but I guess I need to deal with this sooner or later.

Maybe my recent system updates removed GLIBCXX_3.4.31? If so, do you think I could just reinstall it?

Maybe my recent system updates removedGLIBCXX_3.4.31? If so, do you think I could just reinstall it?

No, GLIBCXX_3.4.31 is a newer version that’s unavailable in 22.04.
I’ll try building the app again for 22.04. Hold on.

@Emilio_Mayorga Rebuilt the binary for 22.04. Can you please try installing build 77?

Sorry, forgot to force-rebuild the native modules. Please try build 78.

Wow, thank you!!! It worked! My system had already updated the snap package to rev 78 by the time I tried it (US West Coast).

Thanks so much. I still need to upgrade to Ubuntu / Pop!_OS 24.04 soon, but your fix relieves some of the pressure.

1 Like

Glad it worked! Thanks for letting me know. Yeah, v6 is just around the corner and it might not work on 22.04 or older versions, so it’d be nice to upgrade it soon :wink:

1 Like