mapbox / mapbox/mapbox-maps-android

GL Error when using Snapshotter

Open
#2,482 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Android OS version: 14
- Devices affected: Android Pixel 3a emulator, Samsung SM-A536B
- Maps SDK Version: 11.6.1

## Observed behavior and steps to reproduce

I'm trying to create a snapshot of a map using the Snapshotter class but I'm getting a device error when calling the start function on the Snapshotter object: "device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetStringi:4973 GL error 0x501".

I'm using Ionic and running the Mapbox SDK in a custom made Capacitor plugin.

## Expected behavior

I would expect the Snapshotter to finish and return a bitmap

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Snapshotter.start call described in the issue and reproduce it on the Android 14 emulator or affected Samsung device. Investigate the reported GLESv2 GL error in the custom Capacitor integration and compare the Snapshotter behavior across those environments. Done means Snapshotter completes and returns a bitmap instead of the device error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
computer-graphics, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.