Heya, snapd peeps. I installed mqtt-explorer, and on starting it up nothing happened and I thought it was broken, so I started it again; same thing, tried again… until two minutes later, five MQTT Explorer windows appeared on my desktop. Startup time for this appears to be somewhere around two minutes. I mean, gosh. @popey mentioned the new --trace-exec option to snap run, and how it’s important to have data on slow startups so they can be fixed, so here is some.
I snap removed mqtt-explorer so that I’d have a “clean cache”, and then snap installed it.
From a quick try of this, /snap/mqtt-explorer/9/mqtt-explorer seems to measure how long the app has been open, rather than how long it takes to open in the first place. Disregard that line and you’re possible looking at a couple of seconds?
Sadly, no. It’s two minutes before the window shows up.
I have straced it as suggested. I won’t paste the whole log here because it’s 2.5MB. But it seems to be broken up as follows:
20:29:44 log starts
(lots and lots and lots of strace lines, reading files and so on, which is expected)
20:29:46 (two seconds later) the “lots of lines” seem to finish
we then do this, and pretty much nothing but this:
four times a second, every second, for the next two minutes (!)
then
20:31:57 (130 seconds later) lots of lines again, as something seems to be happening
and this is when the window shows up.
So, whatever those two lines above are doing, that’s what’s taking the time. I’m happy to take additional logs and provide them if someone tells me what to run.