Construct-bugs icon indicating copy to clipboard operation
Construct-bugs copied to clipboard

C3 crash randomly when (i think) copying sprites

Open shotgunanaconda opened this issue 9 months ago • 9 comments

I can not replicate this, I dont even know what triggers this but it keeps happening regularly in my project and I keep losing progress, thus the report. Regurarly means at least once a day. Usually when I'm drag copying something in my layout. I've attached the error report information.

Attach a .c3p

Steps to reproduce

Observed result

Expected result

No crash

More details

First affected release:

Latest stables but has been happening for a while, the last 2 stables for sure.

System details

Error report information Type: unhandled exception File: https://editor.construct.net/r432-2/projectResources.js, line 1, col 6152 Message: Uncaught Error: item not found Stack: Error: item not found at t.h1t (https://editor.construct.net/r432-2/projectResources.js:1:6158) at t.h1t (https://editor.construct.net/r432-2/projectResources.js:1:496790) at t.QSt (https://editor.construct.net/r432-2/projectResources.js:1:138861) at t.$gt (https://editor.construct.net/r432-2/projectResources.js:1:71408) at t.cW (https://editor.construct.net/r432-2/projectResources.js:1:138277) at gi.aM (https://editor.construct.net/r432-2/components/editors/layoutView/layoutView.js:1:128243) at Array.rM (https://editor.construct.net/r432-2/components/editors/layoutView/layoutView.js:1:125589) at ud.Event.OAi.BAi (https://editor.construct.net/r432-2/main.js:29:223448) at window.Cht.dispatchEvent (https://editor.construct.net/r432-2/main.js:29:221325) at window.Cht.aM (https://editor.construct.net/r432-2/components/editors/layoutView/layoutView.js:1:24330) Construct version: r432.2 URL: https://editor.construct.net/ Date: Sun Mar 30 2025 17:19:15 GMT+0200 (Central European Summer Time) Uptime: 802.3 s

Platform information Product: Construct 3 r432.2 (stable) Browser: Chrome 134.0.6998.167 Browser engine: Chromium Context: webapp Operating system: Windows 10 Device type: desktop Device pixel ratio: 1 Logical CPU cores: 20 Approx. device memory: 8 GB User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Language setting: en-US

WebGL information Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium) Numeric version: 2 Supports NPOT textures: yes Supports GPU profiling: no Supports highp precision: yes Vendor: Google Inc. (NVIDIA) Renderer: ANGLE (NVIDIA, NVIDIA GeForce RTX 3070 (0x00002488) Direct3D11 vs_5_0 ps_5_0, D3D11) Major performance caveat: no Maximum texture size: 16384 Point size range: 1 to 1024 Extensions: EXT_clip_control, EXT_color_buffer_float, EXT_color_buffer_half_float, EXT_conservative_depth, EXT_depth_clamp, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_polygon_offset_clamp, EXT_render_snorm, EXT_texture_compression_bptc, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_mirror_clamp_to_edge, EXT_texture_norm16, KHR_parallel_shader_compile, NV_shader_noperspective_interpolation, OES_draw_buffers_indexed, OES_sample_variables, OES_shader_multisample_interpolation, OES_texture_float_linear, OVR_multiview2, WEBGL_blend_func_extended, WEBGL_clip_cull_distance, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw, WEBGL_polygon_mode, WEBGL_provoking_vertex, WEBGL_stencil_texturing

shotgunanaconda avatar Mar 30 '25 15:03 shotgunanaconda

As per the bug report guidelines I'm afraid it's often impossible to investigate issues like this which don't include any sample project or steps to reproduce, as it means there is nothing for us to investigate. However based on the crash message it looks like it might be related to the Instances Bar, so assigning @DiegoScirra to take a look.

AshleyScirra avatar Apr 01 '25 09:04 AshleyScirra

Thanks Ashley, there has been similar reports in the Discord. If i can replicate I will post an example but I havent been able to yet.

shotgunanaconda avatar Apr 01 '25 14:04 shotgunanaconda

Are you able to share your project?

The crash suggests the problem has something to do with cloning instances which are inside a folder in the Instances bar. I have tried replicating the problem but haven't been able to, so maybe there is something about a specific folder structure.

DiegoScirra avatar Apr 23 '25 13:04 DiegoScirra

@DiegoScirra can I share it privately with you? It’s my full game so I don’t want to open it to everyone. If you got an email I can share it through git and make you a branch (project probably needs some addons). I can reach out on discord if you prefer too.

shotgunanaconda avatar Apr 24 '25 08:04 shotgunanaconda

Oh, it's ok then, it probably won't help much unless it's a specific project that replicates the problem consistently.

I'll keep trying to figure out what the problem is.

DiegoScirra avatar Apr 25 '25 21:04 DiegoScirra

Not sure if helpful or not, but another crashlog where i tried to move and copy an item by pressing ctrl. Two items are overlapping each other (same size and position).

Error report information Type: unhandled exception File: https://editor.construct.net/r432-3/projectResources.js, line 1, col 6148 Message: Uncaught Error: item not found Stack: Error: item not found at t.QXt (https://editor.construct.net/r432-3/projectResources.js:1:6154) at t.QXt (https://editor.construct.net/r432-3/projectResources.js:1:493903) at t.wL (https://editor.construct.net/r432-3/projectResources.js:1:138504) at t.JD (https://editor.construct.net/r432-3/projectResources.js:1:71287) at t.nL (https://editor.construct.net/r432-3/projectResources.js:1:137942) at gi.NG (https://editor.construct.net/r432-3/components/editors/layoutView/layoutView.js:1:123389) at Array.FG (https://editor.construct.net/r432-3/components/editors/layoutView/layoutView.js:1:120832) at ud.Event.TAi.RAi (https://editor.construct.net/r432-3/main.js:29:223513) at window.SM.dispatchEvent (https://editor.construct.net/r432-3/main.js:29:221392) at window.SM.NG (https://editor.construct.net/r432-3/components/editors/layoutView/layoutView.js:1:23647) Construct version: r432.3 URL: https://editor.construct.net/ Date: Sat Apr 26 2025 17:12:21 GMT+0200 (Central European Summer Time) Uptime: 16798.6 s

Platform information Product: Construct 3 r432.3 (stable) Browser: Chrome 135.0.7049.96 Browser engine: Chromium Context: webapp Operating system: Windows 10 Device type: desktop Device pixel ratio: 1 Logical CPU cores: 20 Approx. device memory: 8 GB User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Language setting: en-US

WebGL information Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium) Numeric version: 2 Supports NPOT textures: yes Supports GPU profiling: no Supports highp precision: yes Vendor: Google Inc. (NVIDIA) Renderer: ANGLE (NVIDIA, NVIDIA GeForce RTX 3070 (0x00002488) Direct3D11 vs_5_0 ps_5_0, D3D11) Major performance caveat: no Maximum texture size: 16384 Point size range: 1 to 1024 Extensions: EXT_clip_control, EXT_color_buffer_float, EXT_color_buffer_half_float, EXT_conservative_depth, EXT_depth_clamp, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_polygon_offset_clamp, EXT_render_snorm, EXT_texture_compression_bptc, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_mirror_clamp_to_edge, EXT_texture_norm16, KHR_parallel_shader_compile, NV_shader_noperspective_interpolation, OES_draw_buffers_indexed, OES_sample_variables, OES_shader_multisample_interpolation, OES_texture_float_linear, OVR_multiview2, WEBGL_blend_func_extended, WEBGL_clip_cull_distance, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw, WEBGL_polygon_mode, WEBGL_provoking_vertex, WEBGL_stencil_texturing

shotgunanaconda avatar Apr 26 '25 15:04 shotgunanaconda

I found and fixed a possibly related issues in which setting a hierarchy through the Instances bar left some of the instances involved in an inconsistent state which didn't crash right away, but was prone to do so later on.

That will go out in the next beta, since it's not exactly the same problem this issue will remain open, but maybe it will be gone with the next update.

DiegoScirra avatar Apr 28 '25 16:04 DiegoScirra

amazing, thank you @DiegoScirra, hopefully that fixes some situations

shotgunanaconda avatar Apr 28 '25 18:04 shotgunanaconda

Unfortunately trying to fix this introduced the much worse #8576 in r437. The good thing is that one is an easy fix, the bad thing is that it has pretty bad effects. It's probably better to wait for the next beta when that one is sorted out, before looking at this again.

DiegoScirra avatar May 01 '25 12:05 DiegoScirra

I'll close this now as I was never able to replicate the original issue.

DiegoScirra avatar Jun 05 '25 22:06 DiegoScirra

I keep getting these crashes @DiegoScirra @AshleyScirra , I've now moved to the latest stable since my old game is released and it's still happening in my new project. But the error message is different than before. This happened when i tried to add a instance value to a family. What i think happened:

  1. i added the value first to the instance itself
  2. realized this was wrong, deleted said value
  3. clicked on family, clicked on add value
  4. added the same value

My theory is either the deletion doesn't work properly/fast enough OR it tries adding it twice when i pressed ENTER on my keyboard. I've noticed this sometimes when adding Effects that it adds them twice for no reason, which i've always assumed has been that construct for some reason reads my input twice in a very quick succession:

Error report information Type: unhandled rejection Reason: Error: name 'opened' already in object class 'lootContainer' namespace @ Error: name 'opened' already in object class 'lootContainer' namespace at t.tK (https://editor.construct.net/r458-2/projectResources.js:1:61614) at https://editor.construct.net/r458-2/projectResources.js:1:1623147 Stack: Error: name 'opened' already in object class 'lootContainer' namespace at t.tK (https://editor.construct.net/r458-2/projectResources.js:1:61614) at https://editor.construct.net/r458-2/projectResources.js:1:1623147 Construct version: r458.2 URL: https://editor.construct.net/ Date: Thu Nov 27 2025 20:27:12 GMT+0100 (Central European Standard Time) Uptime: 16430 s

Platform information Product: Construct 3 r458.2 (stable) Browser: Chrome 142.0.7444.176 Browser engine: Chromium Context: browser Operating system: Windows 10 Device type: desktop Device pixel ratio: 1 Logical CPU cores: 20 Approx. device memory: 8 GB User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Language setting: en-US

WebGPU information Renderer: WebGPU Supports GPU profiling: yes Major performance caveat: no Maximum texture size: 16384 Adapter vendor: nvidia Adapter architecture: blackwell Adapter device: (unavailable) Adapter description: (unavailable) Adapter type: (unavailable) Adapter backend: (unavailable) Adapter features: bgra8unorm-storage, clip-distances, core-features-and-limits, depth-clip-control, depth32float-stencil8, dual-source-blending, float32-blendable, float32-filterable, indirect-first-instance, primitive-index, rg11b10ufloat-renderable, shader-f16, subgroups, texture-compression-bc, texture-compression-bc-sliced-3d, texture-formats-tier1, texture-formats-tier2, timestamp-query

shotgunanaconda avatar Nov 27 '25 19:11 shotgunanaconda

I'm afraid as per the bug report guidelines it's usually impossible to help unless you file an issue following all the guidelines. That means providing a sample project file and steps to follow to reproduce the problem.

AshleyScirra avatar Nov 28 '25 09:11 AshleyScirra

Sadly I can't reproduce it but it's a common occurrence and seems to have something to do with families because it happens when i add values, copy paste instances or even add things to the family.

shotgunanaconda avatar Nov 28 '25 21:11 shotgunanaconda