ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.29k stars 109 forks source link

ubuntu-app-launch-appids also lists ubuntu_python3.5_0.0 which crashes Unity #700

Open zubozrout opened 6 years ago

zubozrout commented 6 years ago

Hello, if I run ubuntu-app-launch-appids it lists ubuntu_python3.5_0.0 by default and if I try to run that it crashes the whole unity desktop. Maybe python should not be listed at all :), but it should certainly not crash Unity :(. This is probably where it crashes:

** (process:2235): CRITICAL **: Error parsing manifest for package 'ubuntu': ubuntu does not exist in any database for user phablet
terminate called after throwing an instance of 'std::runtime_error'
  what():  Application is not meant to be displayed
()

Here is the whole log, see "2018-06-21:07:20:36.293" where some action upon launching the libertine app starts happening: unity8.log

NeoTheThird commented 6 years ago

Not reproducible here, ubuntu-app-launch-appids only lists valid IDs for me. Is it possible that you installed a third party app that ships a python binary? That will likely expose it to the system. It was necessary on vivid, but is not on xenial, so maybe the developer didn't get that memo. Please post the whole output of ubuntu-app-launch-appids so we can see what third party apps you have installed.

zubozrout commented 6 years ago

@NeoTheThird If I create a completely new Xenial container on MX4 Arale the ubuntu_python3.5_0.0 item is listed with ubuntu-app-launch-appids for me - that is without any custom apps installed.

This is what I get with a (not clean) libertine container: https://paste.ubuntu.com/p/5cbhG8wRmR/ This is what I get if I destroy the container (python is missing): https://paste.ubuntu.com/p/6pPZ7b7j6F/

zubozrout commented 6 years ago

And just to make this complete, here is the output for a completely new and empty container: https://paste.ubuntu.com/p/8Mr5pqgsyd/

padraic7a commented 6 years ago

Device: Frieza Build: 16.04 (2018-09-05)

My Libertine container has a bunch of things installed.

If I run ubuntu-app-launch-appids I do get a entry for xenial_python3.5_0.0 If I try to run that (with ubuntu-app-launch-appids xenial_python3.5_0.0) nothing happens - it certainly doesn't crash unity.

zubozrout commented 6 years ago

Ok, so I've checked it again and it still restarts unity for me. So, the python is still listed:

phablet@ubuntu-phablet:~$ ubuntu-app-launch-appids | grep python
xenial_python2.7_0.0
xenial_python3.5_0.0

and both these commands crash unity: ubuntu-app-launch xenial_python2.7_0.0 ubuntu-app-launch xenial_python3.5_0.0

with this error (same for python 2.7): ** (process:19180): WARNING **: Unable to start app 'xenial_python3.5_0.0': Application is not meant to be displayed

@padraic7a Try ubuntu-app-launch to run the python instead of ubuntu-app-launch-appids (but it may just have been a typo here on GitHub). In any case if you tried it then I suppose it could be device specific - but why or how I have no idea :(.

padraic7a commented 6 years ago

Oh! My mistake, apologies for that.

When I run ubuntu-app-launch xenial_python3.5_0.0 it does crash unity.

Log from terminal: http://paste.ubuntu.com/p/4FGHFwP8YH/ Log from unity8: http://paste.ubuntu.com/p/fv33CV2Qjy Log from Unity8 dash: http://paste.ubuntu.com/p/XJmsf6Ryhq

padraic7a commented 6 years ago

Here's a question:

Was / Is ubuntu-app-launch supposed to be used to run libertine programmes?

Another method is 'libertine-launch', and python can't be run with that. When I try to do so I get this error:

phablet@ubuntu-phablet:~$ libertine-launch -i xenial python3.5_0.0
proot error: 'python3.5_0.0' not found (root = /home/phablet/.cache/libertine-container/xenial/rootfs, cwd = /home/phablet, $PATH=/usr/share/click/preinstalled/.click/users/@all/com.ubuntu.terminal/lib/arm-linux-gnueabihf/bin:/usr/share/click/preinstalled/.click/users/@all/com.ubuntu.terminal:/home/phablet/bin:/home/phablet/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games)
fatal error: see `proot --help`.

I am going off on a tangent now but I wonder if there was due to be a list equivalent to libertine-launch?

padraic7a commented 6 years ago

Back to the point - on my N5 with no libertine apps installed. n5_xenial-python Confirming that ubuntu-app-launch-appids does display xenial_python3.5_0.0.

UniversalSuperBox commented 5 years ago

@padraic7a, do you have a libertine container set up? This may be installed by a base Libertine container.