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"

Unreal Editor hangs for Mac OS X.

Unreal Editor 4.9.1 hangs with 101% CPU time in activity monitor. This occurs quite often though. I couldn't find a specific reproduce steps.

Environments: - Mac OS X 10.10.5 - Unreal Engine 4.9.1 - Blueprint only project without any custom C++ code.

Took some screenshots for additional info.

http://d.pr/i/1las0 http://d.pr/i/JgpV

Thanks!

Product Version: UE 4.9
Tags:
more ▼

asked Sep 28 '15 at 06:35 AM in Bug Reports

avatar image

mindblender
96 6 11 17

avatar image Steve Hardister ♦♦ STAFF Sep 28 '15 at 09:09 PM

Hi mindblender,

Please sample the editor in Activity Monitor by opening the Activity Monitory, selecting the editor in the list, using View->Sample Process to generate a report on the editors current activity, and saving this as a text file. Then post a copy of the text file here.

Thanks

avatar image mindblender Sep 30 '15 at 06:46 AM

I cannot encounter the issue anymore. I will report back with process sampling when this occurs again. Thanks.

avatar image Steve Hardister ♦♦ STAFF Sep 30 '15 at 02:34 PM

Hi mindblender,

I'm marking this resolved for now. If this issue returns, simply respond to this post with the process sampling. -Thanks for the update.

avatar image mindblender Oct 05 '15 at 07:14 AM

Hi, I encountered the issue, this time, when launching the editor. link text

avatar image mindblender Oct 06 '15 at 06:13 AM

Found another instance. It happened right after successful launch of the editor.link text

avatar image Steve Hardister ♦♦ STAFF Oct 06 '15 at 09:24 PM

The Activity Monitor samples did not turn up anything unusual so we will need some more information. Do you have other versions of the Engine installed? If so, do they also exhibit this lag? (If not, can you download a previous version and test it?) Also, does this happen if you open an empty project template, or only with projects containing your own assets? If only your own project or projects, would you consider these large with lots of assets or smaller with fewer assets?

Also, are you running the latest iteration of the Engine, 4.9.2? Any and all information you can provide will be helpful.

avatar image mindblender Oct 07 '15 at 03:45 AM
  • I observed the issue in 4.9.2 release build, installed from Epic Launcher.

  • I also upgraded the OS to Mac OS 10.11. Observed the same issue.

  • I use multiple monitors. Usually, Unreal editor banner appears wherever the cursor is and the editor appears on the main monitor.

  • I've been using Nvidia Web driver, instead of Mac OS X default.

  • My project is fairly small, smaller than popular Epic sample projects.

Now, I switched to the default driver to see if I can reproduce this. I will report back if I encounter once more. The issue seems to occur very randomly.

Thanks!

avatar image Steve Hardister ♦♦ STAFF Oct 12 '15 at 07:20 PM

Hi mindblender,

Haven't heard back from you in a while so I am marking this thread as "resolved" for now. If you continue to experience this lagging, simply respond to this post and we will continue to investigate. -Thanks.

avatar image mindblender Oct 16 '15 at 12:57 AM

Steve,

I encountered this issue again when importing an "ao" texture in png. I sampled the process again, just in case. I also observed "import" button is still highlighted yellow even after file open dialog disappears.

Let me also try 4.10 preview 1 if I can encounter the issue.

Thank you.

link text

avatar image mindblender Oct 19 '15 at 05:56 AM

I'm trying 4.10 preview 1. I don't seem to have this issue in the preview version. Just making a note here. Thanks.

avatar image mindblender Nov 01 '15 at 05:40 AM

Hi Steve,

I discovered the same freeze in 4.10 preview. It happened about five times over 5 hour work time. I spent some time to compare process samples I gathered so far.

I made a note in this link:

http://d.pr/i/1inWO

Unreal smart pointer impl might synchronously releases ref count. Something else is waiting for that thread to finish as well.

avatar image Steve Hardister ♦♦ STAFF Nov 03 '15 at 03:36 PM

Hi mindblender,

You mentioned your project is fairly small, but have you tried this with blank templates like the Third Person or First Person Template, migrating in a few of your custom assets in at a time? It may be a custom asset that is causing this conflict.

avatar image mindblender Nov 03 '15 at 04:07 PM

I can try that.

However, I also encountered this without importing as well. I used Perforce control and, when I checking files into the depot, the editor asked "This takes too long, do you want to continue?" with "Continue" and "Stop" buttons. At that time, the editor entered into the same state with the same "leaf" of call stack when process is sampled.

Anyway, I will try to do incremental imports when I get a chance most definitely.

Also, since I'm just working on a personal project, I'm totally fine sharing the entire project if it helps.

http://d.pr/f/YfYB

avatar image Steve Hardister ♦♦ STAFF Nov 03 '15 at 05:54 PM

I get a "Page no found" for the droplr link you've provided, but a copy of your project would be helpful. You can try that again and/or send a dropbox link via private message to me on our forums: https://forums.unrealengine.com/index.php

avatar image mindblender Nov 04 '15 at 03:27 AM

Hi, I set link expiration to one hour. Sorry about the confusion.

After further investigation into the issue, and inspecting source code, and googling about _AMDDeviceDetached event generated from Mac OS X,

I discovered a reliable way to reproduce this issue.

  1. Connect an iOS Device.

  2. Launch a Unreal project. Any project is ok. I could also reproduce this with a clean first person shooter project.

  3. Disconnect the iOS device by unplugging lightening/usb cable.

  4. Click import (or any event triggering dialog) to launch file open dialog.

  5. Observe the freeze.

After source code inspection, I also found that my earlier guess was close. :P

At line #756 in MessageEndpoint.h, SafeRelease enters infinite while loop. It indicates something else is not releasing FMessageEndPoint object.


For full story, my iOS devices were connected to a USB hub; then, the USB hub was connected to my iMac. The hub seems to be unreliable as it reconnects iOS devices every so often. In my case, once an hour, that's pretty much why it froze my work once every hour.

I'm working again after connecting the device cable directly into iMac now to see if the problem disappears.

EDIT: I just encountered the same freeze when the device cable is directly connected to my iMac. It seems the sporadic disconnect events are usual for Mac. I will try to disconnect the device completely and continue the work to reproduce the issue again.

avatar image mindblender Nov 04 '15 at 04:56 AM

Another update.

I encountered the freeze without even attaching the device at all. http://d.pr/i/1fehJ It happened as soon as source control related dialog appears.

As shown in the process sample at http://d.pr/f/FTBJ , _AMDDeviceDetached event occurs without having a mobile device attached at all. It ends up with the same call chain and enters the infinite loop.

The replication step mentioned before was just one case which can cause _AMDDeviceDetached event, not all. Whenever _AMDDeviceDetached event occurs, the editor hangs.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi mindblender,

Thank you for providing all the pertinent information to reproduce the issue on our end. This is currently being investigated as a bug reported as JIRA [UE-22976]. Should this issue be resoled in a later release of the engine, we will notify you with an update to this post.

Again, thank you bringing this issue to our attention,

Steve H.

more ▼

answered Nov 04 '15 at 09:36 PM

avatar image Steve Hardister ♦♦ STAFF Jan 20 '16 at 08:08 PM

This issue is being looked at under a new JIRA [UE-25123] that includes additional data from other users. The original JIRA, [UE-22976] has been closed. When this new bug report is resolved, I have added a note to update this post to to let you know.

avatar image Steve Hardister ♦♦ STAFF Jan 25 '16 at 02:54 PM

Update: JIRA [UE-25123] has been marked resolved for a future release of the Engine.

avatar image mindblender Jun 10 '16 at 04:46 AM

Hmm.. I still encounter the issue without the specific reproduce step I mentioned, just continuous use of the engine hit case again on Mac OS X. I started to use source version and commented the SafeRelease() line in FTargetDeviceService::~~FTargetDeviceService(), as a fix. It never hits the problem again.

I made some observations: 1. Mac OS X Only. I also tested binary version of UE4 Editor. The issue doesn't occur. 2. Editor Only. FTargetDeviceService is for developers. (I think?) 3. MessageEndpoint is already ThreadSafe shared pointer what's the point of this infinite loop in SafeRelease in FTargetDeviceService::~FTargetDeviceService()? 4. The freeze (hanging) can be simulated whenever you create another FTargetDeviceService instead right before old FTargetDeviceService::~FTargetDeviceService() is invoked. Obviously, The code seems to be multi-threaded. I think this is the cause.

My fix works for me on Mac OS X. I cannot test all the platforms, and I don't see the side effects from doing this specifically. So, I cannot do github pull request for this. But, I would put a comment here for reference.

avatar image BrainDx Mar 28 '18 at 06:23 PM

I just encountered this same issue when doing an initial load of our project on a new machine. Commenting out the suggested line let it continue further but it eventually crashed on the first line of FTargetDeviceService::HandleClaimedMessage because FTargetDeviceService::DeviceName was invalid (I'm guessing the entire FTargetDeviceService was). I was able to proceed by unpairing all devices in Xcode.

Would love to know what the proper fix is here. My best guess for repro would be to do a first-time load of a large-ish project with an AMD GPU installed and an iPhone connected to Xcode via WiFi. For reference, I'm using a source code build of Unreal Engine 4.18.3, opening/running the project via Xcode, and have an iPhone X that was previously paired to Xcode via WiFi.

My system is a 2017 MacBook Pro: 3.1 GHz Core i7, 16 GB RAM, Radeon Pro 560 4GB, Intel HD 630.

(comments are locked)
10|2000 characters needed characters left
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