Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash inUSProjectileMovementComponent::Reset() #12

Open
mss10001 opened this issue Dec 5, 2023 · 5 comments
Open

Crash inUSProjectileMovementComponent::Reset() #12

mss10001 opened this issue Dec 5, 2023 · 5 comments

Comments

@mss10001
Copy link

mss10001 commented Dec 5, 2023

Due to the pooling system you can get a crash in USProjectileMovementComponent::Reset(). We need to check with HasbeenInitialized() if the movement component is already initialized before initializating it again.

// Properly resets velocities and rotations
if (HasBeenInitialized())
{
UninitializeComponent();
}

InitializeComponent();
@LairdWT
Copy link

LairdWT commented Dec 5, 2023 via email

@mss10001
Copy link
Author

mss10001 commented Dec 5, 2023

I recently cloned the project and have not changed anything just testing the latest version where i got the crash shortly after start.
So far it seems all correct implemented as mentioned it's the original project.

@tomlooman
Copy link
Owner

Hi! How are you able to create this crash. I tried spawning hundreds of them and have yet to crash on this.

@mss10001
Copy link
Author

mss10001 commented Dec 11, 2023

Hi! How are you able to create this crash. I tried spawning hundreds of them and have yet to crash on this.

I just playing and fireing like the hell and i get this crash. I've nothing changed on your project.

Checked it just now and get the crash. Here some debug infos:

ACtionRougeCrahs

@tomlooman
Copy link
Owner

Thanks for the additional info, this is helpful. I still haven't been able to reach this crash myself. I'll keep an eye on this since I'd like to find out why this could even fail rather than just adding that safety check without fully understanding why it's not properly uninitializing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants