This occurred after I added cloth physics to a characters LOD. It was present before, generating LODs and adding the physics to it has caused this.
It only happens when playing the game, everything is working perfectly fine, and after some indeterminate period of time, it crashes. I have a guess it might be at the point the LOD levels switch, unsure.
Assertion failed: bPrevious [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Public\GPUSkinVertexFactory.h] [Line: 247] Trying to access current bone buffer for reading, but it is null. BoneBuffer[0] = 0000000000000000, BoneBuffer[1] = 0000000000000000, CurrentRevisionNumber = 0, PreviousRevisionNumber = 0
Delved into the crashing cpp header file, since “bone buffer” is referenced just about nowhere on the internet. Didn’t help.
Ended up simply regenerating LOD2, and regenerating the clothing LOD, replacing it without parameter remap. No clue why, but I haven’t gotten THAT crash since. INSTEAD, I then got this:
Assertion failed : IntFitsIn <OutType >(In) [File :D:\build++UE5 *Sync* … h ] [Line : 163] Loss of data caused by narrowing conversion .
Which is strange. I ended up doing the aforementioned fix a couple more times. Having “Merge Coincident Vertex Bones” set to off made this crash not happen. If this merged bones that would make sense to cause a crash on reference to a bone buffer, but it merges bone WEIGHTS.
I assume that having this boolean set differently between generated LODS causes this issue.
LOD 1
cape - cloth physics LOD1
clothing - No LOD applied ( on purpose )
This setup causes the crash. For reference I was querying each frame to see if was viewable and pausing it off screen. Some combination of these things causes one of the aforementioned crashes, unpredictable which it is.
Bump. Crash still happens with " > Assertion failed : IntFitsIn <OutType >(In) [File :D:\build++UE5Sync … h ] [Line : 163] Loss of data caused by narrowing conversion ."
Assertion failed: IntFitsIn(In) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\UnrealTemplate.h] [Line: 174] Loss of data caused by narrowing conversion, In = -4611686018427387904