# Live video stops working due to exceptions

**URL:** <https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513>\
**Category:** Wowza Streaming Engine\
**Created:** [April 10, 2011, 11:53am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513 "2011-04-10T11:53:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 10, 2011, 11:53am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/1 "2011-04-10T11:53:27Z")

</div>

Hi.

I have a strange issue where a live video stops working with following exceptions:

```auto
ERROR server comment 2011-04-10 08:41:26 - - - - - 8.032 - - - - - - - - Zero sized function (client:1064043662:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:

ERROR server comment 2011-04-10 08:41:28 - - - - - 9.478 - - - - - - - - AMFDataMixedArray.deserialize[25:8]: java.nio.BufferUnderflowException

WARN server comment 2011-04-10 08:46:28 - - - - - 309.229 - - - - - - - - LiveStreamPacketizerSmoothStreaming.handlePacket[live/_definst_/70a396f99d15b253.sdp]: Fragment duration greater than suggested range of 1-4 seconds. Adjust keyframe interval accordingly: Fragment durations: [13.3,13.3,13.3]

ERROR server comment 2011-04-10 13:37:43 - - - - - 17784.712 - - - - - - - - processNextRequest: error: java.lang.ArrayIndexOutOfBoundsException:

```

Is there a known issue, and there any patch available for this?

This happens on latest Wowza 2.2.3.

Thanks.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 11, 2011, 3:42am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/2 "2011-04-11T03:42:03Z")

</div>

Any update about this issue? The problem goes away once we stop and start the stream, and then it works stable for some time, so I guess it something that accumulates over time.

Thanks.

---

<div class="post-metadata">

**Author:** ![Paul\_White](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Paul\_White](https://community.wowza.com/u/Paul_White)\
**Post date:** [April 11, 2011, 2:39am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/3 "2011-04-11T02:39:54Z")

</div>

I’m getting the exact same issue and it caused a huge customer s\*\*\* storm ☹

Error log:

```auto
ERROR	server	comment	2011-04-10	04:50:29	-	-	-	-	-	7425872.812	-	-	-	-	-	-	-	-	Zero sized function (client:1645582012:WIN 10,2,154,25): type:20 size:0:
ERROR	server	comment	2011-04-10	04:50:30	-	-	-	-	-	7425873.546	-	-	-	-	-	-	-	-	Zero sized function (client:31286727:WIN 10,2,152,26): type:20 size:0:

```

Access Log:

```auto
2011-04-10	04:00:11	BST	comment	server	INFO	200	-	LivePlayer.play[d6b682c5-191b-419f-b789-0d29d69add7e/_definst_/itu_iec_2011]: Dynamic Stream Markers are on.	-	-	-	7422855.062	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-04-10	04:00:11	BST	comment	server	ERROR	500	-	Zero sized function (client:493575615:WIN 10,2,152,32): type:20 size:0:	-	-	-	7422855.218	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-04-10	04:00:11	BST	comment	server	ERROR	500	-	Zero sized function (client:493575615:WIN 10,2,152,32): type:20 size:0:	-	-	-	7422855.218	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-04-10	04:00:11	BST	comment	server	ERROR	500	-	Zero sized function (client:493575615:WIN 10,2,152,32): type:20 size:0:	-	-	-	7422855.218	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-

```

All other streams continued as normal.

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [April 20, 2011, 3:48am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/4 "2011-04-20T03:48:02Z")

</div>

Have you tried patch11. This might help.

I believe this can also happen if there is not enough bandwidth between encoder and Wowza. FMLE will get behind and will send incorrect data.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [April 21, 2011, 4:07am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/5 "2011-04-21T04:07:30Z")

</div>

I would watch the Wowza server over JMX to see if memory is running up. I would watch the encoding side for the same thing. It could also be sure that the connection between Wowza as the encoder not is the issue. There is no patch for this.

Setup a test with Wowza and FMLE on a local network. I think you will find that it runs and runs and runs.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 11, 2011, 8:14pm UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/6 "2011-04-11T20:14:08Z")

</div>

Take a look at this thread:

[https://www.wowza.com/forums/showthread.php?10036-Zero-sized-function-packetSizeReset](https://www.wowza.com/forums/showthread.php?10036-Zero-sized-function-packetSizeReset)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 19, 2011, 6:51pm UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/7 "2011-04-19T18:51:33Z")

</div>

Have you followed this suggestion?:

[https://www.wowza.com/forums/showthread.php?10036-Zero-sized-function-packetSizeReset#2](https://www.wowza.com/forums/showthread.php?10036-Zero-sized-function-packetSizeReset#2)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 19, 2011, 6:53pm UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/8 "2011-04-19T18:53:35Z")

</div>

@Sybernow,

Sounds like an issue on the encoder side.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 20, 2011, 3:07pm UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/9 "2011-04-20T15:07:41Z")

</div>

The latest patch (2.2.3.11 at this writing) is always here:

[https://www.wowza.com/docs/wowza-streaming-engine-software-updates](https://www.wowza.com/docs/wowza-streaming-engine-software-updates)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 20, 2011, 7:41pm UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/10 "2011-04-20T19:41:58Z")

</div>

Great, thanks for the update.

That WARN line is for Smooth (Silverlight). You can remove the smooth packetizer from LiveStreamPacketizers if you are not streaming to Silverlight.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 12, 2011, 5:45pm UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/11 "2011-05-12T17:45:35Z")

</div>

Might be some useful info here:

[https://www.wowza.com/forums/showthread.php?7656-RTMPT-random-disconnect-Zero-sized-function-exception](https://www.wowza.com/forums/showthread.php?7656-RTMPT-random-disconnect-Zero-sized-function-exception)

Richard

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 19, 2011, 7:59am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/12 "2011-04-19T07:59:17Z")

</div>

Hi.

The problem described there is different from what I have.

The thread speaks about streaming MPEGTS, while in my case I’m pushing RTMP stream to Wowza.

It works normally for some time, then purely randomly, on the same stream, it stops working (others work well).

Restarting the streaming (stopping / starting the streaming in encoder) resolves the issue.

Before that, we used RTSP-to-RTMP bridge, and all worked fine.

Are there any know issues in Wowza working with RTMP streams?

Thanks

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 20, 2011, 1:34am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/13 "2011-04-20T01:34:51Z")

</div>

Hi.

1. I changed the GC settings already after the previous issue of Wowza server completely hanging, and now it doesn’t happen indeed - but it is not related to the problem - the issue happens only with single stream, others work fine.

2. If this is an encoder side issue, how then other streams are working perfectly without any problem? If I stop and start the encoder for this particular stream, it works fine for some random time, then sporadically gets this exception. There are no errors on the encoder side - moreover pushing RTSP video through another server works just fine - it never stops.

Are there any probing tools available that can tell the status of the stream, without me checking it all the time?

Any other info I can provide you with so you could diagnose the issue?

Thanks.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 20, 2011, 6:14am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/14 "2011-04-20T06:14:26Z")

</div>

Hi.

1. I’m using the latest version 2.2.3, where I can download patch 11?

2. Encoder and Wowza are located on same machine, so this not a bandwidth problem.

3. I’m not using FMLE, but FFMPEG-based encoding tool.

Again, other streams are working great - this basically this particular stream which gives troubles.

Can Wowza recover from such exception, restart the stream if needed and continue working normally?

Thanks.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 20, 2011, 7:48am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/15 "2011-04-20T07:48:56Z")

</div>

Thanks, got it.

Will test it and post here whether it solves the issue.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 20, 2011, 11:35am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/16 "2011-04-20T11:35:29Z")

</div>

An update, while usually it has stopped after 10-15 minutes so far, now it keeps working after several hours of running.

I see a single warning which probably not related, but I would still to know what it means:

WARN server comment 2011-04-20 22:05:58 - - - - - 26.034 - - - - - - - LiveStreamPacketizerSmoothStreaming.handlePacket[live/_definst_/streamtest]: Fragment duration greater than suggested range of 1-4 seconds. Adjust keyframe interval accordingly: Fragment durations: [5.7,5.3,5.4]

Thanks again.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 21, 2011, 12:04am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/17 "2011-04-21T00:04:21Z")

</div>

Ok, I confirm that after 12 hours of work, there were not errors at all.

Thanks for the fix - hope to see a production release with it soon. 🙂

About the WARN line, does it mean I will have issues streaming to Silverlight clients? And it can be resolved by lowering the key-frame interval as suggested?

Regards.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 21, 2011, 3:59am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/18 "2011-04-21T03:59:11Z")

</div>

Happy too early :(.

After 15 hours of working, the exception is back, and that time it killed almost all other streams:

> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.142 - - - - - -
> 
> - 
> - Zero sized function (client:1405423478:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:
> 
> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.143 - - - - - -
> 
> - 
> - Zero sized function (client:1405423478:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:
> 
> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.143 - - - - - -
> 
> - 
> - Zero sized function (client:1405423478:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:
> 
> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.144 - - - - - -
> 
> - 
> - AMFDataMixedArray.deserialize[25:23]: java.nio.BufferUnderflowException
> 
> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.146 - - - - - -
> 
> - 
> - Zero sized function (client:1405423478:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:
> 
> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.146 - - - - - -
> 
> - 
> - Zero sized function (client:1405423478:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:
> 
> ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.147 - - - - - -
> 
> - 
> - Zero sized function (client:1405423478:FMLE/3.0 (compatible; Lavf52.88.0)): type:20 size:0:
> 
> What information you need to locate this issue and produce a patch?
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 21, 2011, 4:45am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/19 "2011-04-21T04:45:08Z")

</div>

Here is the full exceptions dump - hope it helps:

> wowzamediaserver\_access.log:2011-04-21 13:06:19 IDT comment server ERROR 500 - AMFDataMixedArray.deserialize[25:23]: java.nio.BufferUnderflowException - - - 54047.144 - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 13:22:36 IDT comment server ERROR 500 - AMFData.getReference: java.nio.BufferUnderflowException - - - 14.194 - - - - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 13:22:37 IDT comment server ERROR 500 - AMFDataMixedArray.deserialize[25:10]: java.nio.BufferUnderflowException - - - 15.989 - - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 13:22:37 IDT comment server ERROR 500 - constructor AMFDataObj(ByteBuffer)[17:25]: java.nio.BufferUnderflowException - - - 15.99 - - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 13:22:37 IDT comment server ERROR 500 - constructor AMFDataObj(ByteBuffer)[25:25]: java.nio.BufferUnderflowException - - - 15.99 - - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 13:22:40 IDT comment server ERROR 500 - AMFDataMixedArray.deserialize[25:13]: java.nio.BufferUnderflowException - - - 19.009 - - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 14:33:56 IDT comment server ERROR 500 - constructor AMFDataObj(ByteBuffer)[25:25]: java.nio.BufferUnderflowException - - - 2032.363 - - - - - - - - - - - - -
> 
> wowzamediaserver\_access.log:2011-04-21 14:33:56 IDT comment server ERROR 500 - constructor AMFDataObj(ByteBuffer)[15:25]: java.lang.NegativeArraySizeException - - - 2032.407 - - - - - - - - - - - -
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 13:06:19 - - - - - 54047.144 - - AMFDataMixedArray.deserialize[25:23]: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 13:22:36 - - - - - 14.194 - - - AMFData.getReference: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 13:22:37 - - - - - 15.989 - - - AMFDataMixedArray.deserialize[25:10]: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 13:22:37 - - - - - 15.99 - - - constructor AMFDataObj(ByteBuffer)[17:25]: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 13:22:37 - - - - - 15.99 - - - constructor AMFDataObj(ByteBuffer)[25:25]: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 13:22:40 - - - - - 19.009 - - - AMFDataMixedArray.deserialize[25:13]: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 14:33:56 - - - - - 2032.363 - - constructor AMFDataObj(ByteBuffer)[25:25]: java.nio.BufferUnderflowException
> 
> wowzamediaserver\_error.log:ERROR server comment 2011-04-21 14:33:56 - - - - - 2032.407 - - constructor AMFDataObj(ByteBuffer)[15:25]: java.lang.NegativeArraySizeException

---

<div class="post-metadata">

**Author:** ![Stas\_Oskin](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Stas\_Oskin](https://community.wowza.com/u/Stas_Oskin)\
**Post date:** [April 21, 2011, 4:52am UTC](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513/20 "2011-04-21T04:52:29Z")

</div>

> I would watch the Wowza server over JMX to see if memory is running up. I would watch the encoding side for the same thing. It could also be sure that the connection between Wowza as the encoder not is the issue. There is no patch for this.
> 
> Setup a test with Wowza and FMLE on a local network. I think you will find that it runs and runs and runs.
> 
> Charlie

I’m monitoring it with top - the java process never passes 230 MB from 2000 allocated. Also, other streams are working perfectly fine, it’s only this particular stream.

About testing - as said, the encoder and Wowza are running on same machine, so any connection issue is improbable.

The patch did improved things, but still not a full solution.

Thanks.

[Next page](https://community.wowza.com/t/live-video-stops-working-due-to-exceptions/33513.md?page=2)
