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.

[linux] Overdraw mode crashes with GL_INVALID_OPERATION #5435

Closed

Description

@brunoabinader

Console output:

[ERROR] {mapbox-glfw}[OpenGL]: GL_DEBUG_SOURCE_API GL_DEBUG_TYPE_ERROR 1282 GL_DEBUG_SEVERITY_HIGH - GL_INVALID_OPERATION error generated. <location> is invalid.
terminate called after throwing an instance of 'mbgl::gl::Error'
  what():  glUniformMatrix4fv(location, 1, GL_FALSE, t.data()): Error GL_INVALID_OPERATION - ../../src/mbgl/shader/uniform.cpp:49
Aborted (core dumped)

Problem seems related to the location of uniforms from a shader using two quasi-identical programs. In macOS, it looks like those uniforms locations are the same, but it doesn't seem to be the case on Linux.

Activity

  1. added
    Core
    on Jun 22, 2016
  2. changed the title [-]Overdraw is crashing on Linux[/-] [+][linux] Overdraw mode crashes with GL_INVALID_OPERATION[/+] on Jun 22, 2016
  3. mikemorris commented on Jun 22, 2016

    @mikemorris
    Contributor

    FWIW I was only seeing this error on BUILDTYPE=Debug Linux builds, and not on OS X at all.

  4. brunoabinader commented on Jun 22, 2016

    @brunoabinader
    ContributorAuthor

    @mikemorris yep - macOS GL drivers appears to behave differently from others in that sense.

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

    CoreLinuxbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions