Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix freezing the UE editor when quitting game mode after capturing (Linux). #3

Merged
merged 1 commit into from
May 1, 2019

Conversation

stefanbuettner
Copy link
Contributor

@stefanbuettner stefanbuettner commented Apr 11, 2019

Hey there,

I was using the project on Ubuntu 18.04 with the UnrealEngine 4.21.3 built from source.
I could use the project according to the documentation without problems. But when quitting the game mode after recording data, the editor would freeze.

It was locking in the FNVImageExporter_Thread::Stop on the Thread->Kill(true); statement and therefore probably on HavePendingImageEvent->Wait();
Not resetting the HavePendingImageEvent when stopping the thread fixed the problem.

I don't know if this was also a problem on Windows or Mac neither if this change introduces a problem on these platforms. Yet, "it worked on my machine".

Cheers,
Stefan

The FEvent was triggered on Stop but directly reset into the waiting
state afterwards.
Removing resetting correctly terminates the thread.
@Dutzel
Copy link

Dutzel commented Apr 11, 2019

Have you had the "NDDS could not be compiled." Error? What did you do to fix it?

@stefanbuettner
Copy link
Contributor Author

I had this error at some point but don't know how and why it went away. I also had the problem that the UBT recompiled the whole engine when compiling the plugin.
So I cloned the Dataset_Synthesizer project again, skipped the project conversion and everything went fine.

@mikeramseybg
Copy link

mikeramseybg commented Apr 11, 2019 via email

@Dutzel
Copy link

Dutzel commented Apr 11, 2019

Thanks for your quick answer! Hmm... what is your Unreal Version? I cloned the version 4.21 but now it shows the version is 4.22... all i did was following these instructions:
https://docs.unrealengine.com/en-us/Platforms/Linux/BeginnerLinuxDeveloper/SettingUpAnUnrealWorkflow

Did you do that as well?

@stefanbuettner
Copy link
Contributor Author

@Dutzel I didn't follow this very description for building the engine but the one in Engine/Build/BatchFiles/Linux/README.md in the engine source. But the stepsare the same - ./Setup.sh, ./GenerateProject.sh and make. I used the 4.21.2-release tagged version.

@mikeramseybg I didn't use it in a package build. No experience there.

@mrkcass
Copy link

mrkcass commented Apr 26, 2019

Had no problems until the last official commit. After that I was locking up every time I stopped the player. This commit fixed that problem.

Have several on the team using NDDS and will pass the word along.

Thank you!!!

@Sserpenthraxus-nv
Copy link
Contributor

Thanks very much for this change.

@Sserpenthraxus-nv Sserpenthraxus-nv merged commit 9419d63 into NVIDIA:master May 1, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants