Crash when ratio scale an object that has 0 as a size value

All closed bug reports are moved here.

Post » Tue Apr 04, 2017 8:21 pm

Open C3, create a new project, create a new object, set its width or its height to 0. Then drag any of the 8 points, and start resizing it. While resizing push Shift.

Guess it happens because you calculate the ration from initial drag values, aka it divides by 0*other value. Which is bad.

Image

(you should really consider hiring me as a beta tester :lol: )

Code: Select all
Error report information
Type: unhandled exception
File: https://editor.construct.net/r15/main.js, line 2, col 198954
Message: Uncaught TypeError: expected finite number
Stack: TypeError: expected finite number at Function.ǃr.ǃXu (https://editor.construct.net/r15/main.js:2:198960) at te.ǃyw (https://editor.construct.net/r15/main.js:61:212619) at X.ǃjB (https://editor.construct.net/r15/components/editors/layoutView/layoutView.js:1:58541) at P.ǃSc (https://editor.construct.net/r15/components/editors/layoutView/layoutView.js:1:63334) at P.ǃ_M (https://editor.construct.net/r15/components/editors/layoutView/layoutView.js:1:64061) at Array.P.ǃRW.Z (https://editor.construct.net/r15/components/editors/layoutView/layoutView.js:1:60138) at ǃr.Event.ǃJFl.ǃJFo (https://editor.construct.net/r15/main.js:2:282798) at window.ǃzw.dispatchEvent (https://editor.construct.net/r15/main.js:2:281377) at window.ǃzw.ǃ_M (https://editor.construct.net/r15/components/editors/layoutView/layoutView.js:1:16293) at Array.ǃR.ǃr.ǃV.ǃr.ǃE.ǃU.B (https://editor.construct.net/r15/components/editors/layoutView/layoutView.js:1:3662)
Construct 3 version: r15
URL: https://editor.construct.net/index.html
Date: Tue Apr 04 2017 22:14:32 GMT+0200 (Paris, Madrid (heure d’été))
Uptime: 13.4 s

Platform information
Browser: Chrome
Browser version: 57.0.2987.133
Browser engine: Blink
Browser architecture: 64-bit
Context: webapp
Operating system: Windows
Operating system version: 10
Operating system architecture: 64-bit
Device type: desktop
Device pixel ratio: 1
Logical CPU cores: 8
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

WebGL information
Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)
Numeric version: 2
Supports NPOT textures: yes
Vendor: Google Inc.
Renderer: ANGLE (NVIDIA GeForce GTX 970M Direct3D11 vs_5_0 ps_5_0)
Major performance caveat: no
Maximum texture size: 16384
Point size range: 1 to 1024
Extensions: EXT_color_buffer_float, EXT_disjoint_timer_query_webgl2, EXT_texture_filter_anisotropic, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context
My addons:
[PLUGIN]Value Monitor
[PLUGIN] Text Alignement
[BEHAVIOR]Timescale Ratio
[BEHAVIOR]Polar Coordinates
[PLUGIN]Action Sequence
[BEHAVIOR]Action Sequence
[BEHAVIOR]Instance Variable Control
B
35
S
6
G
2
Posts: 229
Reputation: 3,390

Post » Wed Apr 05, 2017 1:07 pm

Thanks, fixed for r16.
Scirra Founder
B
399
S
236
G
89
Posts: 24,524
Reputation: 195,380


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests