Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

stencil mask overflow. #962

Closed
Closed

Description

@mb12

I've seen this message in Xcode debugger spew sometimes. Not sure if this is a real issue or not.

"stencil mask overflow"

Activity

  1. added
    macOS
    on Mar 11, 2015
  2. mb12 commented on Mar 13, 2015

    @mb12
    Author

    Can you please retag it as iOS? I see this message at times in xcode debugger log when testing with on iPhone 4S running 7.x.

  3. added
    iOS
    and removed
    macOS
    on Mar 14, 2015
  4. ljbade commented on Mar 17, 2015

    @ljbade
    Contributor

    @mb12 when creating an issue can you make sure you include info about exactly where/what platform you are seeing the problem on. This will make it easier for us to correctly tag the issue.

  5. friedbunny commented on Mar 22, 2015

    @friedbunny
    Contributor

    I can get [ERROR] {0}{Map}[OpenGL]: stencil mask overflow on Hybrid style by zooming into hills (~z15-18) with significant contours.

  6. friedbunny commented on Mar 22, 2015

    @friedbunny
    Contributor

    When this happens you'll see zoom levels stacking on top of each other like this:

    ios-simulator-screen-shot-mar-22 -2015 -12 45 32-pm

    And also sometimes long, straight contour-colored lines will flash or, rarely, stay on screen.

  7. jfirebaugh commented on Mar 23, 2015

    @jfirebaugh
    Contributor

    The "zoom levels stacking" is expected behavior and not related to stencil mask overflow. It happens because both raster and vector tiles are being rendered and the VTs are twice as big.

  8. springmeyer commented on May 8, 2015

    @springmeyer
    Contributor

    Seeing this loading satellite layers. The result I see is missing tiles:
    screen shot 2015-05-08 at 10 43 12 am

  9. friedbunny commented on May 8, 2015

    @friedbunny
    Contributor

    @springmeyer I think that satellite issue is #1423, introduced in the last week or so. The stencil overflow may very well be the underlying cause, I don't know, but it has seemed fairly harmless so far.

  10. incanus commented on Jul 8, 2015

    @incanus
    Contributor

    Well, the stencil mask (I believe) is only applicable for vector tiles anyway, since it's related to tessellated drawing. I think we could look higher up the chain and avoid calling into ClipIDGenerator::update() (where this log is found) for raster tiles at all.

  11. incanus commented on Jul 8, 2015

    @incanus
    Contributor

    I'm curious if something this simple will solve it:

    diff --git a/src/mbgl/renderer/painter.cpp b/src/mbgl/renderer/painter.cpp
    index 742572a..58377c7 100644
    --- a/src/mbgl/renderer/painter.cpp
    +++ b/src/mbgl/renderer/painter.cpp
    @@ -211,7 +211,9 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
             // Update all clipping IDs.
             ClipIDGenerator generator;
             for (const auto& source : sources) {
    -            generator.update(source->getLoadedTiles());
    +            if (source->info.type != SourceType::Raster && source->info.type != SourceType::Video) {
    +                generator.update(source->getLoadedTiles());
    +            }
                 source->updateMatrices(projMatrix, state);
             }

    But I'm worried their might be issues when raster is combined with vector. Need to investigate and understand this more.

  12. iceman201 commented on Dec 1, 2015

    @iceman201

    I got this error as well in my swift coding
    [ERROR] {Map}[OpenGL]: stencil mask overflow

  13. RomainQuidet commented on Jan 13, 2016

    @RomainQuidet
    Contributor

    I'm still seeing this message when adding 2 raster layers.

  14. nimrodgat commented on Feb 22, 2016

    @nimrodgat

    I'm seeing this error when setting a camera with pitch:85°, 45° seems to be fine.

  15. 3 remaining items

  16. mikemorris commented on Mar 25, 2016

    @mikemorris
    Contributor

    We've seen intermittent stencil mask overflow errors when rendering in MapMode::Still through the Node.js bindings (v3.0.2) as well, but haven't been able to directly associate them with any specific requests or rendering errors.

  17. brewin commented on Apr 7, 2016

    @brewin
    Contributor

    I believe this was fixed with a recent commit (e7ac0f6, ea32ee7, or related). Using the latest 4.1.0-SNAPSHOT, I'm no longer seeing any stencil mask overflow errors.

  18. added
    Node.js
    on Apr 8, 2016
  19. added this to the milestone on Apr 8, 2016
  20. picciano commented on May 11, 2016

    @picciano

    We've started seeing this error in our app using ios-v3.1.0.

    It's pretty devastating to our navigation app, when it occurs, the route line (polyline) disappears. I could redraw the route line, but the app does not get any notification that this occurred.

  21. alinapaz commented on Oct 6, 2016

    @alinapaz

    @tobrun + @kkaefer clarifying we're seeing this issue with some custom styles as well.

  22. mollymerp commented on Oct 12, 2016

    @mollymerp
    Contributor

    May be related to mapbox/mapbox-gl-js#3354

  23. andrewcar commented on Dec 23, 2016

    @andrewcar

    Is there some way to silence these logs until 4.0 is released in Xcode's settings? Maybe in the scheme environment variables like this?

  24. removed this from the node-v3.1.0 milestone on Mar 15, 2017
  25. added
    Core
    on May 30, 2017
  26. added
    archived
    on Nov 6, 2018
  27. stale commented on Nov 30, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

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

    CoreNode.jsarchivedbugiOSrendering

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions