# Serious bug in Stream play

**URL:** <https://community.wowza.com/t/serious-bug-in-stream-play/41887>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [February 17, 2016, 12:48pm UTC](https://community.wowza.com/t/serious-bug-in-stream-play/41887 "2016-02-17T12:48:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin\_Biggin](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Colin\_Biggin](https://community.wowza.com/u/Colin_Biggin)\
**Post date:** [February 17, 2016, 12:48pm UTC](https://community.wowza.com/t/serious-bug-in-stream-play/41887/1 "2016-02-17T12:48:31Z")

</div>

Not sure who to report this to but I have discovered a rather serious bug when creating a stream within our application.

Essentially, it comes down to this:

Stream testStream = Stream.createInstance(inVHost, “XXXXX”, “testStream”);

boolean rc = testStream.play(“completeLoadOfCrap.mp4”, 0, -1, true);

Two things happen:

i) the “play” command returns true on a bad file pointer (ie, rc = true)

ii) it generates MB of log entries within seconds and doesn’t seem to stop.

Specifically, here is the message:

2016-02-16,17:59:20,EST,WARN,server,comment,-,MediaCache.createNewCachItem: Cannot find MediaCacheSource for (completeLoadOfCrap.mp4).

2016-02-16,17:59:20,EST,WARN,server,comment,-,MediaCache.createNewCachItem: Cannot find MediaCacheSource for (completeLoadOfCrap.mp4).

2016-02-16,17:59:20,EST,WARN,server,comment,-,MediaCache.createNewCachItem: Cannot find MediaCacheSource for (completeLoadOfCrap.mp4).

2016-02-16,17:59:20,EST,WARN,server,comment,completeLoadOfCrap.mp4,MediaReaderH264.open[1]: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: completeLoadOfCrap.mp4: java.io.IOException: MediaCacheRandomAccessReader.open: Item not i

n cache: completeLoadOfCrap.mp4|at com.wowza.wms.mediacache.impl.MediaCacheRandomAccessReader.open(MediaCacheRandomAccessReader.java:81)|at com.wowza.wms.mediareader.h264.MediaReaderH264.open(MediaReaderH264.java:256)|at com.wowza.wms.stream.publish.Publish

ingProviderMediaReader.a(PublishingProviderMediaReader.java:96)|at com.wowza.wms.stream.publish.PublishingProviderMediaReader.(PublishingProviderMediaReader.java:71)|at com.wowza.wms.stream.publish.Stream.a(Stream.java:907)|

At the very least, the play command should not be returning true. I encountered this because I was mistakenly referencing an S3 resource with it’s absolute url (versus using mp4:amazons3/) and once that was done, everything works fine BUT I decided to investigate further and discovered playing pretty much any arbitrary bad stream generates this. I have also tried setting the stream to not repeat and no difference.

Also, Wowza version: Wowza Streaming Engine 4.4.0 build17748

Please contact me if you need any more details or if I have done/missed something entirely.

Colin

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [February 18, 2016, 9:59am UTC](https://community.wowza.com/t/serious-bug-in-stream-play/41887/2 "2016-02-18T09:59:23Z")

</div>

I think a bit more information is going to be needed to sort this out.

Please open a ticket by following [these steps](https://www.wowza.com/support/open-ticket).

Thank you,

Salvadore
