Assertion failed: Parents[i].Property->RepIndex + Parents[i].ArrayIndex == i Engine\Private\RepLayout.cpp [Line: 2214]

When converting from 4.10 the game runs in PIE just fine until after you make a change on a Character blueprint.

Then it crashes with the below error.

  1. Make a change on my character
    blueprint.
  2. Launch PIE.
  3. Crash

Get this error:

Assertion failed: Parents[i].Property->RepIndex + Parents[i].ArrayIndex == i [File:E:\Unreal Engine - Git\Engine\Source\Runtime\Engine\Private\RepLayout.cpp] [Line: 2214]

Hello,

  • Could you provide the logs from your project’s Saved->Logs folder?
  • Are you getting a crash reporter window? If so, could you please provide your Machine ID and ensure that you hit send on the crash report?
  • Have you been able to reproduce this in a clean project?

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

I also get this issue when I

  1. Make a change on my character blueprint.

  2. Launch PIE.

  3. Crash

Assertion failed: Parents[i].Property->RepIndex + Parents[i].ArrayIndex == i [File:D:\Program Files\Epic Games\UnrealEngine-release\Engine\Source\Runtime\Engine\Private\RepLayout.cpp] [Line: 2214]

I also sometimes get this:

Assertion failed: Property->PropertyFlags & CPF_Net [File:D:\Program Files\Epic Games\UnrealEngine-release\Engine\Source\Runtime\Engine\Private\RepLayout.cpp] [Line: 2209]

Seems to be an issue related to when variables are set to replicated or repnotify.
After compile and save, I hit play, let it crash and restart to play in pie and it’s fine after the restart.

Hey Xaith,

I’m glad that restarting allows you to continue working on your project; however, I’d like to ensure that this crash gets resolved if possible.

Could you please answer the three questions I asked in my above comment so that we can begin to investigate this issue?

Please provide the logs from your project’s Saved->Logs folder so that we can take a closer look at the errors that you are experiencing.

In order to get a bug report in, I’ll need to get reproduction steps, or a simplified test project at the very least. If you are aware of any way to reproduce it or can provide a project, please do so. Without a callstack or logs, there’s not much that I can do to investigate this crash, so as soon as you are able to provide that information I can get going on trying to reproduce the issue.

Thanks!

Being unable to reproduce in a clean project doesn’t dismiss the issue. The problem is that sometimes the crash reporter doesn’t even load (Oh no, another bug), and if by some chance it does, the error above obviously doesn’t give us any clues.

Xaith, here’s a good question: Are you having this problem in 4.12 or 4.11?

Because honestly, the only way a problem like this get’s solved (based on what I’ve seen here) is that people have to keep reporting it in 4.13, 4.14, 4.15 before someone finally realizes that we need better debugging tools to help anyone at Epic diagnose these issues.

I am running to this issue after upgradeing to 4.16

Assertion failed: Parents[i].Property->RepIndex + Parents[i].ArrayIndex == i [File:C:\Users\Skeeta\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\Engine\Private\RepLayout.cpp] [Line: 2980]

Assertion failed: Parents[i].Property->RepIndex + Parents[i].ArrayIndex == i [File:C:\Users\Skeeta\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\Engine\Private\RepLayout.cpp] [Line: 2980]

I am running to this issue after upgradeing to 4.16

I forget what I did to fix this but, I think, you need to change your RepNotify variables to None. Then, delete the automatically generated On-Rep functions. Make sure to save any code that may be in your OnRep functions before you delete them. Rebuild your project (from the .sln most likely is what i did) and then when it ‘works’ reset your OnRep Variables. Also, please let me know if that fixed it as I really cannot remember if that is how I fixed this.

I can confirm that setting all replicated variables that are RepNotify to None, removing the generated On-Rep Functions, compiling, restarting project, and then recreating the RepNotifies, worked for me

My solution seems to work so reposting as an answer:

Xaith Jun 02 '17 at 10:26 AM
I forget what I did to fix this but, I think, you need to change your RepNotify variables to None. Then, delete the automatically generated On-Rep functions. Make sure to save any code that may be in your OnRep functions before you delete them. Rebuild your project (from the .sln most likely is what i did) and then when it ‘works’ reset your OnRep Variables. Also, please let me know if that fixed it as I really cannot remember if that is how I fixed this.

▼reply
Sarr 19 minutes ago Newest
I can confirm that setting all replicated variables that are RepNotify to None, removing the generated On-Rep Functions, compiling, restarting project, and then recreating the RepNotifies, worked for me

Thanks for (another) confirmation Sarr

Thanks for (another) confirmation. Glad it worked for you. I’ve helped a couple others with this same issue before so i’ll repost as an answer.