Closed Bug 80921 Opened 24 years ago Closed 24 years ago

crash in optimized "nsPresShell.cpp" during printing...

Categories

(Core :: Printing: Output, defect)

Sun
Solaris
defect
Not set
critical

Tracking

()

VERIFIED WORKSFORME
mozilla1.0.1

People

(Reporter: roland.mainz, Assigned: dcone)

References

()

Details

(Keywords: crash)

Mozilla5 2001-05-14-latest-trunk build with Sun Workshop 6 Update 2 EarlyAccess 2 (http://access1.sun.com/fortedevprod/) on Solaris 7/SPARC via onfigure --with-xprint --enable-mathml --enable-svg --enable-xsl --enable-bidi --with-extensions --disable-ldap --enable-optimize --enable-nspr-autoconf; gmake crashes when attepming to print the example URL (http://www.tecchannel.de/hardware/696/7.html): -- snip -- ###!!! ASSERTION: not a percent value: 'mUnit == eStyleUnit_Percent', file ../../../../dist/include/nsStyleCoord.h, line 159 ###!!! Break: at file ../../../../dist/include/nsStyleCoord.h, line 159 ###!!! ASSERTION: not a percent value: 'mUnit == eStyleUnit_Percent', file ../../../../dist/include/nsStyleCoord.h, line 159 ###!!! Break: at file ../../../../dist/include/nsStyleCoord.h, line 159 Enabling Quirk StyleSheet Document http://www.tecchannel.de/hardware/696/7.html loaded successfully WARNING: dependent window created without a parent, file ../../../../../src/2001-05-14-latest-trunk/mozilla/xpfe/bootstrap/nsWindowCreator.cpp, line 94 WEBSHELL+ = 9 t@1 (l@7) signal ILL (illegal opcode) in (unknown) at 0x3a8eb4 0x003a8eb4: unimp 0x381c98 Current function is ns_if_addref<nsIViewManager*> (optimized) 1130 } (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where current thread: t@1 [1] 0x3a8eb4(0xd8f6f8, 0x0, 0xd8f6f8, 0xff25d09c, 0xfdf261ac, 0xfdfa20c4), at 0x3a8eb3 =>[2] ns_if_addref<nsIViewManager*>(expr = ???) (optimized), at 0xfc1927e0 (line ~1130) in "nsISupportsUtils.h" [3] PresShell::GetViewManager(this = ???, aResult = ???) (optimized), at 0xfc17fa50 (line ~1748) in "nsPresShell.cpp" [4] ReflowEvent::HandleEvent(this = ???) (optimized), at 0xfc18f64c (line ~5626) in "nsPresShell.cpp" [5] HandlePLEvent(aEvent = ???) (optimized), at 0xfc18a18c (line ~5634) in "nsPresShell.cpp" [6] PL_HandleEvent(self = ???) (optimized), at 0xff240e48 (line ~588) in "plevent.c" [7] PL_ProcessPendingEvents(self = ???) (optimized), at 0xff240c90 (line ~518) in "plevent.c" [8] nsEventQueueImpl::ProcessPendingEvents(this = ???) (optimized), at 0xff242f88 (line ~374) in "nsEventQueue.cpp" [9] nsAppShell::Spindown(this = ???) (optimized), at 0xfdf260e4 (line ~329) in "nsAppShell.cpp" [10] nsXULWindow::ShowModal(this = ???) (optimized), at 0xfe01a134 (line ~280) in "nsXULWindow.cpp" [11] nsWebShellWindow::ShowModal(this = ???) (optimized), at 0xfe03023c (line ~1084) in "nsWebShellWindow.cpp" [12] nsContentTreeOwner::ShowAsModal(this = ???) (optimized), at 0xfe015e48 (line ~392) in "nsContentTreeOwner.cpp" [13] nsWindowWatcher::OpenWindowJS(this = ???, aParent = ???, aUrl = ???, aName = ???, aFeatures = ???, aDialog = ???, argc = ???, argv = ???, _retval = ???) (optimized), at 0xfe292274 (line ~695) in "nsWindowWatcher.cpp" [14] nsWindowWatcher::OpenWindow(this = ???, aParent = ???, aUrl = ???, aName = ???, aFeatures = ???, aArguments = ???, _retval = ???) (optimized), at 0xfe291050 (line ~435) in "nsWindowWatcher.cpp" [15] nsDeviceContextSpecGTK::Init(this = ???, aQuiet = ???) (optimized), at 0xfd369684 (line ~185) in "nsDeviceContextSpecG.cpp" [16] nsDeviceContextSpecFactoryGTK::CreateDeviceContextSpec(this = ???, aWidget = ???, aNewSpec = ???, aQuiet = ???) (optimized), at 0xfd368f00 (line ~76) in "nsDeviceContextSpecFactoryG.cpp" [17] DocumentViewerImpl::Print(this = ???, aSilent = ???, aFile = ???, aPrintListener = ???) (optimized), at 0xfcc5a920 (line ~4322) in "nsDocumentViewer.cpp" [18] GlobalWindowImpl::Print(this = ???) (optimized), at 0xfd13da38 (line ~1815) in "nsGlobalWindow.cpp" [19] XPTC_InvokeByIndex(0x580404, 0x45, 0x0, 0xffbecf68, 0x581c68, 0x8000fc00), at 0xff274e80 [20] XPCWrappedNative::CallMethod(ccx = CLASS, mode = ???) (optimized), at 0xfe0dc5c4 (line ~1834) in "xpcwrappednative.cpp" [21] XPC_WN_CallMethod(cx = ???, obj = ???, argc = ???, argv = ???, vp = ???) (optimized), at 0xfe0e75a4 (line ~1242) in "xpcwrappednativejsops.cpp" [22] js_Invoke(cx = ???, argc = ???, flags = ???) (optimized), at 0xff0c4cb8 (line ~813) in "jsinterp.c" [23] js_Interpret(cx = ???, result = ???) (optimized), at 0xff0d078c (line ~2708) in "jsinterp.c" [24] js_Invoke(cx = ???, argc = ???, flags = ???) (optimized), at 0xff0c4d2c (line ~830) in "jsinterp.c" [25] js_InternalInvoke(cx = ???, obj = ???, fval = ???, flags = ???, argc = ???, argv = ???, rval = ???) (optimized), at 0xff0c4f90 (line ~902) in "jsinterp.c" [26] JS_CallFunctionValue(cx = ???, obj = ???, fval = ???, argc = ???, argv = ???, rval = ???) (optimized), at 0xff09d738 (line ~3342) in "jsapi.c" [27] nsJSContext::CallEventHandler(this = ???, aTarget = ???, aHandler = ???, argc = ???, argv = ???, aBoolResult = ???, aReverseReturnResult = ???) (optimized), at 0xfd12c1f8 (line ~932) in "nsJSEnvironment.cpp" [28] nsJSEventListener::HandleEvent(this = ???, aEvent = ???) (optimized), at 0xfd182750 (line ~138) in "nsJSEventListener.cpp" [29] nsEventListenerManager::HandleEventSubType(this = ???, aListenerStruct = ???, aDOMEvent = ???, aCurrentTarget = ???, aSubType = ???, aPhaseFlags = ???) (optimized), at 0xfc96c778 (line ~1148) in "nsEventListenerManager.cpp" [30] nsEventListenerManager::HandleEvent(this = ???, aPresContext = ???, aEvent = ???, aDOMEvent = ???, aCurrentTarget = ???, aFlags = ???, aEventStatus = ???) (optimized), at 0xfc96ec38 (line ~2068) in "nsEventListenerManager.cpp" [31] nsXULElement::HandleDOMEvent(this = ???, aPresContext = ???, aEvent = ???, aDOMEvent = ???, aFlags = ???, aEventStatus = ???) (optimized), at 0xfcb30ee0 (line ~3696) in "nsXULElement.cpp" [32] PresShell::HandleDOMEventWithTarget(this = ???, aTargetContent = ???, aEvent = ???, aStatus = ???) (optimized), at 0xfc18a074 (line ~5559) in "nsPresShell.cpp" [33] nsMenuFrame::Execute(this = ???) (optimized), at 0xfc2f78b0 (line ~1417) in "nsMenuFrame.cpp" [34] nsMenuFrame::HandleEvent(this = ???, aPresContext = ???, aEvent = ???, aEventStatus = ???) (optimized), at 0xfc2f4184 (line ~397) in "nsMenuFrame.cpp" [35] PresShell::HandleEventInternal(this = ???, aEvent = ???, aView = ???, aFlags = ???, aStatus = ???) (optimized), at 0xfc189f58 (line ~5533) in "nsPresShell.cpp" [36] PresShell::HandleEvent(this = ???, aView = ???, aEvent = ???, aEventStatus = ???, aForceHandle = ???, aHandled = ???) (optimized), at 0xfc189b20 (line ~5472) in "nsPresShell.cpp" [37] nsView::HandleEvent(this = ???, event = ???, aEventFlags = ???, aStatus = ???, aForceHandle = ???, aHandled = ???) (optimized), at 0xfc58e9c0 (line ~364) in "nsView.cpp" [38] nsView::HandleEvent(this = ???, event = ???, aEventFlags = ???, aStatus = ???, aForceHandle = ???, aHandled = ???) (optimized), at 0xfc58e92c (line ~348) in "nsView.cpp" [39] nsView::HandleEvent(this = ???, event = ???, aEventFlags = ???, aStatus = ???, aForceHandle = ???, aHandled = ???) (optimized), at 0xfc58e92c (line ~348) in "nsView.cpp" [40] nsView::HandleEvent(this = ???, event = ???, aEventFlags = ???, aStatus = ???, aForceHandle = ???, aHandled = ???) (optimized), at 0xfc58e92c (line ~348) in "nsView.cpp" [41] nsViewManager::DispatchEvent(this = ???, aEvent = ???, aStatus = ???) (optimized), at 0xfc59be90 (line ~2048) in "nsViewManager.cpp" [42] HandleEvent(aEvent = ???) (optimized), at 0xfc58dd44 (line ~67) in "nsView.cpp" [43] nsWidget::DispatchEvent(this = ???, aEvent = ???, aStatus = ???) (optimized), at 0xfdf40478 (line ~1488) in "nsWidget.cpp" [44] nsWidget::DispatchWindowEvent(this = ???, event = ???) (optimized), at 0xfdf400dc (line ~1379) in "nsWidget.cpp" [45] nsWidget::DispatchMouseEvent(this = ???, aEvent = STRUCT) (optimized), at 0xfdf40558 (line ~1515) in "nsWidget.cpp" [46] nsWidget::OnButtonReleaseSignal(this = ???, aGdkButtonEvent = ???) (optimized), at 0xfdf41658 (line ~2064) in "nsWidget.cpp" [47] nsWindow::HandleGDKEvent(this = ???, event = ???) (optimized), at 0xfdf49f8c (line ~1474) in "nsWindow.cpp" [48] dispatch_superwin_event(event = ???, window = ???) (optimized), at 0xfdf35ab8 (line ~1022) in "nsGtkEventHandler.cpp" [49] handle_gdk_event(event = ???, data = ???) (optimized), at 0xfdf35738 (line ~876) in "nsGtkEventHandler.cpp" dbx: warning: can't find file "/home/gisburn/package-builds/gtk+/gtk+-1.2.8/objdir/gdk/gdkevents.lo" dbx: warning: see `help finding-files' [50] gdk_event_dispatch(0x0, 0xffbeeec8, 0x0, 0x0, 0x0, 0xffbeee30), at 0xfda41470 dbx: warning: can't find file "/home/gisburn/package-builds/glib/glib-1.2.8/objdir/gmain.lo" [51] g_main_dispatch(0xffbeeec8, 0x160778, 0x1, 0x2464f0, 0x0, 0x0), at 0xfd9b6dc8 [52] g_main_iterate(0x1, 0x1, 0xfe1914ec, 0xfdf26148, 0xff3df650, 0x19), at 0xfd9b7bcc [53] g_main_run(0x246538, 0x246538, 0xff24320c, 0x5, 0x11c0c0, 0x0), at 0xfd9b7f64 dbx: warning: can't find file "/home/gisburn/package-builds/gtk+/gtk+-1.2.8/objdir/gtk/gtkmain.lo" [54] gtk_main(0x11c0c0, 0xff245760, 0x0, 0x80004000, 0x0, 0xfdf9bd44), at 0xfdcd60a0 [55] nsAppShell::Run(this = ???) (optimized), at 0xfdf26148 (line ~365) in "nsAppShell.cpp" [56] nsAppShellService::Run(this = ???) (optimized), at 0xfe0284ec (line ~417) in "nsAppShellService.cpp" [57] main1(argc = ???, argv = ???, nativeApp = ???) (optimized), at 0x1662c (line ~1020) in "nsAppRunner.cpp" [58] main(argc = ???, argv = ???) (optimized), at 0x17084 (line ~1320) in "nsAppRunner.cpp" -- snip -- May be a compiler issue... ;-(
Workaround: Compile nsPressShell.cpp without optimisation. timeless: Can you check whether Sun Workshop 5/gcc on SPARC have the same problem, please ?
Over to Printing.
Assignee: asa → dcone
Severity: major → critical
Component: Browser-General → Printing
Keywords: crash
QA Contact: doronr → sujay
Target Milestone: --- → mozilla1.0
The "not a percent value" assertions are being taken care of in bug 88172.
Depends on: 88172
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
I am not seeing this issue anymore, even if I build with -enable-optimize="-dalign -xO4 -xtarget=generic -xbuiltin=%all -xlibmil". We can mark this one as "WorksForMe" ... :-)
marking works for me based on above comment.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
verified.
Status: RESOLVED → VERIFIED
Gisburn: FYI I tried building Mozilla trunk using XLib, then I tried to print http://www.tecchannel.de/hardware/696/7.html, the browser did not crash, but nothing happened on printer. It is the snip --- snip --- WARNING: DropTimeout proceeding without context., file nsGlobalWindow.cpp, line 4003 nsWidget::~nsWidget() of toplevel: 77 widgets still exist. WEBSHELL- = 13 rv = SetupPrintContext(aSpec) XpuGetPrinter: looking for 'tdcps@:5' XpuGetPrinter2: probing display ':5' for 'tdcps' XpuCheckExtension: XpQueryVersion ':5.0' 1 0 XpuCheckSupported: XpGetOneAttribute(content-orientations-supported) returned 'portrait landscape ' XpuCheckSupported: probing 'portrait'=='portrait' XpSetContext(mPDisplay, mPContext) XpuGetOneLongAttribute: 'default-printer-resolution' got '300' XpuGetOneLongAttribute: result 300 xxlib_find_handle: 'xprint' entry 0 xxlib_register_handle: reusing entry 'xprint' 699a08 ###!!! ASSERTION: no window in frame tree: 'nsnull != window', file nsFrame.cpp, line 2062 ###!!! Break: at file nsFrame.cpp, line 2062 ###!!! ASSERTION: no window in frame tree: 'nsnull != window', file nsFrame.cpp, line 2062 ###!!! Break: at file nsFrame.cpp, line 2062 ###!!! ASSERTION: no window in frame tree: 'nsnull != window', file nsFrame.cpp, line 2062 ###!!! Break: at file nsFrame.cpp, line 2062 ###!!! ASSERTION: inherit bit with cached data makes no sense: 'ruleNode->mStyleData.GetStyleData(aSID) == nsnull', file nsRuleNode.cpp, line 1394 ###!!! Break: at file nsRuleNode.cpp, line 1394 ###!!! ASSERTION: inherit bit with cached data makes no sense: 'ruleNode->mStyleData.GetStyleData(aSID) == nsnull', file nsRuleNode.cpp, line 1394 ###!!! Break: at file nsRuleNode.cpp, line 1394 XpuCheckSupported: XpGetOneAttribute(job-attributes-supported) returned 'job-name job-owner notification-profile xp-spooler-command-options ' XpuCheckSupported: probing 'job-name'=='job-name' XpStartJob(mPDisplay, XPSpool) XpuWaitForPrintNotify(mPDisplay, XPStartJobNotify) ###!!! ASSERTION: inherit bit with cached data makes no sense: 'ruleNode->mStyleData.GetStyleData(aSID) == nsnull', file nsRuleNode.cpp, line 1394 ###!!! Break: at file nsRuleNode.cpp, line 1394 ###!!! ASSERTION: inherit bit with cached data makes no sense: 'ruleNode->mStyleData.GetStyleData(aSID) == nsnull', file nsRuleNode.cpp, line 1394 ###!!! Break: at file nsRuleNode.cpp, line 1394 XpEndJob(mPDisplay) XpuWaitForPrintNotify(mPDisplay, XPEndJobNotify) XpDestroyContext(mPDisplay, mPContext) XCloseDisplay(mPDisplay) --- snip end ---
I can print the page (however the has some issues (which are not Xprint specific :-)) on my setup. Could you open a seperate bug for this (Xprint module has it's own component "Printing: Xprint"), please ?
You need to log in before you can comment on or make changes to this bug.