Raspberry Pi Buster takes 10 minutes to start, mostly in PK11SymKeyStr. Certificate / PKCS related?
Categories
(Thunderbird :: General, defect, P4)
Tracking
(Not tracked)
People
(Reporter: fgould1234, Unassigned)
Details
(Keywords: perf)
Attachments
(3 obsolete files)
User Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36
Steps to reproduce:
Installed thunderbird on RPi4B Raspbian Buster 4.19. Started app from menu list.
Actual results:
The app does something for 10 minutes using 25% CPU. Once window builds, takes minutes to open an email. Same when attempting to reply.
Expected results:
App starts and displays email and when selected allows user to reply or other options without taking minutes to show a window.
Comment 1•4 years ago
|
||
Please run the performance profiler:
- Use Thunderbird 68 from https://www.thunderbird.net/en-US/channel/
- Install profiler add-on - download add-on file from https://github.com/firefox-devtools/Gecko-Profiler-Addon/blob/master/gecko_profiler.xpi?raw=true and then in Tools > add-ons click the gear to install add-on from file
- Follow instructions at https://profiler.firefox.com/ (videos BASED ON FIREFOX at https://profiler.firefox.com/docs/#/./videos-intro )
- Create a profiler URL and post it here.
Reporter | ||
Comment 2•4 years ago
|
||
Output from gecko-profiler console when /etc/environment contains the following:
MOZ_PROFILER_STARTUP=1
MOZ_PROFILER_SHUTDOWN=/home/fgould/Desktop/thunderbird.txt
MOZ_PROFILER_STARTUP_ENTRIES=20000000
Reporter | ||
Comment 3•4 years ago
|
||
Second attempt to load thunderbird with gecko-profiler as temporary addon.
Reporter | ||
Comment 4•4 years ago
|
||
Reporter | ||
Comment 5•4 years ago
|
||
The instructions say to click on Tools > add-ons but I could not find add-ons under the tools option. Because there is an Add-ons option, I selected that and was able to select the gecko-profiler.xpi as a Temporary Add-on. After I was able to enable the gecko-profiler in thunderbird, I captured the console information as the thunderbird-output3.txt. Below is the content of the /etc/environment file. However, a shutdown file was never generated.
MOZ_PROFILER_STARTUP=1
MOZ_PROFILER_SHUTDOWN=/home/fgould/Desktop/thunderbird.txt
MOZ_PROFILER_STARTUP_ENTRIES=20000000
I hope this helps but am available to try different instructions to get the data needed.
Reporter | ||
Comment 6•4 years ago
|
||
(In reply to fgould1234 from comment #2)
Created attachment 9134097 [details]
thunderbird-gecko-output.txtOutput from gecko-profiler console when /etc/environment contains the following:
MOZ_PROFILER_STARTUP=1
MOZ_PROFILER_SHUTDOWN=/home/fgould/Desktop/thunderbird.txt
MOZ_PROFILER_STARTUP_ENTRIES=20000000
(In reply to fgould1234 from comment #5)
The instructions say to click on Tools > add-ons but I could not find add-ons under the tools option. Because there is an Add-ons option, I selected that and was able to select the gecko-profiler.xpi as a Temporary Add-on. After I was able to enable the gecko-profiler in thunderbird, I captured the console information as the thunderbird-output3.txt. Below is the content of the /etc/environment file. However, a shutdown file was never generated.
MOZ_PROFILER_STARTUP=1
MOZ_PROFILER_SHUTDOWN=/home/fgould/Desktop/thunderbird.txt
MOZ_PROFILER_STARTUP_ENTRIES=20000000I hope this helps but am available to try different instructions to get the data needed.
I read further and think I've captured more of what was requested, link below.
Reporter | ||
Comment 7•4 years ago
|
||
I figured out, finally, how to get the profile to load and operate in thunderbird. I was not able to do this with my own account because it locks up and fails to complete the report. This report is from an initial system without any email or accounts. Please let me know if there is more I can provide.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 8•4 years ago
|
||
Sorry for my sloppy cleanup job and extraneous posts. I wanted to close this issue without a solution with Raspbian Buster because my Arch Linux ARM 4.19 works fine with Thunderbird and that solves my problem. For further research, please see the link content below for someone else having problems with Buster.
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=268125&p=1629204
Comment 9•4 years ago
|
||
fgould, Thanks for the excellent detective work.
Ben, what do you make of the profile and https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=268125&p=1629204 ?
I didn't get beyond what I see of 11% related to pk11, and 8% in a promise
Comment 10•4 years ago
|
||
I don't see much beyond what you did... on the native side there seems to be a load of time (25s) spent churning about with vectors of strings, which seem to be PK11SymKeyStr in the end. So maybe something to do with certificates? (all very hand-wavy I know, sorry!)
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment 15•4 years ago
|
||
In 1.5 weeks please try the beta from thunderbird.net/#channel and report results.
Thanks
Reporter | ||
Comment 16•4 years ago
|
||
Can you provide a link to the beta version? I cannot find the link for beta on the many websites. Just came to a dead end.
Comment 17•4 years ago
|
||
Reporter | ||
Comment 18•4 years ago
|
||
When I click on that link, what I see is https://drive.google.com/file/d/1th3FCLeA_qazYQPSsqXfbWEV_XcYnW2T/view?usp=sharing but cannot click any link to download the beta. If I follow the "Please follow these instructions to install Thunderbird" link, it takes me to https://support.mozilla.org/en-US/kb/installing-thunderbird-linux. I don't see any reference to the beta download there.
Comment 19•4 years ago
|
||
Seems the page thinks your system (ARM) is unsupported, and then
<p class="unsupported-download p-links">
Your system doesn't meet the <a href="/en-US/thunderbird/79.0beta/system-requirements/">requirements</a> to run Thunderbird.
</p>
<p class="linux-arm-download mb-8 p-links">
Please follow <a href="https://support.mozilla.org/kb/installing-thunderbird-linux">these instructions</a> to install Thunderbird.
</p>
Sancus, I guess we should still give a download link? Or at least properly show the unsupported text for that case
Comment 20•4 years ago
|
||
Sancus, Is ARM supported? I remember hearing someone say it is. If it is, why would we have to give the unsupported wording?
Comment 21•4 years ago
|
||
fgould, newer instructions https://github.com/thunderbird-conversations/thunderbird-conversations/wiki/Profiling-Conversation's-Performance
You can download the latest beta from http://archive.mozilla.org/pub/thunderbird/releases/80.0b3/
Comment 22•4 years ago
|
||
(In reply to Ben Campbell from comment #10)
I don't see much beyond what you did... on the native side there seems to be a load of time (25s) spent churning about with vectors of strings, which seem to be PK11SymKeyStr in the end. So maybe something to do with certificates? (all very hand-wavy I know, sorry!)
There is also significant activity checking blocklist and amo https://addons-amo.cdn.mozilla.net/amo-cad99cf5ec51b698578c.js
Comment 23•4 years ago
|
||
The website has never considered ARM to be supported. It's news to me that it is. It sounds like the regular Linux builds do work on ARM? I can change the JS.
Updated•4 years ago
|
Reporter | ||
Comment 24•4 years ago
|
||
I do not see a linux arm version at the following link. I tried installing the released version but it would not accept my existing .thunderbird files. Is there a way to import an existing .thunderbird folder?
"You can download the latest beta from http://archive.mozilla.org/pub/thunderbird/releases/80.0b3/"
Comment 25•4 years ago
|
||
As far as I know, we don't build on ARM and have never released on ARM, so if the regular linux builds don't work(which is what I thought originally) then there is no way to install beta or nightly without building it yourself.
Comment 26•4 years ago
|
||
(In reply to Andrei Hajdukewycz [:sancus] from comment #23)
The website has never considered ARM to be supported. It's news to me that it is. It sounds like the regular Linux builds do work on ARM? I can change the JS.
Must be getting these from third parties. I would change the text to say ARM builds are not officially supported, but can be obtained from the distro.
Reporter | ||
Comment 27•4 years ago
|
||
Update: I was able to migrate the .thunderbird folder and it is now running on RPiOS but still takes 5 minutes to load with the same 25% CPU consumption. If this is coming from third party, how do I report this for support? I don't see anything in about nor troubleshooting.
Comment hidden (off-topic) |
Comment 29•4 years ago
|
||
I have doubts that we can do anything, but as next step I'd like to see a profile with version 78 started in safe mode with networking disabled and message retrieval at startup disabled. https://support.mozilla.org/en-US/kb/safe-mode-thunderbird
profile instructions https://github.com/thunderbird-conversations/thunderbird-conversations/wiki/Profiling-Conversation's-Performance
Reporter | ||
Comment 30•4 years ago
|
||
Due to multiple anomalies in Raspios, I have migrated to the latest Exton Arch Linux ARM OS and Thunderbird runs successfully and quickly as one would expect for all operations (i.e. calendar and tasks). I suggest working with the Raspberry Pi Foundation support group to find a solution for their OS.
Comment 31•4 years ago
|
||
Thanks for the update
Description
•