Can't get past 70% when loading my editor project file

Hello Everybody,

I am working with a mostly C++ project and I can build my project just fine, but the loading of the editor gets stuck at 70% every time. Even undoing my recent changes will not make this error go away.

This is the log file from my last attempt.

If you need anymore information on the problem let me know,

Farshooter

Hi Farshooter,

Does this occur for a clean, blank project with no additional content or is this limited to one project?

Hello @

It is limited to just this project.

If you remove the contents folder are you able to open the project? What were the most recent additions before this hang started occurring? Does it produce any callstack when it closes?

So I have a status update. I removed the content folder and the problem still occurred. Next I deleted all the source code that I created and the project ran fine. I then added my code back and selectively deleted files until I narrowed down which code files were the problem. I ended up finding that the project would not compile with my Octree code, which can be found here. Why is this code stopping the project from running?

Hey

When you try to open the project does the splash screen get stuck at 70% or does it get to 70% and then close? Are there any compile issues when compiling the project with this code? I’m not sure what would cause the project to not open based on what I’m looking at. Considering it is a problem with the project opening I think it has something to do with the Init functions but I can’t say for sure without more information.

Cheers

Hello @,

It gets to 70% and just stays open. I have to manually close it. They’re zero compile issues and zero errors after compile.

I also tried removing the Init functions all together, but that didn’t do anything. The problem still persists.

Hello Everybody,

I used the process of elimination and selectively deleted my code until the problem went away, and I am a bit embarrassed by what I found.

So this is the problem code that I found in my constructor:

	for (int i = 0; 0 < 8; i++)
	{
		Nodes[i] = nullptr;
	}

It was under my nose this whole time. This is an infinite loop because 0 < 8 will always be true. To fix it all I had to do was to change it to i < 8.

Thank for your help @ and @. I wish the solution was really complex to merit your time, but it turns out that the problem was a simple typo. Nevertheless, thank you for hanging in there and helping me reach a solution.

Farshooter

I also had similar problem. My conclusion is that Editor loading gets stuck at 70% if segfault happens in constructor of some of your classes. To my understanding, the constructors are called by editor to retrieve default values of properties and this is done either during loading of the Editor or right after recompiling of your project. Just fix the code that causes segfault in constructor, recompile the project externally (in Visual in my case) and your project will be alive again.

So what do i have to do to fix this issu???

NO Clear answers on the WEB?