Physics error and crash

0 favourites
  • 5 posts
From the Asset Store
7 Errors
$15 USD
7 Errors is a game where you have to find the 7 mistakes before time runs out. Can you find all 7? Have fun looking.
  • Problem Description

    Physics behavior bug / crash when creating objects on the fly. Possible memory extension fix in beta r209 did not fix the problem, and does not help to support more objects.

    Attach a Capx

    https://www.dropbox.com/s/et90z0zdwswqepe/physics_bug.capx?dl=0

    Description of Capx

    Simple layout with physic objects. Left mouse click to spawn coins high rate.

    Steps to Reproduce Bug

    Just spawn some objects with left mouse click, (hundreds of them, it's fast) and the crash will happen.

    Same capx from previous bug report.

    Observed Result

    App crash with physics behavior related debug data.

    Expected Result

    Being able to support more objects. The problem also shows with tilemap with physics behavior.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 7 SP1

    Construct 2 Version ID

    Beta r209

  • Still have the same Problem Windows 8.1 latest chrome canary

    Interseting part is, it seems not to be related to the number of objects spawned.

    if i spawn 1/second it crashes after round about 170 objects: http://gyazo.com/a459ab4f6d6a6a36ad0cc22528c0e582

    if i spawn 10/second it crashes after 535 objects http://gyazo.com/c985f5988053443d7b6377f2683e8f77

    Kind regards

    Patrick

  • I think I'm getting the same issue but mine only randomly happens after running for about 20 or 30 minutes. I have removed all objects with physics behaviors and only have <10 objects in scene and it still happens. It even happened when I created a simple app with a Bullet object bouncing around four solids (see attached capx). I ran it for about 10 minutes at 10x speed for it to crash but it also happens at 1x.

    capx https://www.dropbox.com/s/ie9rwkn4fdm5f ... .capx?dl=0

    Tested in: Chrome

    Version 206 Stable

  • I'm not sure there's much to be done about this - it appears to be a limitation in how asm.js works. IIRC this is the same .capx you submitted last time, and I can create about twice as many objects than before given the recent memory increase. But AFAIK the only solution is to increase memory even further, which starts to add a lot of memory overhead to physics games, and still does not entirely solve the problem (you just get to go longer before it crashes).

    If it's a really serious problem you could go back to box2dweb physics, but that's a lot slower and no longer maintained.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ooh... So why do we encounter the problem when there's only few objects in game ? I really don't think it comes from the memory limitation, but rather a memory leak.

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