# MediaPlayer Play Bad Exit Code of 1

**URL:** <https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762>\
**Category:** UI\
**Tags:** unreal-engine, question, UMG\
**Created:** [March 13, 2015, 3:41am UTC](https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762 "2015-03-13T03:41:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sleeplessheartair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sleeplessheartair](https://forums.unrealengine.com/u/sleeplessheartair)\
**Post date:** [March 13, 2015, 3:41am UTC](https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762/1 "2015-03-13T03:41:53Z")

</div>

Whenever I call play on a mediaplayer asset through blueprint (running the editor from VS2013), I get the following in my console log:

```
The thread 0x4200 has exited with code 1 (0x1).

```

The thread ID isn’t always 0x4200, of course. But this message appears every single time I call Play on the MediaPlayer asset through blueprint, and whenever the movie finishes a loop and starts over. The error does not crash the game immediately, but if we let the mediaplayer play for too long, it will crash the game with an error pointing to some code in FOutputDevice.

Is the MediaPlayer framework supposed to have these bad exit codes? If not, how can it be fixed?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 13, 2015, 10:10pm UTC](https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762/2 "2015-03-13T22:10:05Z")

</div>

Hey sleeplessheartair,

The media player is still considered an experimental feature and is currently undergoing constant improvements and edits. The documentation for this feature can be found via the links provided below. Hopefully you can pull some additional information from these sources that will give you a hint as to the bad exit codes.

**Media Player Asset Framework**

> **[Media Framework](https://docs.unrealengine.com/5.1/en-US/media-framework-in-unreal-engine/)**
>
> Working with Media Playback functionality in Unreal Engine.

**Media Framework Forums Thread**

> **[Media Framework Documentation for 4.5 Preview](https://forums.unrealengine.com/showthread.php?46879-Media-Framework-Documentation-for-4-5-Preview&highlight=Media%2BFramework)**
>
> Hi all, We’ve been working on a new feature called the Media Framework for the past few weeks. It will add media playback functionality back into the Engine. A preview version is already in the Master branch, and it will also be available in 4.5....

Let me know if you have browsed through these sources and were still unable to determine a viable solution/workaround.

Regards,

---

<div class="post-metadata">

**Author:** ![sleeplessheartair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sleeplessheartair](https://forums.unrealengine.com/u/sleeplessheartair)\
**Post date:** [March 13, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762/3 "2015-03-13T22:57:14Z")

</div>

Hey Andrew,

Thanks so much for the quick response! I’ve pored over the docs and all available resources on the web about MediaPlayer/MediaFramework, to no avail. Does this bug happen on any other projects?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 15, 2015, 2:21pm UTC](https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762/4 "2015-03-15T14:21:58Z")

</div>

Hey sleeplessheartair,

There are a few others who are reporting this issue happening as well. They leave a video playing for a while until it eventually causes a crash. As you can imagine, this issue can be hard to reproduce, so if you have a test asset or some reproducible steps so I can get this to occur in a fairly empty project, that would be helpful.

Regards,

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [March 24, 2015, 4:14pm UTC](https://forums.unrealengine.com/t/mediaplayer-play-bad-exit-code-of-1/310762/5 "2015-03-24T16:14:03Z")

</div>

The log message can be ignored. It is normal.

As for the crash, that is probably a different issue. Could you post a callstack for it? The crash is most likely an assertion that is caught in FOutputDevice.

Thanks!
