Crash when changing an object's color twice then resizing it

All closed bug reports are moved here.

Post » Wed Apr 05, 2017 9:39 am

1. Steps to reproduce

Create a new sprite, give it a color with the paint bucket, then select another color and apply it with the paint bucket.
Resize it to a smaller size. For example 125x125.
Click the close button to go back to the editor
The editor crashes

It also crashes when creating a sprite, changing its color and resizing it, then creating another sprite, changing its color and resizing it.

It doesn't crash when resizing to a greater value, but resizing to a greater value seems bugged in C3 (it just adds empty space instead of enlarging the picture).

2. Observed results
The editor crashes.

3. Expected result
That the editor doesn't crash

4. C3P file
Not sure if it is useful as it is so easy and fast to reproduce, but here is it


And the crash info :
Error report information
Type: unhandled rejection
Reason: TypeError: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'.
Construct 3 version: r15
URL: https://editor.construct.net/index.html
Date: Wed Apr 05 2017 11:19:51 GMT+0200 (Central Europe Daylight Time)
Uptime: 42.5 s
Platform information
Browser: Chrome
Browser version: 57.0.2987.133
Browser engine: Blink
Browser architecture: 64-bit
Context: browser
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 960 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
B
32
S
6
G
1
Posts: 352
Reputation: 2,812

Post » Wed Apr 05, 2017 12:45 pm

Confirmed. Only happens with new created sprite before leaving the sprite editor. Also, you just need to "Fill" the canvas once then resize to something smaller. On exiting Sprite editor will crash.
B
40
S
9
G
5
Posts: 177
Reputation: 6,805

Post » Wed Apr 05, 2017 3:57 pm

can confirm too , can confirm that it resolves somehow too after being opened again in another tab shortly shortly after the update is available for offline notification comes up 1-2mins after.
Error report information
Type: unhandled rejection
Reason: TypeError: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'.
Construct 3 version: r15
URL: https://editor.construct.net/
Date: Wed Apr 05 2017 16:53:51 GMT+0100 (GMT Daylight Time)
Uptime: 26.1 s

Platform information
Browser: Chrome
Browser version: 57.0.2987.133
Browser engine: Blink
Browser architecture: 32-bit
Context: browser
Operating system: Windows
Operating system version: 10
Operating system architecture: 64-bit
Device type: desktop
Device pixel ratio: 0.8999999761581421
Logical CPU cores: 4
User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) 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 (AMD Radeon R9 200 Series 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
B
31
S
6
G
2
Posts: 237
Reputation: 2,953

Post » Thu Apr 06, 2017 2:33 pm

Can confirm.
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Thu Apr 06, 2017 3:07 pm

Can Fix.

Will be available in r17.
Scirra Employee
B
10
S
5
G
2
Posts: 132
Reputation: 2,356

Post » Thu Apr 06, 2017 3:11 pm

@Rable

Regarding this

It doesn't crash when resizing to a greater value, but resizing to a greater value seems bugged in C3 (it just adds empty space instead of enlarging the picture).


I think that the problem is that the default option of the resize tool is to keep the image in the top left corner. If you keep that option it seems as the command is only adding space to the left and bottom of the image. I think you were expecting for the color to fill up all the space because that is what C2 does by default. To do the same in C3 pick the Strech option in the Image dropdown.
Scirra Employee
B
10
S
5
G
2
Posts: 132
Reputation: 2,356

Post » Thu Apr 06, 2017 8:11 pm

Thanks for clarifying this @DiegoM,
Indeed I saw it was different from C2 so assumed it may be a bug.
B
32
S
6
G
1
Posts: 352
Reputation: 2,812


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests