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

App crash on first install sdk 2.6.1

Open
#1,993 2 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
Over a week
Newbie friendliness
18/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java, kotlin
Domain
mobile-dev

Research direction

The crash comes from EGL surface creation in the encoder library: start at SurfaceManager.eglSetup in the encoder module and GlStreamInterface.start, the calls the stack trace shows. Reproducing needs an Android device or emulator where the app is installed fresh and the stream is started, which the reporter's app code does not show. Done would mean a first-install start that no longer throws eglCreateWindowSurface error 12296, confirmed on a device.

Written by the indexing model from the issue text.

Description

Describe the bug
When we install app first time then calling start stream app crashed

error logs -

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=12223, result=-1, data=Intent { (has extras) }} to activity {com.abc.zyx/com.abc.zyx.RecorderEventActivity}: java.lang.RuntimeException: eglCreateWindowSurface. EGL error: 12296
at android.app.ActivityThread.deliverResults(ActivityThread.java:5009)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5050)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7660)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.RuntimeException: eglCreateWindowSurface. EGL error: 12296
at com.pedro.encoder.utils.gl.GlUtil.checkEglError(GlUtil.java:139)
at com.pedro.encoder.input.gl.SurfaceManager.eglSetup(SurfaceManager.java:161)
at com.pedro.encoder.input.gl.SurfaceManager.eglSetup(SurfaceManager.java:171)
at com.pedro.library.view.GlStreamInterface.start(GlStreamInterface.kt:177)
at com.pedro.library.base.StreamBase.startSources(StreamBase.kt:474)
at com.pedro.library.base.StreamBase.startStream(StreamBase.kt:188)
at com.abc.zyx.CustomMultiStream.startStream(CustomMultiStream.kt:149)
at com.abc.zyx.DisplayService.startStreamRtp(DisplayService.kt:282)

Code line -- if (shouldStarEncoder) super.startStream("")

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.