Construct 2 freezes. Million errors. Help me!

Discussion and feedback on Construct 2

Post » Wed Jun 12, 2013 5:52 am

@Ashley @Kyatric

So I've done some very thorough testing and stripping down of my project to find the culprit. No such luck, but removing all of the text objects in my game lets me be able to run it as many times as I want without problem. Prior to this, I tried removing all plugins, all event sheets, all spriter files, and quite a few layouts and nothing made a difference.

I can confirm it is not just a problem on my computer because the capx yields essentially the same results on other users' computers (rook, kyatric, and frenchyann so far).

Removing all of the objects let me actually read the first C2 error I've gotten so far:

---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

GetHICON returned NULL

Condition: ret != NULL
File: Projects\ObjectTexture.cpp
Line: 556
Function: struct HICON__ *__cdecl ResizeBitmapToIcon(const class cr::vector2_base<int> &,class Gdiplus::Bitmap *,int)
Build: release 133 (64-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 0)

You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
---------------------------
Abort   Retry   Ignore   
---------------------------

This error happens once I open several layouts. This leads me to think there is some memory threshold that causes C2 to no longer function. In the full game, it always crashes and the ram use is around 215,000 KB. With a ton of objects removed, it crashes around a similar level (though usually closer to 230,000 KB) but gives the above error instead. So far, removing all text objects seems to be the difference between an actual error message and total UI meltdown. I have 4 GB of ram and 1 GB of vram, so I wouldn't think this would be enough to cause issues.

Previously, all errors were "encountered an improper..." and sometimes a resource error. I haven't been able to create a minimal capx to isolate the problem. Text objects alone don't cause it alone. They do, at times, seem to prevent C2 from properly displaying an error. But all of the errors seem to occur when I get between 215,000 KB and 220,000 KB of ram use in Task Manager.

I'm going to try to make another capx with about that size of ram use (c2 editor, not runtime), but that will take longer than I have available tonight.
B
90
S
32
G
14
Posts: 935
Reputation: 14,540

Post » Wed Jun 12, 2013 6:12 pm

@C-7
Interesting that you get a readable error! This crash still happens to me and it's good to see the bug almost becoming isolated!
Looking into it, (I'm no expert but), this partiuclar line:

Function: struct HICON__ *__cdecl ResizeBitmapToIcon(const class cr::vector2_base<int> &,class Gdiplus::Bitmap *,int)

Gives me idea that there's some sort of problem with the way C2 generates icons? I guess @Ashley needs to look at this rather than me taking guesses lol.

EDIT: Didn't realise there was a new update, that changes some stuff to do with Icons!Jase002013-06-12 18:22:40
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Thu Jun 13, 2013 2:35 am

So far the 134 release seems to have corrected things. I haven't gotten a crash yet and text works again. The actual runtime seems to run a little slower, but that may or may not be true.

Great update! I'm glad C2 is back to working for me!
B
90
S
32
G
14
Posts: 935
Reputation: 14,540

Post » Thu Jun 13, 2013 7:02 am

@C-7: It's likely the issue with the text object was linked to the webGL bug that was corrected in r134.

Just out of curiosity have you put back the third-part plugins in your project ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Jun 13, 2013 1:56 pm

@Kyatric
Yep, they're still in it and everything is fine. During the massive debug I just made a duplicate of the game and deleted things from there. Once 134 rolled out, I just reverted to my original file and all was well. From the 134 change log, it looks like 9-patch objects were having issues and I hadn't tried removing those yet, so that may have been it. Regardless, thanks for the help and I'm glad the update cured it all!
B
90
S
32
G
14
Posts: 935
Reputation: 14,540

Post » Wed Jun 19, 2013 8:18 pm

This is exciting news! The crashes still happened to me after I made this topic. I'm glad to hear that it's fixed! :)
B
21
S
6
G
3
Posts: 64
Reputation: 2,924

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests