1%0 Crashes Editor

Bugs will be moved here once resolved.

Post » Mon Jun 23, 2014 3:03 pm

Problem Description
1%0 Crashes Editor

Steps to Reproduce Bug
  • Type 1%0 into any event condition or action

Observed Result
Construct crashes

Expected Result
Nothing except for a NaN output at runtime. Replacing 0 with a variable that equals 0 has this effect.

Affected Browsers
  • Editor

Operating System and Service Pack
Windows 7 SP1 x64

Construct 2 Version ID
R173 (64-bit)
B
55
S
12
G
7
Posts: 184
Reputation: 7,125

Post » Mon Jun 23, 2014 4:20 pm

Dividing by zero?
Yeah, its a bug, but any other outcome would be anticlimactic.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097

Post » Mon Jun 23, 2014 5:03 pm

@newt

Actually dividing by zero seems to be perfectly safe. It's asking for what remains that kills it.
B
55
S
12
G
7
Posts: 184
Reputation: 7,125

Post » Wed Jun 25, 2014 2:46 pm

Nice catch, thanks for the report... not sure how this one went so long without noticing! Fixed for next build.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest