Open Bug 1623045 Opened 4 years ago Updated 4 years ago

Raspberry Pi Buster takes 10 minutes to start, mostly in PK11SymKeyStr. Certificate / PKCS related?

Categories

(Thunderbird :: General, defect, P4)

Tracking

(Not tracked)

UNCONFIRMED

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.

Please run the performance profiler:

  1. Use Thunderbird 68 from https://www.thunderbird.net/en-US/channel/
  2. 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
  3. Follow instructions at https://profiler.firefox.com/ (videos BASED ON FIREFOX at https://profiler.firefox.com/docs/#/./videos-intro )
  4. Create a profiler URL and post it here.
Flags: needinfo?(fgould1234)
Keywords: perf
Attached file thunderbird-gecko-output.txt (obsolete) —

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

Flags: needinfo?(fgould1234)
Attached file thunderbird-gecko-output2.txt (obsolete) —

Second attempt to load thunderbird with gecko-profiler as temporary addon.

Attached file thunderbird-gecko-output3.txt (obsolete) —

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.

(In reply to fgould1234 from comment #2)

Created attachment 9134097 [details]
thunderbird-gecko-output.txt

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

(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=20000000

I 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.

https://perfht.ml/2WmGcLZ

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.

https://perfht.ml/2QqHjXi

Attachment #9134097 - Attachment is obsolete: true
Attachment #9134098 - Attachment is obsolete: true
Attachment #9134099 - Attachment is obsolete: true

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

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

Flags: needinfo?(benc)

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!)

Flags: needinfo?(benc)

In 1.5 weeks please try the beta from thunderbird.net/#channel and report results.
Thanks

Flags: needinfo?(fgould1234)
Whiteboard: [closeme 2020-08-15]

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.

Flags: needinfo?(fgould1234)

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.

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

Flags: needinfo?(sancus)
Whiteboard: [closeme 2020-08-15]

Sancus, Is ARM supported? I remember hearing someone say it is. If it is, why would we have to give the unsupported wording?

(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

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.

Flags: needinfo?(sancus)
Priority: -- → P4
Summary: Raspberry Pi Buster takes 10 minutes to start → Raspberry Pi Buster takes 10 minutes to start, mostly in PK11SymKeyStr. Certificate / PKCS related?

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/"

Flags: needinfo?(fgould1234)

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.

(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.

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.

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

Flags: needinfo?(fgould1234)
Whiteboard: [closeme 2020-11-10]

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.

Flags: needinfo?(fgould1234)

Thanks for the update

Severity: -- → S3
Component: Mail Window Front End → General
Whiteboard: [closeme 2020-11-10]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: