Page 1 of 1

Snap apllication refusing to launch

Posted: Thu Mar 02, 2017 7:38 am
by svfilhol
Hi,

Like indicated to install CloudCompare on Ubuntu machine, I used the snap package managment to which I am totally new. I installed it following this command:

Code: Select all

sudo snap install cloudcompare
This installed it without any issue. Logging out and back in has added the path to my system that I could get launcher icons to my desktop. However, the program did not start. Launching it from the terminal with:

Code: Select all

cloudcompare.CloudCompare
it returned:

Code: Select all

snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
Any idea to avoid this refusal by installing CloudCompare through snapd?
Thanks

Re: Snap apllication refusing to launch

Posted: Thu Mar 02, 2017 1:24 pm
by Romain.Janvier
Hello,
Can you paste me the result of

Code: Select all

 snap --version
I think you should update your system with

Code: Select all

sudo apt-get update && sudo apt-get upgrade
Regards,
R.

Re: Snap apllication refusing to launch

Posted: Thu Mar 02, 2017 1:40 pm
by svfilhol
Romain,

So to start, here is my version of snap:

Code: Select all

snap --version
snap       2.22.7
snapd      2.22.7
series     16
linuxmint  18.1
kernel     4.4.0-53-generic
I run the system upgrade, run

Code: Select all

sudo snap remove cloudcompare
, and reinstalled it.

I now obtain the following:

Code: Select all

cloudcompare.CloudCompare 
cannot change profile for the next exec call: No such file or directory
FYI, I am on Mint Cinnamon 18, a derivative of Ubuntu Xenial. This is quite confusing the error has changed.

And if I go to the folder /snap/cloudcompare/1/bin, and run:

Code: Select all

./CloudCompare
./CloudCompare: error while loading shared libraries: libQCC_IO_LIB.so: cannot open shared object file: No such file or directory

Re: Snap apllication refusing to launch

Posted: Fri Mar 03, 2017 8:13 am
by Romain.Janvier
The last issue you describe is normal (the shared library thing) the snap package is done in a way you can't launch binary directly but you need to launch the cloudcompare.CloudCompare command.

for the main issue I think it's Mint related : https://github.com/RocketChat/Rocket.Chat/issues/5458
So please look at the workaround in the link above but I won't fix it, and maybe you can report this upstream (to canonical or Mint distro ?).

Maybe CC is easier to compile from scratch than you think.
Kind regards,
Romain

Re: Snap apllication refusing to launch

Posted: Fri Mar 03, 2017 10:19 am
by svfilhol
Thank you Romain for all the info. I will probably look into getting it from source then.

Re: Snap apllication refusing to launch

Posted: Tue Jul 25, 2017 10:08 am
by Carlos_Palma
Hi All,

First congratulate the developers for a grate and professional software. Thanks for your effort.

I have been user CloudCompare for a long time with grate success.
Now, with a new more powerful computer I am trying to install CC. I have a very similar issue as described in this post, but only related to dependencies:

The installation with snap (I just discover snap ) was correct and ended with CC installed.
The entries were created in the menu for graphics, but they do nothing.
If I type cloudcompare.CloudCompare in a terminal I get:

carlos@Astillero:~$ cloudcompare.CloudCompare
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Could not initialize GLX
Aborted (core dumped)

Dependencies should not be automatically installed with snap?
libgail-3-0 was installed
libgail-3dev was installed
libgail-common had a ! (Now it is upgraded)
libatk-bridge-2-0 installed
libatk-bridge-2-0-dev installed
unity-gtk-module-common installed
libcanberra-gtk-module is installed

I did try to install from source but gave up because of installation of dependencies like liblas (also from source) in an endless chain.(liblas was installed but could not be found by cmake)

My system is Ubuntu 1604

snap is supposed to make life easier for all, but it may be to green yet.
Thanks and any comment will be appreciated.
Carlos.

Re: Snap apllication refusing to launch

Posted: Tue Jul 25, 2017 9:16 pm
by daniel
Sadly I won't be able to help you personally (as I don't know anything about Linux or Snap) and sadly Romain is not available for the next few days I believe.

I find it a bit weird that the Snap package relies on such packages that have nothing to do with CloudCompare... but once again I don't know anything about Snap ;).

And maybe you could ask the one who made the Snap package directly? (https://github.com/mardy).