pop-os / shop

Pop!_Shop
GNU General Public License v3.0
92 stars 19 forks source link

Segmentation fault when attempting to uninstall VIM (ubuntu-minimal dependency) #353

Closed KloudKoder closed 2 years ago

KloudKoder commented 2 years ago

Distribution (run cat /etc/os-release):

22.04

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

VIM (text editor)

Issue/Bug Description:

PopShop unexpectedly terminates if you try to uninstall.

Steps to reproduce (if you know):

Open PopShop. Go to Installed. Scroll down until you see VIM. Click Uninstall. In the middle of the process, PopShop just closes.

Expected behavior:

(Obvious)

Other Notes:

linuxgnuru commented 2 years ago

Which version of vim was installed; the flatpak or deb package?

linuxgnuru commented 2 years ago

if you installed it via popshop then you installed the flatpak version. Could you start a terminal and run the following command and then start pop shop and try uninstalling vim and then if / when it crashes are there any errors outputted?

journalctl -f -b -t io.elementary.appcenter

KloudKoder commented 2 years ago

@linuxgnuru "Which version of vim was installed" -- It was preinstalled. I would rather this were not the case, which is why I was attempting to scrape it off my harddrive. There are plenty of other examples where PopOS should just leave it to the user to install. At most, maybe pop up a dialog box during OS installation that invites users to install certain commonly used apps if they want to.

When I run your jounalctl command, it spits out a few package names as PopShop starts. Then during the attempted VIM uninstall, it outputs nothing, as though the crash is due to a PopShop memory leak or something.

Can you try on your end?

jacobgkau commented 2 years ago

vim is preinstalled as a basic dependency of ubuntu-minimal and that is unlikely to change:

jacob@serw12:~$ aptitude why vim
i   ubuntu-minimal Depends    vim-tiny                                        
i A vim-tiny       Depends    vim-common (= 2:8.2.3995-1ubuntu2)              
i A vim-common     Recommends vim | vim-gtk3 | vim-athena | vim-nox | vim-tiny

I can recreate the crash, though, and that should not be happening.

jacobgkau commented 2 years ago

I wonder if this could be related to https://github.com/pop-os/shop/issues/341; it seems the shop is crashing in situations where it should be displaying an error message about apt dependencies.

prophet6250 commented 2 years ago

I wonder if this could be related to #341; it seems the shop is crashing in situations where it should be displaying an error message about apt dependencies.

I think we should blame Linus Tech Tips for this move from System76 xD Instead of helping the user out and letting them know what's wrong, just shut the app down and prevent the user from doing anything remotely dangerous. Treading on Apple like behavior right here...

By the way, I'm also facing similar issues #358; I've attached the debug output which clearly shows Pop Shop is forcefully closing down whenever there's a dependency issue with adding/removing packages

merriam commented 2 years ago

Adding to what @prophet6250 commented, the sudden shut down is a bit chilling.

I ran across this trying to uninstall the preinstalled IBus Table, an input driver which may or may not be required by Gnome. As I don't work with east asian languages, I wanted to uninstall it and PopShop promptly crashed.