Skip to content

Youtube crashes (index out of bounds: the len is 0 but the index is 0) #26592

Closed

Description

@jdm

A bunch of content on the homepage loads in the 5/20 nightly, then there's a pause before some more content appears immediately followed by a crash.

Activity

  1. added
    I-crash
    on May 21, 2020
  2. jdm commented on May 21, 2020

    @jdm
    MemberAuthor

    Lots of output like this while loading:

    [2020-05-21T03:20:58Z ERROR script::dom::bindings::error] Error at https://www.youtube.com/s/desktop/3d592bbd/htdocs-ytimg-desktop-kevlar-production/jsbin/desktop_polymer_inlined_html_polymer_flags_legacy_browsers_v2.vflset/desktop_polymer_inlined_html_polymer_flags_legacy_browsers_v2.js:8385:480 d.style is undefined
    [2020-05-21T03:20:59Z ERROR script::dom::bindings::error] Error at https://www.youtube.com/s/desktop/3d592bbd/htdocs-ytimg-desktop-kevlar-production/jsbin/desktop_polymer_inlined_html_polymer_flags_legacy_browsers_v2.vflset/desktop_polymer_inlined_html_polymer_flags_legacy_browsers_v2.js:8935:267 this.$ is undefined
    [2020-05-21T03:21:00Z ERROR script::dom::bindings::error] Error at https://www.youtube.com/s/desktop/3d592bbd/htdocs-ytimg-desktop-kevlar-production/jsbin/desktop_polymer_inlined_html_polymer_flags_legacy_browsers_v2.vflset/desktop_polymer_inlined_html_polymer_flags_legacy_browsers_v2.js:8385:480 d.style is undefined
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    [2020-05-21T03:21:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: unknown (can't convert to string)
    
  3. jdm commented on May 21, 2020

    @jdm
    MemberAuthor

    Output from the nightly build is different, curiously enough:

    [2020-05-21T03:49:51Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: cP@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:3056:169
        g.h.setVolume@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:6325:59
        aP@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:3054:201
        TP@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:3120:35
        IR@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:3293:120
        g.LR.prototype.create@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:6593:113
        g.h.sd@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:6017:436
        Oka@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:2808:25
        zS@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:3360:485
        BS@https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js:3364:143
        sj/a.J@https://www.youtube.com/yts/jsbin/www-en_US-vfl4CPyIC/base.js:529:498
        Ia/<@https://www.youtube.com/yts/jsbin/spf-vflKdaZ7t/spf.js:18:477
        q@https://www.youtube.com/yts/jsbin/spf-vflKdaZ7t/spf.js:13:249
        Ia@https://www.youtube.com/yts/jsbin/spf-vflKdaZ7t/spf.js:18:441
        Va@https://www.youtube.com/yts/jsbin/spf-vflKdaZ7t/spf.js:21:335
        l/<@https://www.youtube.com/yts/jsbin/spf-vflKdaZ7t/spf.js:12:134
    
    index out of bounds: the len is 0 but the index is 0 (thread WRRenderBackend#0, at /Users/worker/.cargo/git/checkouts/webrender-c3596abe1cf4f320/01082a9/webrender/src/segment.rs:550)
       0: __ZN60_$LT$servo..backtrace..Print$u20$as$u20$core..fmt..Debug$GT$3fmt17hd44b96bdbc0d24e2E
       1: __ZN4core3fmt5write17h9545e2012c2d2eb4E
       2: __ZN3std2io5Write9write_fmt17h47a505a7805216c3E
       3: __ZN5servo9backtrace5print17hf01bdd61f81acb8bE
       4: __ZN5servo4main28_$u7b$$u7b$closure$u7d$$u7d$17h50992866811705e4E
       5: __ZN3std9panicking20rust_panic_with_hook17he4213098bbe43565E
       6: _rust_begin_unwind
       7: __ZN4core9panicking9panic_fmt17h012074aaeca1e9c0E
       8: __ZN4core9panicking18panic_bounds_check17hf6aed678960a150aE
       9: __ZN9webrender7segment14SegmentBuilder5build17he9f2cba0d5c426aeE
      10: __ZN9webrender10prim_store14PrimitiveStore23prepare_prim_for_render17h9adc45ed7d9ecb9cE
      11: __ZN9webrender10prim_store14PrimitiveStore18prepare_primitives17hefe7170d44718ce7E
      12: __ZN9webrender13frame_builder12FrameBuilder5build17h1dcaf7fe3629e7ffE
      13: __ZN9webrender14render_backend8Document11build_frame17hf4a83b53e05fbe13E
      14: __ZN9webrender14render_backend13RenderBackend15update_document17he1c51624f26c670eE
      15: __ZN9webrender14render_backend13RenderBackend19process_transaction17h33e444010a06973dE
      16: __ZN9webrender14render_backend13RenderBackend3run17h267656565f74055eE
      17: __ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h3d5d64438f0652c0E
      18: __ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17h8ef8f1ba0fc878e0E
      19: __ZN83_$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$9call_once17hecdbb9c30d98a58bE
      20: __ZN3std3sys4unix6thread6Thread3new12thread_start17hf9d1de0ef4f27972E
      21: __pthread_start
    

    However, it's the same panic as #26590.

  4. added
    I-panic
    and removed
    I-crash
    on May 21, 2020
  5. changed the title [-]Youtube crashes[/-] [+]Youtube crashes (index out of bounds: the len is 0 but the index is 0)[/+] on May 21, 2020
  6. atouchet commented on May 21, 2020

    @atouchet
    Contributor

    I just tried loading YouTube and I noticed for some reason it will sometimes load the modern version of the site and other times it will load the legacy version. Not sure why that's happening.

  7. jdm commented on Jun 1, 2020

    @jdm
    MemberAuthor

    This is fixed by the branch in #26590.

  8. self-assigned this
    on Jun 1, 2020
  9. added 11 commits that reference this issue on Jun 2, 2020
    b3af7ac
    bad44af
    5693d3e
    c92251d
    9727003
    1a44277
    8fea4f7
    d8884c9
    c9e5731
    45947f7
    cb4e3cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-webrenderI-panic

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions