Game crashes on startup: ArgumentException

After doing a little work with my project, I try to build and run my game, but I always get an ArgumentException occurring within the asset-loading serialization code, within game.Run() in the startup class. After a little testing, I discovered that the crash occurs whenever one of the entities in the scene has a physics component of any kind, even with the default “nothing” settings. My scene doesn’t have anything particularly unusual, just a player and block entity, as well as a UI and a couple script entities.

This seems to be a bug, but it seems to be the kind of bug that only the simplest of games would not encounter. Why haven’t others encountered this? Is there something I can do to fix this?

Full exception info

You have started the physical system in your code?
This error also happened to me, in paradox physical needs to be started. Below is a solution to your problem, simply copy and paste the code and the class :wink:

1 Like

That worked, but now I have a new problem: The basic collision I was going to test (character falling onto a static block) is not working correctly. The player does not pass through the block, but its velocity never gets set to zero either, so it’s sort of “glitching” into the block indefinitely. I start the character a little bit above the block as is standard with platformers, so I wouldn’t expect this kind of thing to happen. My character entity has its bounding shape as a box exactly the size of the texture, and the same goes for the block entity. The physics for the player is set to CharacterController, and the block set to StaticCollider. What am I missing?