Closed Bug 1783965 Opened 3 years ago Closed 2 years ago

Firefox hangs when copying text

Categories

(Core :: Disability Access APIs, defect)

Firefox 103
defect

Tracking

()

RESOLVED DUPLICATE of bug 1774285

People

(Reporter: ericchen1248, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

Steps to reproduce:

Copy a text, either in web page or in extension (tested bitwarden extension)

Actual results:

Occasionally completely hangs/unresponsive, can only be shutdown through task manager

Expected results:

Copy text to clipboard normally.

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Product: Firefox → WebExtensions
Product: WebExtensions → Firefox

Was not a a WebExtension component, bitwarden was only mentioned to show occurrence in nonwebpage events.

Happens when bitwarden was removed as well.

Component: Untriaged → DOM: Copy & Paste and Drag & Drop
Product: Firefox → Core

Hi reporter,
Did you encounter this problem on particular websites? How big the data was, if you have ideas?

Flags: needinfo?(ericchen1248)

No particular website.
I haven't been copying any large amount of texts. First noticed it when logging in and copying verification codes from emails.

Text sizes range from few characters (verification codes) to maybe 10 lines of text (code from stackoverflow)

Doesn't happen every time, but often enough to notice occurrence.

Flags: needinfo?(ericchen1248)

Did this issue start to happen in Fx103 to you?
If you've got a chance, can you please see if running on trouble shooting mode makes a difference? It'd also very appreciated that when you see the issue next time, capture a profiler for helping the further analysis.

Flags: needinfo?(ericchen1248)
Summary: Firefox crash when copying text → Firefox hangs when copying text

(In reply to Hsin-Yi Tsai (Fx104 REO) [:hsinyi] from comment #5)

Did this issue start to happen in Fx103 to you?
If you've got a chance, can you please see if running on trouble shooting mode makes a difference? It'd also very appreciated that when you see the issue next time, capture a profiler for helping the further analysis.

FWIW I didn't recall I see this issue recently. I also tried to copy a long text file, which worked without problems.

It started occurring in Fx103. However it doesn't always happen. Maybe once out of a couple hundred copies? In fact, I've only had it happen twice since reporting.

And due to that, I have no idea if trouble shooting mode makes a difference, as it isn't a consistent bug.

I am also unable to run profiler, as Fx completely freezes up and crashes when it happens.

Flags: needinfo?(ericchen1248)

(In reply to ericchen1248 from comment #7)

I am also unable to run profiler, as Fx completely freezes up and crashes when it happens.

Is there any crash report in about:crashes? If any, It would be helpful if you could submit them and provide the link or report ID. Thanks!

Flags: needinfo?(ericchen1248)

There was one 188b182b-61b4-45a6-90d9-1d5d51293513

Not sure if that is one from this issue, the date is from a while ago, (7/28)

For additional info, the crashes that happen don't show the popup by Firefox.

Exact details:
Copy some text, firefox is unresponsive for several minutes. Right click task bar close isn't able to close it.
I then close it either by clicking a few times to cause Windows to show the "Application not responding" popup, or close it through task manager.

On restart, Firefox shows the tab "Previous session not correctly closed" with the option to restore the session.

Flags: needinfo?(ericchen1248)

I also have been seeing this on windows. On both stable win11 and a insider beta (downgraded thinking windows was causing this as it appeared around a new flight). From my experience it happens about once a day if I'm doing actual work (more copy+paste). Another detail that may or may not be helpful is the hang duration seems relative to the length of the text copied. I typically don't see a prompt come up about 40% of the time firefox will recover and about 60% of the time I have to kill it via task manager. Some of the hangs are recorded by windows but don't have any additional information.

Generally, the way how we debug Firefox hangs is by crash reports, however I don't see corresponding report for 188b182b-61b4-45a6-90d9-1d5d51293513, can you make sure it's submitted ericchen1248?

Jack, do you have a crash report that we can look at?

Or if you can provide a sample text that caused the problem, I can try to reproduce it.

Thanks!

Severity: -- → S2
Flags: needinfo?(jackjrabbit)
Flags: needinfo?(ericchen1248)

I don't have any crashes recorded but I did just reinstall, if one happens I'll report back with it. As for reproducing, It seems to be any text, one element that may be relevant is media is playing often when it occurs [youtube or twitch so far] (strangely the media decode/play keeps working).

Flags: needinfo?(jackjrabbit)

Apologies, I'm not sure where I got that string from. This should be the correct one
bp-a1f054e8-f34e-42df-a4f3-32af50220816

Jack's situation seems almost exactly like mine, I am also on Windows 11 Insider. If I have youtube running in the background I can also still hear the audio. Though I have not noticed it hanging longer for large texts.

Flags: needinfo?(ericchen1248)

Hmm, this is weird, that id is different to the link in the viewer.

Here's the link just in case.
https://crash-stats.mozilla.org/report/index/a1f054e8-f34e-42df-a4f3-32af50220816

It was acting up a bit more today, so I decided to try my luck and may have managed to capture two less aggressive case of it freezing (only froze for around 1~2 seconds or so).

https://share.firefox.dev/3AESO5a
This one should be scattered through, happened about 3 times, around or a bit less than 1 second.
This one I was trying to copy random text off of https://profiler.firefox.com/docs/#/./guide-getting-started

https://share.firefox.dev/3PzxuC8
This one it happened in the last 6 seconds ish of the recording, and froze for around 2 seconds.
This one I was trying to copy random text off of a google search.

Had a freeze for at least 5 minutes before I gave up and opened up edge to keep working earlier as well, but I was no able to profile it, but the text I was trying to capture was "4066614370" from google's calculator when you type "a + b" into the search bar. So doesn't look particularly like hang time correlates to size of text.

Managed to get another hang.

This whole period is almost completely the hang. Hope this helps
https://share.firefox.dev/3caSCBd.

Was copying out of an extension this time.

https://share.firefox.dev/3caSCBd

This looks like a hang in uiautomationcore, which is used by windows accessibility features.

Component: DOM: Copy & Paste and Drag & Drop → Disability Access APIs

This sounds like bug 1774285. Windows 11 Insider Beta has a bug in the Windows clipboard service which causes problems here. This is apparently fixed in the dev channel, but clearly that fix hasn't rolled out to beta yet. See bug 1774285 comment 36 for a workaround suggested by Microsoft.

I'm closing this as a duplicate given the reporter is running Windows Insider.

Jack, I see in comment 10 that you are also experiencing this on Windows 11 stable. If you can confirm that, that would suggest you're seeing a different issue. If so, please file a separate bug. Thanks.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.