Skip to content

Panic unwrapping rw_data.root_flow in LayoutTask::tick_animations #7115

Closed

Description

@dzbarsky

When running tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.htm:

frame #6: 0x00000001006caee9 servo`layout::option::Option<T>::unwrap(self=Option<&layout::flow_ref::FlowRef> at 0x0000000118e03668) + 89 at macros.rs:20
frame #7: 0x00000001003ffa66 servo`layout::layout_task::LayoutTask::tick_animations(self=0x0000000118e055a0, rw_data=0x0000000119cf2398) + 214 at layout_task.rs:1290
frame #8: 0x00000001003ff939 servo`layout::animation::tick_all_animations(layout_task=0x0000000118e055a0, rw_data=0x0000000119cf2398) + 89 at animation.rs:129
frame #9: 0x0000000100628acd servo`layout::layout_task::LayoutTask::tick_all_animations(self=0x0000000118e055a0, possibly_locked_rw_data=0x0000000118e05588) + 157 at layout_task.rs:1273
frame #10: 0x00000001006193d4 servo`layout::layout_task::LayoutTask::handle_request_helper(self=0x0000000118e055a0, request=Msg at 0x0000000118e043c0, possibly_locked_rw_data=0x0000000118e05588) + 1012 at layout_task.rs:574
frame #11: 0x00000001005fed58 servo`layout::layout_task::LayoutTask::handle_request(self=0x0000000118e055a0, possibly_locked_rw_data=0x0000000118e05588) + 1672 at layout_task.rs:473
frame #12: 0x00000001005c915f servo`layout::layout_task::LayoutTask::start(self=LayoutTask at 0x0000000118e055a0) + 271 at layout_task.rs:399

In tick_animations, the line in question is
1289 // Perform an abbreviated style recalc that operates without access to the DOM.
-> 1290 let mut root_flow = (*rw_data.root_flow.as_ref().unwrap()).clone();

Activity

  1. added
    I-panic
    on Aug 10, 2015
  2. paulrouget commented on Aug 12, 2015

    @paulrouget
    Contributor

    Browser.html hits this bug. We use requestAnimationFrame to schedule react rendering.

  3. dzbarsky commented on Aug 12, 2015

    @dzbarsky
    ContributorAuthor

    Note that the test I mentioned isn't currently in the tree, #6880 needs to land first.

  4. Ms2ger commented on Aug 12, 2015

    @Ms2ger
    Contributor
  5. added a commit that references this issue on Aug 14, 2015
    447ef18
  6. added a commit that references this issue on Aug 17, 2015
    5cf7307
  7. added a commit that references this issue on Aug 20, 2015
    575047c
  8. added a commit that references this issue on Aug 20, 2015
    74b2e1b
  9. added a commit that references this issue on Aug 20, 2015
    a516042
  10. added a commit that references this issue on Aug 20, 2015
    8f05447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/uncategorizedI-panic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions