I was able to reproduce the freeze using your code and logged an issue.
However :
In the code, you initialize L.35 : FsVfxId effect_uid = -1;
Any reason not to use FSVFXID_NULL instead? FSVFXID_NULL is 0xffffffff
I may be wrong but if fsVfxSpawnInWorld() fails and returns FSVFXID_NULL, your later check if (effect_uid > -1)will be true and you will be calling fsVfxSetWorldPosition / fsVfxSetRotation. That could explain the freeze/crash.
This topic has been automatically closed after 60 days of inactivity since it was marked as fixed.
If there is important new information about this same report, you can use the “Request reopen” button below to ask the moderation team to review it again.
For other issues or broader discussion, please open a new topic in the appropriate category.