Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Failed to create internal virtual display

Open
#2,070 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

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

Research direction

The payload names no source files, so start from the screen capture path that creates the virtual display for Single App capture, and reproduce the crash by switching from the camera to screen capture in the demo app. The payload includes no stack trace, so first capture the exception and its origin on a device. Done means the switch no longer throws "Failed to create internal virtual display" and the stream keeps running. Expect Android MediaProjection knowledge to be needed.

Written by the indexing model from the issue text.

Description

When I switch from the phone's camera to screen capture, if I select "Single App" in the permissions pop-up and then select the app itself, a "Failed to create internal virtual display" exception occurs.

Below is the modified code I used to reproduce the problem in the demo:

Image Image

I tried using stopPreview before switching, but it didn't work.

Dominant language
Kotlin
Stars
3k
Forks
946
Avg merge
4d 6h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from pedroSG94/RootEncoder

All issues in pedroSG94/RootEncoder

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.