Electron-builder: Broken snaps on Lubuntu

Created on 8 Jul 2019  路  13Comments  路  Source: electron-userland/electron-builder


  • Version: 21.0.10

  • Updater: 4.1.1

  • Target: snap

Since the new snap template that reduces snap sizes dramatically has been introduced I haven't been able to run snaps produced by electron-builder under Lubuntu, they seem to install correctly, but then launching the app from the terminal exits immediately.


backlog investigate question snap

All 13 comments

Lubuntu version? 32 or 64-bit?

Sorry I forgot to mention this: I'm using Lubuntu 18.04.2, 64 bit.

It seems to be launching correctly in Ubuntu proper, same version, weird.

Just run from Terminal and inspect error output. I am going to investigate this issue this evening (or tomorrow morning).

I see no output at all in Lubuntu.

I cannot reproduce. I suppose it is specific for your app, I can only suggest to debug what's wrong.

You can also try hello-world snap to ensure that it is not your system specific issue: https://drive.google.com/file/d/1RKNTBzzmK2TlG2-nrBz9cuJ-usmkID5H/view?usp=sharing

You can also try hello-world snap to ensure that it is not your system specific issue: drive.google.com/file/d/1RKNTBzzmK2TlG2-nrBz9cuJ-usmkID5H/view?usp=sharing

Is this supposed to do anything? Launching it from the terminal exits immediately for me, launching it from the menu makes the cursor with the spinning wheel show for a bit and nothing happens.

Something is wrong with your system if you don't see hello world.

sudo apt-get update && sudo apt-get upgrade -qq?

I tried that, rebooted, reinstalled the demo snap, but nothing changed.

Is there anything else that you'd like me to try? This is most likely an issue with my installation if this works for you in Lubuntu, even though I haven't done anything strange with it, I just use it every once in a while for testing stuff.

I am not expert, I can suggest you to google it, e.g. see https://askubuntu.com/questions/783979/how-do-i-debug-snaps

If no luck, you can ask help https://forum.snapcraft.io/

You might also want to run the snap with export ELECTRON_ENABLE_STACK_DUMPING=true.

snappy-debug

snappy-debug from develar's response will show if the application tried to load files that do not exist (for instance missing libraries etc., invalid file permissions, some AppArmor rules).

Example from a user where Electron tried to access an App-unrelated path (no idea why)
d3ee62ab239cda0edb4581c195df92b48d6b32a8_2_1380x776

Reference system

Also running a fresh Lubuntu installation (in VirtualBox) might provide a more reproducible scenario or at least gives you a working reference system to compare to.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings