The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

"AssertException: Invalid temp alloc size" when using huge amount of NetworkRB

2022-09-19 10:39:35

Hey guys! I'm currently working on a project using photon fusion sdk. I'm using single-host mode. And I started to get this error - "AssertException: Invalid temp alloc size: -148784856" - on client side right after the scene is loaded. Alloc size number does not make sense and can vary. This error is sometimes followed by "System.InvalidOperationException: Not Found" from Fusion.Simulation.FindSnapshot function. I figured out that it has smth to do with NetworkedRigidbodies. The scene itself has a huge amount of NetworkRigidbodies (~ 5000 of them). Disabling some of them helps to get rid of the error. So it's quite obvious, that some limit is exceeded. But I'm trying to figure out what exactly the reason is, and what limit is causing this error to appear. Tweaking network project config values, like mtu or heap settings, does not seems to change anything. Do you have any ideas, guys? Any help would be greatly appreciated


Back to top