Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line breaking dosen't terminate - goes inside a infinite loop. #2944

Open
LalehB opened this issue Jul 28, 2014 · 0 comments
Open

Line breaking dosen't terminate - goes inside a infinite loop. #2944

LalehB opened this issue Jul 28, 2014 · 0 comments

Comments

@LalehB
Copy link
Contributor

@LalehB LalehB commented Jul 28, 2014

Servo encounter an infinite loop while doing layout for this webpage: "http://www.time.ir/"
and as a result the power usage and CPU usage goes up very high.
Here is the RUST_LOG from this command (repeats again and again):

DEBUG:layout::inline: LineBreaker: entering float collision avoider!
DEBUG:layout::inline: LineBreaker: Trying to place first fragment of line 73913
DEBUG:layout::inline: LineBreaker: fragment size: Au(au=17160 px=286)×Au(au=1040 px=17.333333), splittable: true
DEBUG:layout::inline: LineBreaker: found position for line: Rect(Au(au=43740 px=729)×Au(au=1080 px=18) at (Au(au=0 px=0),Au(au=0 px=0))) using placement_info: floats::PlacementInfo{size: geom::size::Size2D<util::geometry::Au>{width: util::geometry::Au(0i32), height: util::geometry::Au(1040i32)}, ceiling: util::geometry::Au(0i32), max_width: util::geometry::Au(56640i32), kind: FloatLeft}
DEBUG:layout::inline: LineBreaker: case=fragment fits
DEBUG:layout::inline: LineBreaker: case=adding fragment collides vertically with floats: breaking line
DEBUG:layout::inline: LineBreaker: Fragment wasn't appended, because line 73913 was full.
DEBUG:layout::inline: LineBreaker: Flushing line 73913: inline::Line{range: util::range::Range<inline::LineIndices>{begin: inline::LineIndices{fragment_index: inline::FragmentIndex(0), char_index: gfx::text::glyph::CharIndex(0)}, length: inline::LineIndices{fragment_index: inline::FragmentIndex(0), char_index: gfx::text::glyph::CharIndex(0)}}, bounds: geom::rect::Rect<util::geometry::Au>{origin: geom::point::Point2D<util::geometry::Au>{x: util::geometry::Au(0i32), y: util::geometry::Au(0i32)}, size: geom::size::Size2D<util::geometry::Au>{width: util::geometry::Au(0i32), height: util::geometry::Au(0i32)}}, green_zone: geom::size::Size2D<util::geometry::Au>{width: util::geometry::Au(43740i32), height: util::geometry::Au(1080i32)}}
DEBUG:layout::inline: LineBreaker: Saving information for flushed line 73913.
DEBUG:layout::inline: LineBreaker: Working with fragment from work list: b4620053832
DEBUG:layout::inline: LineBreaker: Trying to place first fragment of line 73914
DEBUG:layout::inline: LineBreaker: fragment size: Au(au=17160 px=286)×Au(au=1040 px=17.333333), splittable: true
DEBUG:layout::inline: LineBreaker: found position for line: Rect(Au(au=43740 px=729)×Au(au=1080 px=18) at (Au(au=0 px=0),Au(au=0 px=0))) using placement_info: floats::PlacementInfo{size: geom::size::Size2D<util::geometry::Au>{width: util::geometry::Au(0i32), height: util::geometry::Au(1040i32)}, ceiling: util::geometry::Au(0i32), max_width: util::geometry::Au(56640i32), kind: FloatLeft}
DEBUG:layout::inline: LineBreaker: case=fragment fits
DEBUG:layout::inline: LineBreaker: Trying to append fragment to line 73914 (fragment size: Au(au=17160 px=286)×Au(au=1040 px=17.333333), green zone: Au(au=43740 px=729)×Au(au=1080 px=18)): (ScannedTextFragment  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.