Open Bug 388254 Opened 17 years ago Updated 2 years ago

###!!! ASSERTION: reflow state computed incorrect width: 'reflowState.ComputedWidth() == size.width - reflowState.mComputedBorderPadding.LeftRight()', mozilla/layout/base/nsPresShell.cpp:5978

Categories

(Core :: Layout, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: WeirdAl, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion)

Attachments

(2 files)

Attached file stack trace
Steps to reproduce: (1) Build trunk XULRunner. (2) Download http://downloads.mozdev.org/verbosio/snapshots/branch_20070713_tag_003.tar.gz (3) tar -xzvf branch_20070713_tag_003.tar.gz (4) ./xulrunner (path_to_verbosio_unzipped)/default/application.ini Filed as UNCO because (a) Verbosio is not a mozilla.org product, (b) I am so far the only person working on Verbosio, and thus I haven't gotten independent confirmation.
Flags: blocking1.9?
Keywords: assertion
You should be able to reproduce this using the latest Verbosio snapshot, http://downloads.mozdev.org/verbosio/snapshots/branch_20070713_tag_006.tar.gz . It probably hasn't hit the mirrors yet, though.
Alex, thanks for helping debug this! Looks like this is reflow of a collapsed scrollbar: ScrollbarFrame(scrollbar)(-1)@0xb5d018b0 next=0xb5d02274 {6000,0,0,6000} [state=808c1001] [content=0x8d41278] [sc=0xb5d017f0]< (gdb) p reflowState.ComputedWidth() $3 = 0 (gdb) p size.width $4 = 0 (gdb) p reflowState.mComputedBorderPadding.LeftRight() $5 = 120 We probably shouldn't be reflowing this at all, if possible. If we must, we'll have to change the assertion, since the rect is zero-width, and the computed width can't be negative. The former would probably also fix bug 388255.... Not sure how to do that well, esp. if the scrollbar becomes uncollapsed sometime.
Blocks: 388255
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Depends on: 397367
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Attached file full gdb stacktrace
I am getting something very similar during startup of seamonkey/browser with cuurent cvs HEAD build on i686 linux. Also see the 2 stacktraces (mis)attached by me to bug #369945.
Please stop posting that on every bug with this assertion. We know why this bug with scrollbars in particular is happening. The question is how to fix it.
Flags: wanted1.9-
Flags: wanted1.9+
Flags: wanted-next+
Bug 514784 has a testcase and might be the same as this bug.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: