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"

Editor performance issue - too many threads spawned

Since 4.14 I've noticed sometimes when I load up the editor the performance drops down to unusable levels and I have to restart. It's hit or miss as to whether it happens, but when it does it's always right away.

This time I broke into the debugger and found that the editor process had over 3000 threads. A look at the output window showed heaps of 'The thread 0x5410 has exited with code 0 (0x0).' messages, so it looks like something is constantly spawning short-lived threads.

All the extra threads are listed as follows:

 [ID]    0    Worker Thread    ntdll.dll thread    ntdll.dll!00007ffd872998a4    Normal

They are all at the same memory location in ntdll.dll.

The output window shows the following just after map check completes, and it looks like this doesn't show up on the times the editor runs without issue:

 Exception thrown at 0x00007FFD84337788 in UE4Editor.exe: Microsoft C++ exception: wil::ResultException at memory location 0x000000CA5473DC80.
 Exception thrown at 0x00007FFD84337788 in UE4Editor.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
 Exception thrown at 0x00007FFD84337788 in UE4Editor.exe: Microsoft C++ exception: wil::ResultException at memory location 0x000000CA5473D950.
 Exception thrown at 0x00007FFD84337788 in UE4Editor.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Product Version: UE 4.14
Tags:
more ▼

asked Jan 22 '17 at 06:33 AM in Bug Reports

avatar image

kamrann
2.1k 83 37 121

avatar image Matthew J Jan 23 '17 at 04:26 PM

Hello kamrann,

Thank you for reporting this issue. I'll start looking into this but I wanted to ask a couple questions first. Does this issue occur in any project that you use in the editor or is it only with your main project? Does it happen before you even open a project, such as when the Unreal Project Browser is opened?

avatar image kamrann Jan 27 '17 at 03:31 AM

Hi Matthew. I've managed to track this down. I have Microsoft's Japanese IME installed on my system as an alternative input method. The thread spawning problem occurs only when this is active.

Certain context changes in the editor cause slate widgets to be rebuilt, and the issue is within the FSlateEditableTextLayout constructor which is invoked for every SEditableText in the editor at this time. This call here, and then specifically this line, will create a new thread when the IME is active, but otherwise does not.

avatar image Matthew J Jan 27 '17 at 02:20 PM

I have that enabled as well but haven't noticed this; What version of Windows are you on? I do know that the majority of issues that we run into with Microsoft IME are usually OS specific so it may be this case with this one as well.

avatar image kamrann Jan 27 '17 at 02:26 PM

I'm using Windows 10, and it looks like this happens every time the editor is started with Japanese input enabled (it has to be selected currently in the language bar, not merely installed).

avatar image Matthew J Feb 01 '17 at 09:02 PM

Thank you for that information. I'm still looking into this but having to get this all setup on a Windows 10 machine so it's taking me a while. I'll let you know when I have more information.

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

1 answer: sort voted first

Hello Kamrann, I apologize for not responding here sooner but I was not able to reproduce the issue that you were reporting. Are you still experiencing this issue on the latest version of the editor?

more ▼

answered Aug 30 '17 at 01:48 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