Menu widget not visible/working in standalone mode

Menu widget that was working fine in 4.10 is no longer working properly when game is run in standalone mode or built version. The strange thing is that this works fully in PIE. The widget is created in the pawn at begin play.

I have tried

  • Migrating widget to another project. Does not help.
  • Spawning widget from another pawn, which worked partially. It shows some widget elements and but also does not show some of the blueprint actors on the level (which use widgets also).

Best solution has been not to use 4.11 since 4.10 seems to work fine. Any suggestions?

Hello ,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of step to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints and/or widgets that may be involved with this issue?

Hi Rudy

I spent an hour trying different things and I’ve tracked it down to the Media Player. I have a video playing at background of the menu and when the pawn at begin play starts playing the video.

Adding these nodes will not load the menu widget at all. Removing them + removing the Media Player variable will on the other hand allow menu to load with out the video.

With pawn having the start media nodes:

  • In PIE: Menu loads and video plays fine
  • Standalone mode: Does not load the menu at all
  • Packaged project: Menu loads but the video stays black

Removing the nodes and variable:

  • In PIE: Menu loads and video stays black
  • Standalone: Menu loads and video is fully transparent
  • Packaged project: Menu loads and video stays black

I checked the change log and I couldn’t find anything changed with Media Player that could affect this. Bug or should I set this up differently?

Steps to reproduce

  1. Import any video and make from it mediatexture and material. Change material domain to UI.
  2. Add new UMG widget. Add one image to UMG and change the material to video.
  3. Add new pawn. At begin play create the widget and add variable for the media player which will also be played and begin.

Result: Video will play when in PIE but widget will fail to load in standalone mode.

After running a few tests and doing some digging I was able find that this is a known issue (UE-28011) and that it has been sent to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

Thanks! We need to get this project ready by end of the month, is it realistic to expect this to be solved in couple of weeks? Or should we just use 4.10?

Hello ,

There is not a current time frame in place for the implementation of a solution for this issue at this time. With this being the case I cannot give you an estimate on when this issue will be resolved.

Update 4.11.2 seems the have fixed this partially. Menus will not crash now, but the videos will not play occasionally. I have different file formats which all work in 4.10, but now they randomly do not play.

Just by reload the level over and over, some videos play and some don’t. I have yet to find any pattern here.

Again no problem with PIE, built version and standalone have the issue.

Hello ,

I was not able to reproduce this issue on our end. Could you make sure that you are getting a reference to the media texture and playing the video?

Here is a video of the problem: - YouTube

  • Starting the game 1st time the videos will not play
  • Reloading the map fixes the problem 90% of the time. Sometimes 2 videos play, 1 doesn’t
  • Restarting the game within 5 seconds also fixes the problem. After 10 seconds videos are black again.

Hello ,

I am not quite sure what the video provided was supposed to show. Did you try the suggestion in my last comment? Could you provided an explanation of what exactly is being shown in the video and how it is not working as expected?

Sure. I did check the things you suggested. Video shows background videos not playing (just black), until I reload the level with console command “open mainmenu”.

Again the PIE works totally fine, problems are when running standalone or packaged game. I’ve tried new projects, migrating assets to new project, everything I can think of and still video playback is very unreliable in 4.11.2.

Hello ,

Have your repro steps changed at all? Would it be possible for you to provide a sample project that is experiencing this issue?

I have hard time reproducing the problem reliably. This one project I copied has the problem, but another copy doesn’t. I’ll try to reduce the assets down to the only ones that are related to the problem.

Hello ,

Please be sure to update the thread when you have any additional information and I will be happy to investigate this issue further.

Hello ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

Hi Rudy,
I’ve been talking with Simon and Doug from Enterprise and as soon as we get the MNDA in place I can provide you with project to test with.

Meanwhile we have tested with 4 PCs (win10 and win7) and everyone has problems playing the videos. One PC doesn’t play the videos in any case, but others will eventually play them at some point.

Only lead I have that when I have the editor open of the same project and run the build it is 95% likely that the videos will not play. When editor is closed it is 90% likely that at least one video will play.

Hello ,

I thought I would check back in to see if you had any updates on this issue and to see if you would to like assistance with this issue?

I found the same issue in UDN: https://udn.unrealengine.com/questions/289148/random-movie-playback-issues-and-crash-with-4112.html

I think the problem is that video is played before the video is loaded. I tried to hook up the play to OnMediaOpened event, but it seems that it is never called whatever I do.

I also tried the 4.12.0 but that just crashes editor directly when loading the project. Probably another issue…

I had the same issue, I found that by adding a new button with a size of x0 y0 to the widget at the top of my main vertical box containing my invisible widget content it made the content visible again.

Its not a proper solution but it worked for me, no idea why.