Skip to content

Browsing for a while eventually crashes in IOSurface #6952

Closed

Description

@pcwalton

STR: Start up Servo, browse for a while, click links, etc. You will eventually crash with an IOSurface error. Sometimes tiles get switched around before the crash.

I suspect an IOSurface leak or race.

cc @mrobinson

Activity

  1. added
    I-panic
    on Aug 4, 2015
  2. pcwalton commented on Aug 4, 2015

    @pcwalton
    ContributorAuthor

    Here's another symptom: thread 'PaintWorker' panicked at 'assertion failed: dst.len() >= len_src', src/libcore/slice.rs:1474

  3. pcwalton commented on Aug 4, 2015

    @pcwalton
    ContributorAuthor

    Another symptom:

    Application Specific Information:
    *** CFRelease() called with NULL ***
    
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   com.apple.CoreFoundation        0x00007fff926b8208 CFRelease + 40
    1   servo                           0x00000001105f267d platform::macos::surface::IOSurfaceNativeSurface::bind_to_texture::hf4d373bc962f61ccFcc + 205
    2   servo                           0x00000001105f0143 tiling::TileGrid::create_textures::h27e9169979dec40dMSb + 659
    3   servo                           0x000000010f321a52 rendergl::RenderContext::render_3d_context::h6966608047983215034 + 2194
    
  4. mrobinson commented on Aug 12, 2015

    @mrobinson
    Member

    I'm going to take a look at this one today (sorry for the delay, I was out-of-office). I suspect that this might be caused by attempting to reuse framebuffers on OS X. I'll revert that specific change if so.

  5. mrobinson commented on Aug 13, 2015

    @mrobinson
    Member

    @pcwalton, I'm having trouble reproducing this one. Is there a particular page that produces this error more than others? Are you using GPU rasterizaton or CPU rasterization.

  6. frewsxcv commented on Aug 19, 2015

    @frewsxcv
    Contributor

    More info and a concrete example (with GIF) can be found in #7266

  7. added
    P-mac
    on Aug 19, 2015
  8. mrobinson commented on Aug 19, 2015

    @mrobinson
    Member

    Looks like the issue is that the destination IOSurface of an upload is invalid. During the io-surface-rs upload method, IOSurfaceGetBaseAddress is returning null.

  9. jdm commented on Mar 24, 2020

    @jdm
    Member

    Can't reproduce any more.

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-gfx/compositingI-panicP-mac

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions