x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UMediaTexture crash when cooking

When running in the editor my UMediaTexture is properly executing InitializeTrack. However when I go to cook, I get the following crash...

 UE4Editor-MediaAssets.dll!UMediaTexture::InitializeTrack() Line 252    C++
  UE4Editor-CoreUObject.dll!UObject::ConditionalPostLoad() Line 723    C++
  UE4Editor-CoreUObject.dll!EndLoad() Line 1285    C++
  UE4Editor-CoreUObject.dll!LoadPackageInternal(UPackage * InOuter, const wchar_t * InLongPackageName, unsigned int LoadFlags=0, FLinkerLoad * ImportLinker) Line 1041    C++
  UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::TickCookOnTheSide(const float TimeSlice=10.0000000, unsigned int & CookedPackageCount=4) Line 1670    C++
  UE4Editor-UnrealEd.dll!UCookCommandlet::NewCook(const TArray<ITargetPlatform *,FDefaultAllocator> & Platforms, TArray<FString,FDefaultAllocator> & FilesInPath={...}) Line 1218    C++
  UE4Editor-UnrealEd.dll!UCookCommandlet::Main(const FString & CmdLineParams) Line 561    C++
  UE4Editor.exe!FEngineLoop::PreInit(const wchar_t * CmdLine=0x0000000002961000) Line 1639    C++
  UE4Editor.exe!GuardedMain(const wchar_t * CmdLine=0x00000000005d4538, HINSTANCE__ * hInInstance=0x00000000005d448e, HINSTANCE__ * hPrevInstance=0x000000000000000a, int nCmdShow=1069809664) Line 110    C++
  UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance=0x000000013fc40000, HINSTANCE__ * hPrevInstance=0x0000000000000000, char * __formal=0x0000000000000000, int nCmdShow=10) Line 189    C++
  UE4Editor.exe!__tmainCRTStartup() Line 618    C
  kernel32.dll!0000000076d45a4d()    Unknown
  ntdll.dll!0000000076e7b831()    Unknown

Specifically at...

     VideoTrackPtr->AddBoundTexture((Resource->TextureRHI.GetReference()));

... because Resource is null. The previous call to UpdateResource is not initializing Resource because UTexture::UpdateResource is checking against FApp::CanEverRender which is returning false during the cook process.

How do I resolve?

Thanks, Jason

Product Version: UE 4.9
Tags:
more ▼

asked Sep 22 '15 at 10:35 PM in Packaging & Deployment

avatar image

JasonKng
205 12 20 44

avatar image Samantha Sutton ♦♦ STAFF Sep 24 '15 at 03:42 PM

Hey JasonKing,

In order to better assist you, could you please upload your full error logs and provide the exact reproduction steps you took to get this error? Is this happening on the Editor from our Epic Games Launcher or from GitHub?

Looking forwarding to hearing back from you, thanks!

avatar image JasonKng Sep 25 '15 at 10:16 PM

Hi Samantha,

Thanks for your response. This is happening with my GitHub build. We are specifically using 4.9.0. My previous callstack came from a DebugGameEditor build that I debugged using the commandline cook arguments. The attached the log is from packaging from with the UnrealEditor using DevelopmentEditor build.

nu_reality.log (614.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Jason,

Sorry for the delay. This problem was fixed as part of Github commit

more ▼

answered Sep 29 '15 at 10:12 PM

avatar image gmpreussner STAFF Sep 29 '15 at 10:15 PM

And some subsequent cosmetic changes here: Github commit

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question