Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Web browsers crash when trying to print.
Date: Sat, 15 Feb 2020 18:01:46
Message-Id: 19e8e5ec-d513-25de-239b-414ff120cff0@gmail.com
In Reply to: Re: [gentoo-user] Web browsers crash when trying to print. by Mick
1 Mick wrote:
2 > On Saturday, 15 February 2020 04:54:21 GMT Dale wrote:
3 >> Howdy,
4 >>
5 >> I first discovered this with Seamonkey. I then tested this with Firefox
6 >> and got the same results. When I go to File and select Print, the print
7 >> dialog window pops up for just a second and then the web browser
8 >> crashes. Both seem to use the same print software. I tried a different
9 >> version of Seamonkey but it does the same. I also tested a fresh
10 >> profile of Seamonkey as well, Firefox also. I don't print from Firefox
11 >> much. Also, if I select Print Preview from the menu, it opens normally
12 >> but as soon as I click print, crash.
13 >>
14 >> I then tried a newer unstable version of cups just in case it would
15 >> help. After that, I opened Kwrite and tried to print. Its print dialog
16 >> opened and waited for me to hit print. LOo did the same. However, both
17 >> of those use a different software or at least they look very different
18 >> to print with.
19 >>
20 >> Usually going back a version or up a version fixes things like this.
21 >> Given that this didn't work in this case, I'm not sure where to go. Two
22 >> versions of Seamonkey and Firefox both crash. A newer version of cups
23 >> and it still crashes. I did a search on BGO and didn't find anything
24 >> except for a fixed version of Chrome which I don't have on here. I
25 >> suspect it uses different software to print anyway. So no help there.
26 >> Forums had a thread that was from 2010. It mentioned a USE flag which
27 >> cups doesn't even have anymore. No solution on the forums.
28 >>
29 >> One other thing that may or may not be related. I did a emerge -e world
30 >> a week or so ago. Before that, I could print fine. The reason I did
31 >> that was because I switched to a new gcc and I just wanted to be sure
32 >> everything was stable. I went from gcc-8 to gcc-9. It may not have
33 >> been needed but it was cold here and I didn't mind the extra heat.
34 >> Plus, it sometimes fixes other quirks I may not even see. Here is the
35 >> info for Seamonkey, Firefox and cups.
36 >>
37 >>
38 >> root@fireball / # emerge -p seamonkey firefox cups
39 >>
40 >> These are the packages that would be merged, in order:
41 >>
42 >> Calculating dependencies... done!
43 >> [ebuild R #] www-client/seamonkey-2.49.9.1_p0::gentoo
44 >> USE="chatzilla dbus force-gtk3 gmp-autoupdate ipc jemalloc roaming
45 >> startup-notification system-harfbuzz system-icu system-jpeg
46 >> system-libevent system-libvpx system-sqlite -calendar -crypt
47 >> -custom-cflags -custom-optimization -debug -jack -minimal (-neon)
48 >> -pulseaudio (-selinux) (-system-cairo) -test -wifi"
49 >> [ebuild R ~] www-client/firefox-72.0.2::gentoo USE="gmp-autoupdate
50 >> screenshot startup-notification system-av1 system-icu system-jpeg
51 >> system-libevent system-sqlite system-webp -bindist -clang -custom-cflags
52 >> -custom-optimization -debug -eme-free -geckodriver -hardened -hwaccel
53 >> -jack -lto -pgo -pulseaudio (-selinux) -system-libvpx -test -wayland
54 >> -wifi" CPU_FLAGS_X86="-avx2"
55 >> [ebuild R ~] net-print/cups-2.3.1::gentoo USE="X dbus pam ssl
56 >> threads zeroconf -acl -debug -kerberos -lprng-compat (-selinux)
57 >> -static-libs -systemd -usb -xinetd" ABI_X86="32 (64) (-x32)" 0 KiB
58 >>
59 >> Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
60 >> root@fireball / #
61 >>
62 >>
63 >> I try to set the safest USE flags I can. I usually follow things I've
64 >> read on this list. If someone thinks changing one will help, I'm
65 >> willing to test it. I can always use my test profile that is blank
66 >> anyway. That way there will be no data loss even in a worst case
67 >> scenario.
68 >>
69 >> This is the gcc-config -l output.
70 >>
71 >>
72 >> root@fireball / # gcc-config -l
73 >> [1] x86_64-pc-linux-gnu-8.3.0
74 >> [2] x86_64-pc-linux-gnu-9.2.0 *
75 >> root@fireball / #
76 >>
77 >>
78 >> If needed, I could also revert back to gcc-8. It takes a while but it
79 >> is doable as a last resort.
80 >>
81 >> I'm not sure if the printing is done within Seamonkey itself or if
82 >> Seamonkey and Firefox use some common external print software. I'd
83 >> think the later since both behave the same way. I'm just not sure.
84 >>
85 >> Any ideas or thoughts??
86 >>
87 >> Thanks.
88 >>
89 >> Dale
90 >>
91 >> :-) :-)
92 > I don't have seamonkey to know what it uses, but if it is sharing much with
93 > the code base of Firefox, then it is probably using GDBus to communicate with
94 > CUPS to print.
95 >
96 > The GUI menu is probably using the Gtk3 widget kit by default, to draw buttons
97 > and what not.
98 >
99 > For a better idea launch seamonkey/firefox using a terminal and see what it
100 > reports when you try to print.
101 >
102
103
104 Good catch.  I forgot that Mozilla stuff uses gtk.  This is what is in
105 the tree.
106
107
108 root@fireball / # equery list -p x11-libs/gtk+ x11-libs/gtk+
109  * Searching for gtk+ in x11-libs ...
110 [IP-] [  ] x11-libs/gtk+-2.24.32-r1:2
111 [-P-] [  ] x11-libs/gtk+-3.24.10:3
112 [-P-] [  ] x11-libs/gtk+-3.24.11:3
113 [IP-] [  ] x11-libs/gtk+-3.24.13:3
114 root@fireball / #
115
116 Since there is only one version for gtk-2, I went back a version on
117 gtk-3, minor 11.  Now I can print.  Now to mask a buggy version of gtk-3. 
118
119 One reason it was important to print, we have had floods here in my
120 area, again this year.  It doesn't affect me but it does my neighbors. 
121 Anyway, I need to print the river data before it goes away.  The best
122 way to do that is to print it to a file.  Thing is, I only get about 36
123 to 48 hours to do that.  Now I got what I need. 
124
125 Thanks much.  This helped not only me but some others as well, including
126 some people I don't even know the names of myself. 
127
128 Dale
129
130 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Web browsers crash when trying to print. Neil Bothwick <neil@××××××××××.uk>