[r197] Object causes javascript error (revised)

Bugs will be moved here once resolved.

Post » Tue Feb 17, 2015 5:25 pm

Problem Description

A bug occurs when Capx is run.
Pop up appear declaring bug.
Game can´t run.
Bug disappears if Family is deleted.
Bug happens with both physics engines.

Attach a Capx

Description of Capx
A simples scene with a rock that should fall down

Steps to Reproduce Bug

Open File and Run on
* Construct 2 beta 197
* Chrome Version 40.0.2214.111 m
* Windows 8.1


Observed Result

Messagem pop up with bug description.
Javascript console shows bug on Javascript

pre-main prep time: 0 ms
preview_prelude.js:57 Using Web Audio API, useOgg = true
preview_prelude.js:57 Using WebGL renderer: ANGLE (NVIDIA GeForce GTX 760 Direct3D11 vs_5_0 ps_5_0) [Google Inc.]
pre-main prep time: 0 ms
preview_prelude.js:57 Using WebGL renderer: ANGLE (NVIDIA GeForce GTX 760 Direct3D11 vs_5_0 ps_5_0) [Google Inc.]
preview_prelude.js:57 Max texture size: 16384
preview_prelude.js:57 Point size range: 1 to 1024
glwrap.js:292 WebGL extensions: ["ANGLE_instanced_arrays", "EXT_blend_minmax", "EXT_frag_depth", "EXT_shader_texture_lod", "EXT_sRGB", "EXT_texture_filter_anisotropic", "WEBKIT_EXT_texture_filter_anisotropic", "OES_element_index_uint", "OES_standard_derivatives", "OES_texture_float", "OES_texture_float_linear", "OES_texture_half_float", "OES_texture_half_float_linear", "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBKIT_WEBGL_compressed_texture_s3tc", "WEBGL_debug_renderer_info", "WEBGL_debug_shaders", "WEBGL_depth_texture", "WEBKIT_WEBGL_depth_texture", "WEBGL_draw_buffers", "WEBGL_lose_context", "WEBKIT_WEBGL_lose_context"]
Physics_behavior.js:7 Uncaught Assertion failed: 3 <= count && count <= 8, at: Box2D_v2.3.1/Box2D/Collision/Shapes/b2PolygonShape.cpp,122,Set at Error
at Error (native)
at fb ( http://localhost:50000/Physics_behavior.js:31:26 )
at e.Y.___assert_fail ( http://localhost:50000/Physics_behavior.js:174:221 )
at no ( http://localhost:50000/Physics_behavior.js:184:88686 )
at j.O.Set ( http://localhost:50000/Physics_behavior.js:734:237 )
at createPolygonShape ( http://localhost:50000/Physics_behavior.js:827:11 )
at behinstProto.createBody ( http://localhost:50000/Physics_behavior.js:1725:24 )
at behinstProto.postCreate ( http://localhost:50000/Physics_behavior.js:1332:8 )
at Runtime.createInstanceFromInit ( http://localhost:50000/preview.js:3198:28 )
at Layer.createInitialInstances ( http://localhost:50000/layout.js:1403:25 )
common_prelude.js:33 [Construct 2] Suspending

Expected Result
____ What do you expect to happen? ____

Affected Browsers
    [YES] Chrome: (YES)
    [YES] FireFox: (YES/NO)
    [UNK] Internet Explorer: (YES/NO)

Operating System and Service Pack
WIndows 8.1

Construct 2 Version ID
beta 197
You do not have the required permissions to view the files attached to this post.
Last edited by xexeo on Tue Feb 17, 2015 5:34 pm, edited 1 time in total.
Posts: 16
Reputation: 1,116

Post » Mon Feb 23, 2015 2:44 pm

Looks like box2d has a limit of 8 vertices per polygon. I've increased it to 16 for the next build, hopefully that will be enough.
Scirra Founder
Posts: 24,139
Reputation: 190,761

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest