#hit an exception nullptr and crash

1 messages ยท Page 1 of 1 (latest)

spare garnet
#

for PrismatiscapeDeformCharacter Component

#

After adding a child of the BP component to my character BP and editing the defaults I hit a crash on PIE

I get the nullptr crash when the profile doesnt match
a few validation checks would probably fix the crash for others in future

late kindle
visual oriole
#

@late kindle to fix this one, you just need:
if (!CurrentBoneNames) { UE_LOG(LogTemp, Warning, TEXT("Bone chain %s not found in BoneChains map. Check your bone profile names in your Prismatiscape Deform Component."), *CurrentBoneChainName.ToString()); continue; }

after
const FPrismatiscapeBoneChainData* CurrentBoneNames = BoneChains.Find(CurrentBoneChainName);

in
PrismatiscapeDeformComponentCharacter.cpp function SetActiveProfile(FName NewProfileName)

white flower
visual oriole
white flower
visual oriole
# white flower sorry, I'm a real noob concerning c++, but somehow I can't really edit the cpp f...

No worries!
Sounds a bit odd that you can't change the file. One option is to try to open it in notepad instead
Do you know if you have a C++ project with a .sln file? if not you will need to convert your blueprint project into a C++ project, you can find various tutorials for that

What i would suggest is that you just fix your bone mappings which should stop the crash and then prismaticadev will eventually release an update with my code

#

To fix the bone profiles you go on your prismatiscape deform component and fix these strings:

#

to match your skeleton

white flower
visual oriole
#

alright, well my fix would not make it work then, it would just stop it from crashing and warn you something is wrong

white flower
#

I have a more complex system, since I'm using different meshes and swap them out at runtime

#

it works from begin play with Initial profile Human, but when I call the setActiveProfile with Human, it crashes

#

this is what I do on runtime

visual oriole
#

hrmm

white flower
#

now disconnected because of crash

visual oriole
#

can you run from visual studio?

white flower
#

the function? or what do you mean?๐Ÿ™ˆ

visual oriole
#

unreal engine

#

do you have an SLN file like that

white flower
#

yes

visual oriole
#

have you opened it before?

#

if so, have you clicked play from within visual studio before?

#

at the top of visual studio you would want to select "DebugGame" in the dropdown next to play, probably where it says UE5 or Develop

white flower
#

yeah, never done that, but can try

visual oriole
#

give it a try

#

stop unreal first

#

then it will start up unreal editor with your project like normal

#

and then when you crash it will look like this:

#

and we will be able to get some hints as to whats wrong

white flower
#

do i want to use unreal build tool? seems wrong

visual oriole
#

what are the options in that dropdown

#

i use something called rider instead of visual studio so mine looks a little different

white flower
#

automation tool, epicgames.AspNet, EpicGames.Perforce.Fixture and UnrealBuildTool

visual oriole
#

unrealbuildtool is probably fine

#

if that doesn't work, then close visual studio and right click your uproject file and select "Generate Visual studio files"

white flower
#

oh i have them generated already

visual oriole
#

right but it will update them

#

when did you last generate?

white flower
#

oh ok, I generated after upgrading to 5.3, so some time ago

#

will regenerate

visual oriole
#

right, so it should say your game name, instead of unrealbuildtool

white flower
#

Analyzing Blueprints - Error: There was a problem while running the Unreal Engine integration for the project.

#

hm

visual oriole
#

ouch yeah thats not great

white flower
#

shit haha. ok. Well, thanks for the help so far I guess I have to dig deeper than taht

visual oriole
#

do you use version control

white flower
#

I don't want to use your time any further

#

yes I do

visual oriole
#

okay thats good at least

#

so you should be able to figure out when that problem started

#

good luck! let me know in a private message if you get completely stuck