when Width of sprite is Float causes Crash

Report Construct 2 bugs here.

Post » Thu Jun 18, 2015 5:32 pm

Problem Description
When the width of a sprite is a float value, it crashes. It doesn't if it is rounded.

Attach a Capx
http://www.filedropper.com/alextemplatebuggy

Description of Capx
has sprites that are setting their widths to distance() , and crashes after 30 seconds of running.

Steps to Reproduce Bug
  • run game and wait about 30 seconds

Observed Result
it suddenly closes after 30 seconds.

Expected Result
shouldn't crash.

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

Operating System and Service Pack
win vista

Construct 2 Version ID
r206
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Thu Jun 18, 2015 6:26 pm

Its a physics bug.
You should create a capx with only events that produce the error. Especially if what you are working on contains content you purchased from the store.
Image ImageImage
B
172
S
50
G
182
Posts: 8,434
Reputation: 115,087

Post » Thu Jun 18, 2015 6:37 pm

Nodewebkit crashed for me too.

I opened it in chrome and screenied the erorrs

Image

Image
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,592

Post » Thu Jun 18, 2015 8:10 pm

newt wrote:Its a physics bug.
You should create a capx with only events that produce the error. Especially if what you are working on contains content you purchased from the store.

It may be a physics bug, but it is related to setting the width of the sprite with the physics behavior attached.
Also, the content is created by me. These events were in a template I uploaded to the store ( I have recently updated it to a working version that is awaiting approval)..
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Fri Jun 19, 2015 2:18 pm

The .capx link is not working for me, it freezes the browser tab. Filedropper frequently does not work for me anyway (links mysteriously just redirect to the home page). Can you upload the .capx to a more reliable host like Dropbox, Google Drive of OneDrive?
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Fri Jun 19, 2015 3:24 pm

@Ashley , here's another dl link. I don't use those other services. http://www.megafileupload.com/d2S0/alex ... uggy3.capx
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Wed Jul 01, 2015 2:01 pm

@Prominent - link says "error: file has been removed due to inactivity". I think you should reconsider those other services...
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Wed Jul 01, 2015 3:45 pm

B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest