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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Packaging with Nativize BP crashes

I'll describe the crashing call stack below.

First is the call stack:

alt text

And the details:

[1] UActorComponent* USCS_Node::GetActualComponentTemplate(UBlueprintGeneratedClass* ActualBPGC) const crashes because ActualBPGC is nullptr.

[2] It is nullptr since previous call has a failed Cast.

             if (ComponentTemplate->HasAnyFlags(RF_InheritableComponentTemplate))
                 ObjectToCompare = Node->GetActualComponentTemplate(Cast<UBlueprintGeneratedClass>(BPGC->GetSuperClass()));

The cast here failed since BPGC's super class is a C++ class, not BP generated class, so it failed.

[3] This node is the DefaultSceneRoot of this Actor; this Actor is of BP class, and it's parent is a C++ class.

I'm not sure how to modify the code to make it work, but I suspect that this is kind of buggy, since BPGC's super class is not guaranteed to be BP generated.

Product Version: UE 4.12
more ▼

asked Aug 19 '16 at 06:42 AM in Bug Reports

avatar image

225 8 17 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first


I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

more ▼

answered Aug 29 '16 at 01:18 PM

avatar image

Sean L ♦♦ STAFF
43.6k 485 152 442

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi I tried to replace DefaultSceneRoot with a Scene Component and it works, so should I do this for all my Actor-based BP?

more ▼

answered Aug 19 '16 at 08:08 AM

avatar image

225 8 17 25

avatar image Sean L ♦♦ STAFF Aug 19 '16 at 01:27 PM

I'd highly recommend replacing the DefaultSceneRoot with a Scene Component, as this is typically what I'd do with my own setups.

However, as there is a crash occurring, could you please provide a detailed list of repro steps or a project that is crashing so that we can get a bug entered for this, as a crash is never intended behavior. Thanks!

avatar image marsonmao Aug 23 '16 at 05:59 AM

OK, the steps is like:

  1. Make a C++ class inherits Actor

  2. Make a BP class inherits previous class

  3. keep the DefaultSceneRoot there

Package the project with this kind of class, with Nativize enabled of course, then you might encounter this crash. I say 'might' since it looks like not every Actor with this setup make Nativize packaging crash, but at least I replaced many DefaultSceneRoot with Scene and there becomes no such crash.

avatar image Sean L ♦♦ STAFF Aug 23 '16 at 12:53 PM

I have been unable to reproduce the crash following the steps you've provided. If you have a simplified test project that is experiencing the crash, please zip it up, upload it to Dropbox, and provide a download link. Then we can go ahead and get a bug report entered.

Thank you!

(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