[Bug 1616650] Re: snap refresh while command is running may cause issues
Chris, indeed the status for chromium is misleading, since this affects potentially every single snap I'll just remove the chromium task altogether (a year ago or so the profile directory for chromium was moved to a non-versioned place in an attempt to mitigate this problem, hence the status, but it's clearly not good enough). If you haven't done that already, I highly recommend enabling the experimental.refresh-app-awareness configuration flag (https://forum.snapcraft.io/t/wip-refresh-app-awareness/10736). ** No longer affects: chromium-browser (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
I note that chromium-browser is reported as Fix Released. I'm getting this exactly as per https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1913027 (marked duplicate of this) with chromium on hirsute. On attempts to open a new page it's just "Aw, Snap!" and appearing in `dmesg` is [582526.544815] traps: chrome[1187465] trap int3 ip:5600a3f10a9e sp:7fff6b3c48d0 error:0 in chrome[56009f28d000+781d000] [582535.636141] traps: chrome[1187681] trap int3 ip:5600a3f10a9e sp:7fff6b3c48d0 error:0 in chrome[56009f28d000+781d000] [582539.122134] traps: chrome[1187717] trap int3 ip:5600a3f10a9e sp:7fff6b3c48d0 error:0 in chrome[56009f28d000+781d000] [582580.221715] traps: chrome[1187796] trap int3 ip:5600a3f10a9e sp:7fff6b3c48d0 error:0 in chrome[56009f28d000+781d000] [582649.806733] traps: chrome[1187857] trap int3 ip:5600a3f10a9e sp:7fff6b3c48d0 error:0 in chrome[56009f28d000+781d000] (one line per attempt) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
** Changed in: chromium-browser (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
This issue is related to it and probably both could be fixed at the same time. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
I opened https://bugs.launchpad.net/ubuntu/+source/chromium- browser/+bug/1887804 to address the fact that chromium-browser-snap is not following XDG base directory specification and that breaks backing up the snap's configuration and wiping it's cache properly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
This way each application has to be specifically modified to use $SNAP_USER_COMMON instead of $HOME? Why not let the applications keep using $HOME but add an option to snapcraft.yaml that would specify what exactly to set $HOME to, with options like “real home”, “versioned snap directory”, “common snap directory”? (So none of the REALHOME=$(getent passwd $(id -u) | cut -d ':' -f 6) nonsense.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
I'm working using $SNAP_USER_COMMON to store chromium profiles, to mitigate the issue. ** Changed in: chromium-browser (Ubuntu) Status: Confirmed => In Progress ** Changed in: chromium-browser (Ubuntu) Assignee: (unassigned) => Olivier Tilloy (osomon) ** Changed in: chromium-browser (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
This is still an issue. The notification is a nice rub of salt in the wound, but doesn't fix the issue. Absolutely inane, I hope whoever decided to turn chromium-browser gets a kernel panic when they're updating their system. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
Suggestion: If there is an update, don't just update, show a notification if the app is running. After the user presses yes or something, the app closes (or they close it), the update happens and once it is finished you can open your app again. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
this has become quite a nightmare. for all many years my workflow with chromium browser was to have regularly two-digit number of tabs open for a VERY LONG time, basically the browser was closed only when kernel update required a reboot. now my workflow has changed drastically: a couple of times per day i anxiously check "menu|settings|passwords" to see if the list of saved passwords is empty or not, since afaik there is no other way to detect this problem (continuing to use the browser also started to crash it recently). then i save all the open tabs in a special backup folder of my bookmarks since the "restore open tabs" on restart restores them to some outdated state that existed at the time of the snap refresh and are basically useless. then i pin the tabs i have always pinned. as you can see this is hugely annoying and i would never use chromium from snap except that i don't have this choice anymore. imho this is a very severe regression and i am starting to think about switching to firefox instead. the 7 day thing is, sorry to say, not really a solution. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
I have the exact problem with Chromium that Olivier described in #7. I see this issue as it affects Chromium especially important in April 2020 for two reasons: 1. With the global pandemic and the rise of working from home, a stable and reliable browser is more important than ever. 2. Ubuntu 20.04 has been released. This is the first LTS with Chromium as a snap. The number of people running into this issue will greatly increase. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
Zygmunt mentioned to me on IRC a few days ago that he is working on snapctl APIs for checking and getting information about updates, which he hopes will be available in a few weeks' time. This would allow snaps such as chromium to integrate nicely with available updates and prompt the user *before* they are automatically installed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
@osomon No, as already said, refresh-app-awareness doesn't work as a solution. I still get unannounced data loss. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1616650] Re: snap refresh while command is running may cause issues
On Mon, Apr 06, 2020 at 06:04:27PM -, Steve Langasek wrote: > On Mon, Apr 06, 2020 at 04:11:03PM -, Olivier Tilloy wrote: > > > Why is the chromium snap using per-version state directories? I think > > > fixing that would be much more important in terms of usability. > > > That's because the file format for the profile directory can change with > > new versions, and is not guaranteed to be backward-compatible. Reverting > > to an old revision shouldn't leave users with an unusable profile > > directory. > > As a user, that is far less important to me than the fact that *every single > time* there is a snap refresh, Google Meet stops working, I have to restart > Chromium, it reports that Chromium did not shut down cleanly, and part of my > session state has been lost with no chance to preserve it. > > I think the state should all be moved to the common dir until you have a way > to handle the rollback case without making the *upgrade* case terrible. +1 to having the state moved into a common directory. Does the file format for the profile directory change between minor releases? Even if so, it isn't any different to users using the .deb and reverting or downgrading. Google Chrome users download in either .deb or .rpm. Thinking more about it, experimental.refresh-app-awareness, if configurable, will likely just force users to disable automatatic refreshes completely. Which means no updates for other snaps installed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: chromium-browser (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1616650] Re: snap refresh while command is running may cause issues
On Mon, Apr 06, 2020 at 04:11:03PM -, Olivier Tilloy wrote: > > Why is the chromium snap using per-version state directories? I think > > fixing that would be much more important in terms of usability. > That's because the file format for the profile directory can change with > new versions, and is not guaranteed to be backward-compatible. Reverting > to an old revision shouldn't leave users with an unusable profile > directory. As a user, that is far less important to me than the fact that *every single time* there is a snap refresh, Google Meet stops working, I have to restart Chromium, it reports that Chromium did not shut down cleanly, and part of my session state has been lost with no chance to preserve it. I think the state should all be moved to the common dir until you have a way to handle the rollback case without making the *upgrade* case terrible. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
> Why is the chromium snap using per-version state directories? I think > fixing that would be much more important in terms of usability. That's because the file format for the profile directory can change with new versions, and is not guaranteed to be backward-compatible. Reverting to an old revision shouldn't leave users with an unusable profile directory. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1616650] Re: snap refresh while command is running may cause issues
On Mon, Apr 06, 2020 at 12:43:20PM -, Olivier Tilloy wrote: > No, there is a much better (albeit not perfect) solution: enable > experimental.refresh-app-awareness, so automatic refreshes will be held > for a maximum of 7 days. So closing chromium (or any other affected > snap) and applying updates is needed only once a week. That's really not a satisfactory solution. I don't restart my browser weekly unless I'm forced to, it doesn't matter if this happens one day or seven days after the new snap has become available on the channel. Why is the chromium snap using per-version state directories? I think fixing that would be much more important in terms of usability. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
No, there is a much better (albeit not perfect) solution: enable experimental.refresh-app-awareness, so automatic refreshes will be held for a maximum of 7 days. So closing chromium (or any other affected snap) and applying updates is needed only once a week. Hopefully this will become configurable, or a notification system will be implemented for snaps to alert the user that a restart is needed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
Solution(?): Check for snap updates when you start the PC and every 6 hours I guess. If chromium is updated, restart the system. Be careful, new tabs won't reappear or save as bookmarks, so you should restart and not have to deal with it. Of course, this bug needs more attention than it currently has by the developers. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
Some options: - add option to disable automated snap refreshes. - allow configuring the forced refresh of 7 days. - have a channel for chromium that updates less frequently. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1616650] Re: snap refresh while command is running may cause issues
Enabled the "refresh-app-awareness", still, without warning Chromium suddenly stops recording history, keeping state and sessions. Incredibly annoying and causes unavoidable data loss. It's is frankly inane to roll out new snaps when it has been known for FOUR. YEARS. that there's a major bug that causes data loss. ** Also affects: chromium-browser (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616650 Title: snap refresh while command is running may cause issues To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1616650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs