Closed Bug 11523 Opened 25 years ago Closed 25 years ago

Crash on minimizing viewer

Categories

(Core Graveyard :: Viewer App, defect, P1)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nisheeth_mozilla, Assigned: rickg)

Details

(Keywords: crash)

Run viewer.
Hit Minimize.
Crash with the following call stack:

NTDLL! 77f76274()
nsDebug::Assertion(char * 0x00466820, char * 0x00466810, char * 0x004667e4, int
1000) line 176 + 13 bytes
nsWindow::Resize(nsWindow * const 0x00f9bc14, int 180, int 0, int -212, int 32,
int 1) line 1000 + 32 bytes
nsBrowserWindow::Layout(int 0, int 0) line 1456
HandleBrowserEvent(nsGUIEvent * 0x0012fa40) line 325
nsWindow::DispatchEvent(nsWindow * const 0x00f96704, nsGUIEvent * 0x0012fa40,
nsEventStatus & nsEventStatus_eIgnore) line 498 + 10 bytes
nsWindow::DispatchWindowEvent(nsGUIEvent * 0x0012fa40) line 523
nsWindow::OnResize(nsRect & {...}) line 3186 + 15 bytes
nsWindow::ProcessMessage(unsigned int 71, unsigned int 0, long 1244340, long *
0x0012fc44) line 2668 + 24 bytes
nsWindow::WindowProc(void * 0x002705e2, unsigned int 71, unsigned int 0, long
1244340) line 571 + 27 bytes

We hit an assert in nsWindow.cpp, line number 1000, that says "Negative width
passed to nsWindow::Resize".  Seems like nsBrowserWindow is passing a negative
width to nsWindow.  CCing Radha.
Component: Build Config → Browser-General
Assignee: briano → don
Priority: P3 → P1
Assignee: don → law
Target Milestone: M10
I don't see this poblem with today's build, so I'm gonna move this out to M10
and see if it shows up again.
Assignee: law → rickg
Component: Browser-General → Viewer App
This bug is still present, but it's a problem with *viewer*, not apprunner.  I'm
switching the component to "Viewer App."
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
The problem was that in nsBrowserWindow we would allow height (in the bounds
rect) to be negative. This is only a band-aid fix because the file is for viewer
only and not worthy of more time.
Adding crash keyword
Keywords: crash
Verfied.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.