# Text overlay crashed GoCoder Android While streaming

**URL:** <https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156>\
**Category:** Wowza Streaming Engine\
**Created:** [November 7, 2019, 10:30pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156 "2019-11-07T22:30:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pravin\_Shelki](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@Pravin\_Shelki](https://community.wowza.com/u/Pravin_Shelki)\
**Post date:** [November 7, 2019, 10:30pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/1 "2019-11-07T22:30:06Z")

</div>

E/AndroidRuntime: FATAL EXCEPTION: H264Encoder Process: , PID: 6317 java.lang.RuntimeException: draw start: glError 0x501 at com.wowza.gocoder.sdk.api.gles.GlUtil.checkGlError(GlUtil.java:111) at com.wowza.gocoder.sdk.api.gles.Texture2dProgram.draw(Texture2dProgram.java:306) at com.wowza.gocoder.sdk.api.gles.FullFrameRect.drawFrame(FullFrameRect.java:82) at com.wowza.gocoder.sdk.support.render.VideoViewRenderer.onWZVideoFrameRendererDraw(VideoViewRenderer.java:682) at com.wowza.gocoder.sdk.support.broadcast.FrameListenerBroadcaster$1.run(FrameListenerBroadcaster.java:177) at android.os.Handler.handleCallback(Handler.java:836) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:232) at com.wowza.gocoder.sdk.support.encoder.H264Encoder.run(H264Encoder.java:279) at java.lang.Thread.run(Thread.java:761)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 11, 2019, 7:56pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/2 "2019-11-11T19:56:18Z")

</div>

I can provide some resources for you @Pravin Shelki, but we are not able to debug in the forums.

Have you followed the tutorial on **GitHub**?

[https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/blob/master/gocoder-sdk-sample-app/src/main/java/com/wowza/gocoder/sdk/sampleapp/graphics/BitmapOverlayActivity.java](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/blob/master/gocoder-sdk-sample-app/src/main/java/com/wowza/gocoder/sdk/sampleapp/graphics/BitmapOverlayActivity.java)

Also, here is some information on **bitmaps** for you on the _Android SDK_:

[https://www.wowza.com/resources/gocodersdk/docs/api-reference-android/com/wowza/gocoder/sdk/api/android/graphics/package-summary.html](https://www.wowza.com/resources/gocodersdk/docs/api-reference-android/com/wowza/gocoder/sdk/api/android/graphics/package-summary.html)

---

<div class="post-metadata">

**Author:** ![Subramanian\_Raj1](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Subramanian\_Raj1](https://community.wowza.com/u/Subramanian_Raj1)\
**Post date:** [November 18, 2019, 5:08am UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/3 "2019-11-18T05:08:03Z")

</div>

I am also facing the same problem. I had added Image and Text Overlay, streaming with Image Overlay is working fine, when I try to add Text Overlay then application crashes

java.lang.RuntimeException: draw start: glError 0x501 at com.wowza.gocoder.sdk.api.gles.GlUtil.checkGlError(GlUtil.java:111) at com.wowza.gocoder.sdk.api.gles.Texture2dProgram.draw(Texture2dProgram.java:306) at com.wowza.gocoder.sdk.api.gles.FullFrameRect.drawFrame(FullFrameRect.java:82) at com.wowza.gocoder.sdk.support.render.VideoViewRenderer.onWZVideoFrameRendererDraw(VideoViewRenderer.java:682)

---

<div class="post-metadata">

**Author:** ![Subramanian\_Raj1](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Subramanian\_Raj1](https://community.wowza.com/u/Subramanian_Raj1)\
**Post date:** [November 18, 2019, 5:12am UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/4 "2019-11-18T05:12:46Z")

</div>

I followed everything exactly as mentioned in the tutorial, it looks streaming with Text overlay is crashing even with the sample you had provided.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 18, 2019, 5:37pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/5 "2019-11-18T17:37:37Z")

</div>

Sorry to hear that. I will check with the SDK team to have them run a quick test on the sample code @Subramanian Raj. Thanks for letting me know and I’ll respond again as soon as I have an update.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 18, 2019, 5:48pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/6 "2019-11-18T17:48:30Z")

</div>

We were not able to replicate any issues with text overlay on the sample app for most devices, however we were able to reproduce it with the below devices:

oppo f5 w/ Android OS 7.1.1 and MI note 7 pro w/ Android OS 7.1.1

Are you using one of these devices @Subramanian Raj? If not, which are you using? Have you been able to test on any device that is not using OS 9? We are continuing to work on the Android SDK and its compatibility on the large range of OS 9 devices. It is presenting some playback issues on some, but not others.

Whatever details on devices you can share is most appreciated.

---

<div class="post-metadata">

**Author:** ![Subramanian\_Raj1](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Subramanian\_Raj1](https://community.wowza.com/u/Subramanian_Raj1)\
**Post date:** [November 22, 2019, 4:45pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/7 "2019-11-22T16:45:19Z")

</div>

Here I am sending you the screenshot of my application, it is working fine for displaying Multiple text overlays and image overlays. When I press the Stream button it crashes and gives the above error (mentioned in my previous post). When I comment the text overlays and try to stream images alone, at that point I am able to stream, there is no crash or error. When I include the text overlay and press the stream button it is crashing.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 25, 2019, 4:39pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/8 "2019-11-25T16:39:47Z")

</div>

Ok, I appreciate this and will pass on to the SDK team. We have an internal ticket for this issue in the SDK. So sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 25, 2019, 4:39pm UTC](https://community.wowza.com/t/text-overlay-crashed-gocoder-android-while-streaming/54156/9 "2019-11-25T16:39:47Z")

</div>

Ok, I appreciate this and will pass it on to the SDK team. We have an internal ticket for this issue in the SDK as a potential bug, but I have no ETA for a solution at this time. So sorry for the inconvenience.
