Closed
Bug 175755
Opened 22 years ago
Closed 22 years ago
GTK native themes crash on Solaris 2.6
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.2final
People
(Reporter: thomas, Assigned: bryner)
References
Details
(Keywords: crash)
Attachments
(2 files, 1 obsolete file)
30.56 KB,
text/plain
|
Details | |
2.13 KB,
patch
|
bryner
:
review+
jag+mozilla
:
superreview+
dbaron
:
approval+
|
Details | Diff | Splinter Review |
On startup the browser crashes immediately after showing the window with the
following errors:
>[leineweb@theoden] ./mozilla
>X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 70 (X_PolyFillRectangle)
> Serial number of failed request: 1899
> Current serial number in output stream: 1918
>X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 70 (X_PolyFillRectangle)
> Serial number of failed request: 1901
> Current serial number in output stream: 1919
>[status 1]
>[leineweb@theoden]
It happens with the first interaction of the user with the window.
This happens on the actual compiled CVS version and the actual nightly build
for Solaris 2.6. I am using gtk-1.2.10.
Doing a search on the nightly builds for solaris-sparc-2.6, I found out, that
the build 2002101422 (directory 2002-10-14-21-trunk) is the last one, which does
not have this error.
The latest nightly (Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2b)
Gecko/20021019, build 2002101922) crashes for me on startup too.
This is solaris 2.6, V1.2.10 of gtk
>X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 66 (X_PolySegment)
> Serial number of failed request: 1321
> Current serial number in output stream: 1336
>X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 66 (X_PolySegment)
> Serial number of failed request: 1323
> Current serial number in output stream: 1337
Reporter | ||
Comment 2•22 years ago
|
||
My further investigations with bonsai (checking for the checkins done these two
days), show me, that the checkin for "Enabling GTK native theme support
(bug 142334)" is the culprit. Undoing the checkin gives me a perfect stable
version of mozilla.
So this is sort of a dupe of bug#164843 and bug#164581 maybe?
Reporter | ||
Comment 4•22 years ago
|
||
As we agree on the culprit -> change the summary
Summary: browser crashes on startup with X error BadMatch → GTK native themes crash on Solaris 2.6
Assignee | ||
Comment 6•22 years ago
|
||
Does anyone have a stack trace and/or talkback report for this crash?
Comment 7•22 years ago
|
||
Might be mixing visual somewhere.
Reporter | ||
Comment 8•22 years ago
|
||
I made a debugging session with a debug-build. The complete transcript is
attached.
Comment 9•22 years ago
|
||
#0 0xeee8a688 in exit () from /usr/lib/libc.so.1
#1 0xef029d98 in _XDefaultError () from /usr/openwin/lib/libX11.so.4
#2 0xecd6b624 in XIMErrorHandler (dpy=0x11c338, event=0xefff9590)
at nsGtkIMEHelper.cpp:1182
#3 0xef01fbcc in _XError () from /usr/openwin/lib/libX11.so.4
#4 0xef011e74 in _XReply () from /usr/openwin/lib/libX11.so.4
#5 0xef016eec in XSync () from /usr/openwin/lib/libX11.so.4
#6 0xef14a91c in gdk_flush () at gdkevents.c:2291
#7 0xed375cd4 in nsNativeThemeGTK::DrawWidgetBackground (this=0x29d6f8,
aContext=0x3988f8, aFrame=0x325b24, aWidgetType=200 '�',
Something to do with XIM?
Comment 10•22 years ago
|
||
Christopher Blizzard wrote:
> Something to do with XIM?
No, I guess XIM only registered an error handler for it's own work.
Comment 11•22 years ago
|
||
That's exactly what I was guessing. We might need to push the error handler for
XIM as well. I didn't even realize that XIM was adding an error handler, for
that matter.
Comment 12•22 years ago
|
||
Christopher Blizzard wrote:
> I didn't even realize that XIM was adding an error handler, for
> that matter.
AFAIK the X font code, X input methods and Xprint use X error handlers.
X clipboard and code which accesses X atoms should use it, too (since access may
be restricted) - but I did not look at that since a long time...
Assignee | ||
Comment 13•22 years ago
|
||
What blizzard says seems likely. I just tested on Solaris 8 and didn't crash, fwiw.
Comment 14•22 years ago
|
||
Brian Ryner wrote:
> What blizzard says seems likely. I just tested on Solaris 8 and didn't crash,
> fwiw
Note that not all Solaris locales have input methods enabled (you can change the
locale under "Options" in the CDE login screen).
For example "en_US" uses no IM while "en_US.UTF-8" has IM enabled (assuming the
XIM-releated packages were installed).
Assignee | ||
Updated•22 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → mozilla1.2final
Assignee | ||
Comment 15•22 years ago
|
||
On Solaris, the widget code (XIM in particular) installs a new error handler
that overrides gdk's error handler. This means that gdk_error_trap_push/pop is
not having any effect. What I've done instead is make a new error handler that
we install during the painting, then restore the old handler when we're done.
Could someone who is seeing this crash please try out this patch?
Reporter | ||
Comment 16•22 years ago
|
||
I have applied the patch to the plain 1.2b source and it does not crash anymore
with debugging disabled and optimization on.
As I had only a sourcetree for the 1.2b release at hand (the compilation time
would have been very long), I could only test with that release. I will do another
test with HEAD.
Reporter | ||
Comment 17•22 years ago
|
||
I have now checked the patch with the trunk. It does not crash anymore.
Comment 18•22 years ago
|
||
Comment on attachment 103940 [details] [diff] [review]
patch
add a comment about why we're using XSetErrorHandler() instead of pop/push and
you've got an r=blizzard
Attachment #103940 -
Flags: review+
Assignee | ||
Comment 19•22 years ago
|
||
Add a comment as blizzard suggested.
Attachment #103940 -
Attachment is obsolete: true
Assignee | ||
Comment 20•22 years ago
|
||
Comment on attachment 104031 [details] [diff] [review]
patch #2
carrying over r=blizzard
Attachment #104031 -
Flags: review+
Comment 21•22 years ago
|
||
Comment on attachment 104031 [details] [diff] [review]
patch #2
sr=jag
Attachment #104031 -
Flags: superreview+
Comment on attachment 104031 [details] [diff] [review]
patch #2
a=dbaron for trunk checkin
Attachment #104031 -
Flags: approval+
Assignee | ||
Comment 23•22 years ago
|
||
Just wanted to note that "#include <gmodule.h>" is bogus and I'm removing it.
Assignee | ||
Comment 24•22 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 25•22 years ago
|
||
*** Bug 175989 has been marked as a duplicate of this bug. ***
Comment 26•22 years ago
|
||
*** Bug 176383 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•