Physics behavior bug when creating objects

Bugs will be moved here once resolved.

Post » Fri Jun 19, 2015 5:11 pm

Problem Description
Physics behavior bug / crash when creating objects on the fly

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.

Observed Result
App crash with physics behavior related debug data.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)
  • Safari: (YES)
  • NodeWebkit export: (YES)

Operating System and Service Pack
Windows 7 SP 1

Construct 2 Version ID
r208 beta
B
14
S
4
Posts: 109
Reputation: 1,281

Post » Sat Jun 20, 2015 2:11 pm

Thanks for reopening, saw it a little late that you aleready have done it :)

so here is my approach, with the impulse, but its the same with just 1 event
https://drive.kyberon.net/index.php/s/KHAI25894cFYOoS pw: demo

Confirmed for

Affected Browsers
Chrome: (YES)
FireFox: (YES)
Internet Explorer: (YES)


Operating System and Service Pack
Windows 8.1
B
19
S
7
G
1
Posts: 222
Reputation: 2,546

Post » Wed Jul 01, 2015 2:14 pm

asm.js physics uses a fixed size memory buffer for maximum performance. Currently it's set at 16mb. I've increased it to 32mb for the next build so you can go twice as far before you get this error, but I can't just increase it to say 512mb because AFAIK it always uses that much memory, so we need to balance the memory overhead with the number of objects you can create.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Fri Jul 03, 2015 12:11 am

Ok, thanks for the fix and explanations. In some projects the bug is still here when there's only few objects though.
After testing, the problem is not solved. I still get bugs with physic objects created on the fly.
B
14
S
4
Posts: 109
Reputation: 1,281


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests