Bug 18009

Summary: Firefox chokes when selecting text from large files in Cauldron
Product: Mageia Reporter: Barry Jackson <zen25000>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fri, marja11, nic, olav, pkg-bugs, thierry.vignaud
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: firefox-45.0.1-3.mga6 CVE:
Status comment:

Description Barry Jackson 2016-03-15 13:55:15 CET
Description of problem:
When attempting to select text from a large text file displayed in Firefox e.g.
http://pkgsubmit.mageia.org/uploads/done/cauldron/core/release/20160315100714.tv.duvel.37717/grub2-2.02-0.git10270.3.mga6/build.0.20160315100943.log
Firefox takes 100% of one core (4 core machine) and becomes so unresponsive that it is impossible to copy the text.

The same exercise in Mageia 5 works without a problem.
firefox-45.0-4.mga6

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Marja Van Waes 2016-03-18 08:53:12 CET
Can't reproduce with firefox-45.0.1-1.mga6

Does that version work better for you, too?

Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 2 Barry Jackson 2016-03-23 12:26:07 CET
No - just the same. firefox-45.0.1-3.mga6
Fully updated cauldron.

Source RPM: firefox-45.0-4.mga6 => firefox-45.0.1-3.mga6

Comment 3 Marja Van Waes 2016-03-25 09:30:04 CET
I don't manage to get firefox to behave unresponsive, but when selecting all (instead of a small part) of the text in your example
http://pkgsubmit.mageia.org/uploads/done/cauldron/core/release/20160315100714.tv.duvel.37717/grub2-2.02-0.git10270.3.mga6/build.0.20160315100943.log
and trying to paste it in vim, that doesn't work well because (i assume) the clipboard can't handle that. I don't see anything odd about Firefox with top.
(Of course, grabbing the file with wget and opening it with vim works perfect!)

How many lines of the file did you select?

CC'ing all packagers collectively, because FF doesn't have a maintainer, maybe one of them can reproduce the issue

Keywords: NEEDINFO => (none)
Status: NEW => UNCONFIRMED
CC: (none) => pkg-bugs
Ever confirmed: 1 => 0

Comment 4 Barry Jackson 2016-03-26 00:35:08 CET
I am trying to select 5 lines - the 'wrote:' lines at the end of a build to get the rpm file names for an advisory.

Clicking anywhere on the page causes one core to instantly jump to 100% and mouse clicks are then unresponsive for around 15 seconds.

Doing the same in Mageia5 using the same user and /home folder, so the same account and settings works perfectly with no delays or issues.

I would test this in Cauldron with a new user, but I have yet to find a way to log in to a graphical plasma session with any but the default user as only one user is ever available in the sddm login dialog, and any typed-in user name always fails auth.

Starting Firefox in safe mode with addons disabled makes no difference which is not surprising as I don't really use any addons other than greasemonkey and adblock.
Comment 5 Nic Baxter 2016-03-27 08:13:27 CEST
I can't reproduce this either in vbox. I first tried with lightdm and xfce then with sddm and plasma. It just worked. I did have some issues with the plasma desktop freezing and then I added a new user and logged in as them in sddm and the desktop was fine.

CC: (none) => nic

Comment 6 Marja Van Waes 2016-03-28 11:18:50 CEST
@ Barry

Do you see anything odd in a konsole after starting FF from cli and selecting text?

Does FF-beta work better? Or upstream FF?
Comment 7 Barry Jackson 2016-05-23 23:43:26 CEST
(In reply to Marja van Waes from comment #6)
> @ Barry
> 
> Do you see anything odd in a konsole after starting FF from cli and
> selecting text?
> 
No nothing. It's like wading through treacle trying to select text at the end of a large text file.
I just repeated the same exercise in Mga5 and in Cauldron which was to copy a section of the failed build log for python-scipy. In Mga5 I can click-drag across the text to select it and the selected text highlights instantly.
In Cauldron it takes around 5 seconds for any highlight to appear.

I use the same FF profile in Cauldron as in Mga5 (same home).
I will test a new user.

> Does FF-beta work better? Or upstream FF?
Not tried them yet.
Comment 8 Barry Jackson 2016-05-24 00:05:33 CEST
Using a new user sync'd to my FF account works fine.

Renaming ~/.mozilla in my normal user makes no difference :\
Comment 9 Charles Edwards 2016-05-24 00:15:39 CEST
I have firefox-nightly from upstream on up to date cauldron and I do not see this issue.

I just copied the full text of Beowulf (Old English version) using click and drag
and pasted it in leafpad.
It took no time, and there was no lag or increase in CPU usage.
Comment 10 Barry Jackson 2016-05-24 00:28:52 CEST
It has to be something related to my user, however I have now re-named both:
~\.mozilla and ~/.cache/mozilla with no change, any ideas?

A new user is fine. It's knowing what in my existing user is causing this.
Odd thing is that with my existing user in Mga5 (same /home folder) the issue does not exist.
Comment 11 Barry Jackson 2016-05-24 00:36:22 CEST
I just booted into a totally different Cauldron installation again using the same /home and I see exactly the same issue.
Comment 12 Morgan Leijström 2016-05-24 08:49:20 CEST
Maybe a variant of this choking on large text:

When i go to http://ftp.acc.umu.se/mirror/mageia/distrib/cauldron/x86_64/media/core/ Firefox use one core fully.   Then after some seconds there is a pop up saying there is a problem with script 
  chrome://global/content/bindings/browser.xml:318

Whatever I answer to that dialog i need to forcefully shut down firefox.
When i restart firefox i can have it restore all windows and hurry to close that tab before it hangs.

You who have problem on large text, do you also see the same problem i describe?

Page works OK in chromium.

Cauldron current 64bit, Firefox 45.1.0-3.mga6

The test cases in #0 and #3 above are gone, but if you have other examples i can try.

Ever confirmed: 0 => 1
Status: UNCONFIRMED => NEW
CC: (none) => fri

Comment 13 Morgan Leijström 2016-05-24 09:53:46 CEST
IMO this bug is not severe enough to be critical.
It seem to only happen for few people on few pages, and there are other browsers that work in those situations.

Severity: critical => normal

Comment 14 Marja Van Waes 2016-05-26 09:28:16 CEST
(In reply to Barry Jackson from comment #10)
> It has to be something related to my user, however I have now re-named both:
> ~\.mozilla and ~/.cache/mozilla with no change, any ideas?
> 
> A new user is fine. It's knowing what in my existing user is causing this.
> Odd thing is that with my existing user in Mga5 (same /home folder) the
> issue does not exist.

Does it make a difference which DE you use, with your existing user?

Maybe it has something to do with gtk+3.0, with a default being overridden or not?
Comment 15 Marja Van Waes 2016-05-26 09:30:05 CEST
(In reply to Marja van Waes from comment #14)
> (In reply to Barry Jackson from comment #10)
> > It has to be something related to my user, however I have now re-named both:
> > ~\.mozilla and ~/.cache/mozilla with no change, any ideas?
> > 
> > A new user is fine. It's knowing what in my existing user is causing this.
> > Odd thing is that with my existing user in Mga5 (same /home folder) the
> > issue does not exist.
> 
> Does it make a difference which DE you use, with your existing user?
> 
> Maybe it has something to do with gtk+3.0, with a default being overridden
> or not?

CC'ing Thierry and Olav, because they'll know whether this suggestion makes any sense at all.

CC: (none) => olav, thierry.vignaud

Comment 16 Thierry Vignaud 2016-05-26 10:17:01 CEST
Firefox always had issues with very big pages.
Listing eg core/relese from any mirror will make firefox to hung for quite some time. This happens for years
Comment 17 Marja Van Waes 2016-05-26 10:24:32 CEST
(In reply to Thierry Vignaud from comment #16)
> Firefox always had issues with very big pages.
> Listing eg core/relese from any mirror will make firefox to hung for quite
> some time. This happens for years

Sorry for the bad summary.

Barjac doesn't have the problem with FF choking when selecting 5 lines (see comment 4 ) in Mga5 or with a new cauldron user. A not-new user with new .mozilla and new .cache/mozilla, but otherwise old home, still has the issue

Summary: Firefox chokes on large text files in Cauldron => Firefox chokes when selecting 5 lines from large text files in Cauldron

Barry Jackson 2016-05-31 00:50:43 CEST

Summary: Firefox chokes when selecting 5 lines from large text files in Cauldron => Firefox chokes when selecting text from large files in Cauldron

Comment 18 Barry Jackson 2016-07-28 23:10:02 CEST
Yes there is no issue at all in a new user. I am in a new user now and it is almost instant.

However if I try to copy the "Wrote:..." lines from the end of this page below in my normal user it is impossible due to about 20 second lag when highlighting the text.
http://mtf.no-ip.co.uk/pub/linux/barjac/distrib/cauldron/x86_64/log/gnuradio-3.7.9.3-1.mga6.src.rpm/build.0.20160726114825.log

Any ideas where the bottleneck may be?
Comment 19 Marja Van Waes 2017-01-10 12:59:49 CET
(In reply to Barry Jackson from comment #18)
> Yes there is no issue at all in a new user. I am in a new user now and it is
> almost instant.
> 
> However if I try to copy the "Wrote:..." lines from the end of this page
> below in my normal user it is impossible due to about 20 second lag when
> highlighting the text.
> http://mtf.no-ip.co.uk/pub/linux/barjac/distrib/cauldron/x86_64/log/gnuradio-
> 3.7.9.3-1.mga6.src.rpm/build.0.20160726114825.log
> 
> Any ideas where the bottleneck may be?

somewhere in your .mozilla ... maybe an add-on or so?

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 20 Marja Van Waes 2017-07-02 22:55:43 CEST
(In reply to Marja van Waes from comment #19)
> (In reply to Barry Jackson from comment #18)
> > Yes there is no issue at all in a new user. I am in a new user now and it is
> > almost instant.
> > 
> > However if I try to copy the "Wrote:..." lines from the end of this page
> > below in my normal user it is impossible due to about 20 second lag when
> > highlighting the text.
> > http://mtf.no-ip.co.uk/pub/linux/barjac/distrib/cauldron/x86_64/log/gnuradio-
> > 3.7.9.3-1.mga6.src.rpm/build.0.20160726114825.log
> > 
> > Any ideas where the bottleneck may be?
> 
> somewhere in your .mozilla ... maybe an add-on or so?

Did you ever find out what caused it, Barry?

Keywords: (none) => NEEDINFO

Comment 21 Barry Jackson 2017-07-03 01:12:09 CEST
Hi Marja,
No, I never found the cause, but I have just repeated the above test (the file is still on my server) and it seems totally fixed.
Text selection is now instant.
I am using the same Cauldron install which has been updated daily for months, with the same FF profile, so this has been fixed by some update.

Closing then :)

Resolution: (none) => FIXED
Status: UNCONFIRMED => RESOLVED