Physics behavior crashes if overused

This forum is currently in read-only mode.
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • For some reason, if at any time I have over 255 objects using the physics behavior on screen, my application immediately crashes saying:

    "An unexpected error has occurred and the application was terminated

    You may be able to find out more info about the crash by debugging and attempting to reproduce the bug", and once i close the window it says "Temp.exe has stopped working"

    When I try to use the debugger, it automatically closes and and just says "Temp.exe has stopped working"

    Does this only happen on my computer or is it a known bug? Why does this happen?

  • I can get it to crash like that if I set them all to the same position. I can get a lot more objects onscreen if they aren't all overlapping. Perhaps it crashes when a physics object is colliding with more than 255 physics objects?

  • That's not the solution in my case. None of the physics object overlap when it crashes on my pc.

    I was wrong in the first post. I can get exactly 256, not 255 objects on screen at the same time.

    Also, I'm able to get 256 physics objects to overlap without any lag at all. Why would I be unable to do so with 257+ objects?

    Here's a simple cap: dl.dropbox.com/u/52670878/Physics%20crash.cap

    Please let me know if it works on your computer.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It crashes here.

    I think the issue is you can only create 255 physics objects per frame. So if you want to create more than 255 you need to do it over several frames.

  • Yeah, that fixed it. Strange bug though...

    Thanks a lot R0J0hound.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)