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

Cannot read properties of null (reading 'getDrawableX') #5924

Closed
TylerYale15 opened this issue Nov 20, 2023 · 4 comments · Fixed by #5931
Closed

Cannot read properties of null (reading 'getDrawableX') #5924

TylerYale15 opened this issue Nov 20, 2023 · 4 comments · Fixed by #5931

Comments

@TylerYale15
Copy link

TylerYale15 commented Nov 20, 2023

Describe what you were doing when the crash happened

  1. Launched preview of game
  2. "Slash" object collided with "Enemy" Object multiple times until enemy died
  3. When "Enemy" object dies, creates particles
  4. Crash happens

image

These are the events used for the collisions:

image

GDevelop version

5

Platform info

Windows 11

Additional error context

I was getting this crash before but with a different "Enemy" object and was able to fix it by following advice from the forums to use custom collisions for my "Enemy" and "Slash" object. This worked until now.

Additional component context

No response

@4ian
Copy link
Owner

4ian commented Nov 20, 2023

Thanks @TylerYale15 for reporting this. We're hunting a similar problem and it would be super useful if you were able to share your game project either here if it's public, or to [email protected]

We would then be able to fix the issue (unfortunately, just the screenshot and the partial events don't allow us to debug the problem directly).

@TylerYale15
Copy link
Author

Than you @4ian for getting back to me on this issue! I will gladly send you the email containing the project file. At work currently so it will be a few hours before I can send it, but I appreciate the quick response! Will comment here as well when I am able to send it for extra notification.

@TylerYale15
Copy link
Author

@4ian - Game file has been sent! :)

@4ian
Copy link
Owner

4ian commented Nov 21, 2023

Thanks! Your game file was super useful.

This will be fixed in next version. In the meantime, be careful not to use "Put an object around another" action with a target object that would have been deleted in the meantime (which can happen if you use "wait" for example).

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