slow calculator startup

Bug #1797734 reported by SYN-2009 on 2018-10-14
This bug affects 16 people
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)
Ken VanDine

Bug Description

The calculator starts very slowly. It's a tiny program, but it runs like a very big one. In previous versions of Ubuntu, the launch was normal, very fast.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-calculator (not installed)
ProcVersionSignature: Ubuntu 4.15.0-36.39-generic 4.15.18
Uname: Linux 4.15.0-36-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 14 08:40:06 2018
InstallationDate: Installed on 2018-05-06 (160 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
 PATH=(custom, no user)
SourcePackage: gnome-calculator
UpgradeStatus: No upgrade log present (probably fresh install)

SYN-2009 (ra9uek) wrote :
tags: added: snap
description: updated
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-calculator (Ubuntu):
status: New → Confirmed

This is a problem on 18.10 Cosmic Cuttlefish, as well. Embarrassingly slow for a simple application like this.

Cory Bloor (slavik81) wrote :

At least on Ubuntu 18.04, I found that the version from the apt package starts up much faster than the snap version. I ended up swapping them using `sudo snap remove gnome-calculator && sudo apt install gnome-calculator`

Sebastien Bacher (seb128) wrote :

Could those having the issue copy the output of this command in the bug?
$ snap run --trace-exec gnome-calculator

Piotr Dąbrowski (piotrdab) wrote :

Here's my trace. You can see the first launch takes around 2 seconds. Second run takes significantly less time. In both cases `/snap/gnome-calculator/406/bin/desktop-launch` is what takes most of the time during startup.

Quick spec:
- Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
- Corsair Force MP510 M.2 NVMe SSD

Sebastien Bacher (seb128) wrote :

Thanks, the first use is still probablematic indeed. Do you consider 2 seconds as too slow?

Daniel van Vugt (vanvugt) wrote :

On many keyboards there is a dedicated Calculator button so you may expect a fast launch. I use the deb version of gnome-calculator for this reason, and it launches apparently instantly. So I understand if a few seconds seems too long by comparison.

Piotr Dąbrowski (piotrdab) wrote :

2 seconds it way to slow for simple application like this on a system installed 6 days ago on a quite good machine. Firefox opens way faster.

Up until recently I've been using a HDD (instead SSD) for my system drive and back then it took around 6-10 seconds to start the calculator (and it was also slower than Firefox), so I guess 2 vs 6 seconds is just a scale according to how fast is the hardware. I could upload the trace from my low-spec personal laptop (last trace comes from my work PC), where this is also problematic.

Ken VanDine (ken-vandine) wrote :

We can further improve this now that we have layouts. Once the snapcraft gnome extension lands, I'll look into adding that to the extension.

Changed in gnome-calculator (Ubuntu):
assignee: nobody → Ken VanDine (ken-vandine)
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers