Wowza Community

Text overlay crashed GoCoder Android While streaming

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)

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

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

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)

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

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.

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.

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.

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.

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.