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"

[Bug] 4.4 Preview crashes on OSX when creating StaticMesh asset from brush

Hey Guys,

Just trying 4.4 preview on OSX. Something I do a lot, is create static meshes from BSP brushes in Unreal. Got a crash trying to do that with 4.4 Preview).

Steps to repro:

  1. Launch 4.4 Preview

  2. Create new

  3. When in editor, go to Place | Geometry

  4. Drag box into scene

  5. Go to details for box brush

  6. Under brush settings, clickreveal arrow for more options

  7. Click "Create Static Mesh" button

  8. Crash!


Product Version: Not Selected
more ▼

asked Aug 01 '14 at 02:12 AM in Bug Reports

avatar image

399 20 31 239

avatar image Adam Davis STAFF Aug 01 '14 at 07:04 PM

Hi TommyBear,

Unfortunately thus far I have been unable to reproduce this on my end. Does this happen with any bsp brushes or specific ones (cylinder, cone, etc)? Can you post your logs and dxdiag so we can have a look at what may be going on? Thank you!

avatar image TommyBear Aug 01 '14 at 10:27 PM

Hi Adam! As I stated in the body of the report, I am using OSX, so dxdiag is out of the question. I'll change the title to reflect that also. As for the BSP type, in my steps to reproduce I said I was using the box brush. Thanks!

avatar image TommyBear Aug 02 '14 at 02:14 AM

I'm grabbing the tagged source for 4.4 preview right now, I'll let you know exactly where it is crashing.


avatar image TommyBear Aug 02 '14 at 07:01 AM

Okay call stack first:

alt text

avatar image TommyBear Aug 02 '14 at 07:05 AM

Line 5633 in /Engine/Source/Editor/UnrealEd/Private/Editor.cpp:

 TSharedPtr RootWindow = FGlobalTabmanager::Get()->GetRootWindow(); <---- RootWindow is NULL!
                 FSlateApplication::Get().AddWindowAsNativeChild(CreateAssetFromActorWindow.ToSharedRef(), RootWindow.ToSharedRef()); <--- BOOM HERE

RootWindow is always coming back with NULL. Happens with the source version, happens in debug editor, development editor etc.

Which then asserts in debug here on Line 616 of /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h:

     FORCEINLINE TSharedRef< ObjectType, Mode > ToSharedRef() const
          // If this assert goes off, it means a shared reference was created from a shared pointer that was nullptr.
          // Shared references are never allowed to be null.  Consider using TSharedPtr instead.
         check( IsValid() );  <---- ASSERT HERE
         return TSharedRef< ObjectType, Mode >( *this );

Of course, in development it just crashes :)


avatar image TommyBear Aug 02 '14 at 07:27 AM

And here is the cause, line 93 /Engine/Source/Editor/MainFrame/Private/MainFrameModule.cpp:

 #if !PLATFORM_MAC // On OS X we don't want Top-Level windows to have a parent, as we don't really support the notion of child windows on that OS

This means the FGlobalTabmanager will ALWAYS return NULL, causing the issue mentioned above. The #define, explains why you don't see this issue on windows.

avatar image TommyBear Aug 02 '14 at 08:20 AM

I've added a pull request to master here:



avatar image ZeroEightSix STAFF Aug 04 '14 at 06:16 PM

Many thanks, but that's not a correct fix for this issue. We don't want RootWindow to be set on Mac. It should be NULL. I just committed a proper fix, it should be on GitHub soon - the code in Editor.cpp should check if RootWindow is valid and, if it's not, use AddWindow() instead of AddWindowAsNativeChild().

avatar image TommyBear Aug 05 '14 at 12:02 AM

Many thanks Mike! I now know a little more about the editor windowing! Sorry for jumping to conclusions and thanks for the fix.

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

1 answer: sort voted first

Hi TommyBear,

I was able to successfully reproduce this and have attached this as well as my own findings to a crash report for assessment. I will also mention your pull request in the bug report so we can get this resolved quickly. Thank you and have a great day!

more ▼

answered Aug 04 '14 at 05:16 PM

(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