Strange Javascript error in previewer

Bugs will be moved here once resolved.

Post » Sun Feb 23, 2014 11:30 am

Occurs when opening previewer with file here --> https://drive.google.com/file/d/0B_l5UZITIRGCbjZjbFJLVHFLNDg/edit?usp=sharing

Javascript error!
Uncaught RangeError: Maximum call stack size exceeded
http://localhost:50000/preview.js, line 2405 (col 54)
This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!


Does not occur with examples or other projects on same drive as above -- however, this file is on a network drive.
B
11
S
1
Posts: 2
Reputation: 694

Post » Sun Feb 23, 2014 9:18 pm

The very last event in your project is creating an infinite recursion. Whenever an AlertPointer object is created, you are asking Construct 2 to create another one (which runs the 'On Created' event again immediately, creating another object). This causes an endless series of function calls with no returns, until the call stack overflows.
B
54
S
19
G
13
Posts: 97
Reputation: 10,146

Post » Mon Feb 24, 2014 1:56 pm

Closing as a mistake in your own events.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842


Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest