Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Firefox occasionally stalls
Date: Tue, 21 Mar 2017 20:24:39
Message-Id: 74fec045-a4eb-8198-f52f-69cef96f21e5@gmail.com
In Reply to: Re: [gentoo-user] Firefox occasionally stalls by Alan McKinnon
1 Alan McKinnon wrote:
2 > On 21/03/2017 21:57, Dale wrote:
3 >> Alan McKinnon wrote:
4 >>> This post is rather vague, sorry about that in advance.
5 >>>
6 >>> I've spent much time on this and gotten absolutely nowhere. So I
7 >>> conclude all my thoughts and assumptions are wrong and not worth even
8 >>> sharing (on account of them being so wrong).
9 >>>
10 >>> I have firefox like this:
11 >>>
12 >>> [I] www-client/firefox
13 >>> Available versions: 45.7.0^d 45.8.0^d (~)51.0.1^d {bindist
14 >>> custom-cflags custom-optimization dbus debug ffmpeg +gmp-autoupdate
15 >>> +gstreamer gtk2 hardened hwaccel jack +jemalloc +jemalloc3 +jit neon
16 >>> pgo pulseaudio rust selinux +skia startup-notification system-cairo
17 >>> system-harfbuzz system-icu system-jpeg system-libevent system-libvpx
18 >>> system-sqlite test wifi L10N="ach af an ar as ast az be bg bn-BD bn-IN
19 >>> br bs ca cak cs cy da de dsb el en-GB en-ZA eo es-AR es-CL es-ES es-MX
20 >>> et eu fa ff fi fr fy ga gd gl gn gu he hi hr hsb hu hy id is it ja ka
21 >>> kk km kn ko lij lt lv mai mk ml mr ms nb nl nn or pa pl pt-BR pt-PT rm
22 >>> ro ru si sk sl son sq sr sv ta te th tr uk uz vi xh zh-CN zh-TW"}
23 >>> Installed versions: 51.0.1^d(21:30:20 21/02/2017)(dbus
24 >>> gmp-autoupdate jemalloc pulseaudio skia startup-notification
25 >>> system-harfbuzz system-icu system-jpeg system-libevent system-libvpx
26 >>> system-sqlite wifi -bindist -custom-cflags -custom-optimization -debug
27 >>> -gtk2 -hardened -hwaccel -jack -neon -pgo -rust -selinux -system-cairo
28 >>> -test L10N="en-GB en-ZA -ach -af -an -ar -as -ast -az -bg -bn-BD
29 >>> -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -eo -es-AR -es-CL
30 >>> -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi
31 >>> -hr -hsb -hu -hy -id -is -it -ja -ka -kk -km -kn -ko -lij -lt -lv -mai
32 >>> -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si
33 >>> -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN
34 >>> -zh-TW")
35 >>> Homepage: http://www.mozilla.com/firefox
36 >>> Description: Firefox Web Browser
37 >>>
38 >>> with these plugins:
39 >>> - adblockplus
40 >>> - flashblock
41 >>> - foxyproxy standard
42 >>> - restart browser
43 >>> - user agent switcher
44 >>> - youtube all html5
45 >>>
46 >>> Occasionally, according to no discernable pattern, all my tabs on all
47 >>> some/most/all Firefox windows stop responding. Clicking and scrolling
48 >>> in the content has no effect. Can't open new tabs, can't close tabs,
49 >>> can't switch to existing tabs. Sometimes it affects only one firefox
50 >>> window, sometimes all firefox windows.
51 >>>
52 >>> Imagine if you will that firefox is coded with one global loop that
53 >>> gets user actions and responds, then that loop gets stuck somewhere.
54 >>> The firefox window will not be affected (controlled by KDE), and
55 >>> neither is the X-server but the tabs can all do nothing till the loop
56 >>> unsticks. It's an effect like that.
57 >>>
58 >>> Sometimes it does work after a delay >30s.
59 >>> The sysadmin in me says 30s? Hah, check DNS resolver timeouts.
60 >>> Checked, found nothing unusual. Proxy looks OK, VPN looks OK, Chrome
61 >>> never has this problem so it's firefox specific.
62 >>>
63 >>> Firefox itself is up, it responds correctly to moving around the
64 >>> menus, just can't do some of the actions like open the Addons page
65 >>> (that is regular content in a tab).
66 >>>
67 >>> The issue ALWAYS goes away if I restart firefox, either with the
68 >>> restart addon or Alt-F4 and start from KDE menu. I have "load previous
69 >>> tabs" set to true so those actions are pretty equivalent.
70 >>>
71 >>> DE is Plasma 5, and the problem isn't from a recent upgrade, I've been
72 >>> battling with this for ages through MANY kde and firefox updates.
73 >>>
74 >>> My question:
75 >>> Where the hell do I start to figure out what's really going on?
76 >>> I used up all my sysadmin troubleshooting knowledge and have had to
77 >>> revert back to n00b status on this one.
78 >>>
79 >>
80 >> Mine does something like that too. Sometimes mine will pop up and say
81 >> script so and so is not responding and then have a option to stop or
82 >> continue. What I did that helped some, installed noscript which stops
83 >> all the scripts except the ones I allow. So far, that has helped a
84 >> lot. You may want to try that and see if it helps you any. If it does,
85 >> then it is likely a script hanging up Firefox. If not, uninstall and
86 >> look for something else I guess.
87 >>
88 >> I might add, I've also had this happen on Seamonkey where I have far
89 >> fewer tabs open. Usually it is a site that has a Disqus comment
90 >> section. Those hang a lot especially if there is a lot of comments.
91 >> I've had those type 10, 15 and even 20 seconds behind me and I'm a slow
92 >> typer. I'm typing along and when I look up, it can be a whole sentence
93 >> behind me but it slowly fills in if I wait.
94 >>
95 >> Yours may be a browser problem only but for me, I think it is more
96 >> websites than anything else. Some just suck.
97 >>
98 >> Hope that helps. It's not like you haven't ever helped me before. lol
99 >
100 > Yeah, Disqus is a beast and then some. No Disqus tabs here though.
101 >
102 > That's not to say I don't have something else just as beasty going on
103 >
104 > Sometimes I think we internet ninjas shoot ourselves in the foot
105 > telling folks to use HTML...
106 >
107 >
108
109 I rarely visit sites that have Disqus with Firefox. I might once in a
110 while but not often. If you haven't tried that noscript yet, I'd try
111 it. You can install it, load a few sites you go to a lot, see what
112 happens and then decide if you want to keep noscript or not.
113
114 One thing I found that slowed mine down a lot, news sites that like to
115 reload on occasion. I'm not sure if it is the reload that does it or
116 something else it is doing but the noscript stopped that too.
117
118 You ever tried a new profile with no addons at all and see what it
119 does? That would eliminate a lot right there. I keep a test profile
120 just for testing things. I test some new addon or something and when
121 done, just delete the contents of the directory for a fresh start. This
122 is the command I use.
123
124 firefox %U --ProfileManager --no-remote
125
126 I have different profiles for different uses. Addons vary too.
127
128 Dale
129
130 :-) :-)