[r66] Check failure when changing global var

Bugs will be moved here once resolved.

Post » Mon Nov 07, 2011 4:14 pm

C2 crashes when changing value of a global variable. I've tried
On start of layout - Set global var to 1 = than it crashed
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Mon Nov 07, 2011 4:22 pm

I can't reproduce. Did you click 'Back' in the dialog or some extra step I'm missing?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon Nov 07, 2011 4:35 pm

My exact steps, if it helps:

Started the C2
on the welcome window - Create new Project
store project in single file - Create project
Event Sheet - add global var - ok(default values)
Add event - System - On start of layout
Add action - System - set value to 1 - Done > crash

I'll try 32-bit version..Noga2011-11-07 16:39:10
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Mon Nov 07, 2011 4:37 pm

Those steps work fine here. Does it happen every time if you do it again?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon Nov 07, 2011 4:48 pm

I've got the same problem here. I tried to modify a global value and get this:

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

Returning NULL event variable

Condition: event_var != NULL
File: Projects\Parameters.cpp
Line: 285
Function: class EventVariable *__thiscall EventParameter::GetEventVariable(void) const
Build: release 66 (32-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.
B
33
S
4
G
5
Posts: 9
Reputation: 5,535

Post » Mon Nov 07, 2011 4:49 pm

I followed those steps from Noga and got the same error.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,840
Reputation: 48,281

Post » Mon Nov 07, 2011 4:53 pm

Yep, same crash following Noga's steps:

Win 7
Nvidia 8800 GT
32 bit
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Mon Nov 07, 2011 5:21 pm

[QUOTE=Ashley] Those steps work fine here. Does it happen every time if you do it again?[/QUOTE]

I've changed default values when adding new global var (Variable1 to MyVar, Initial value 0 to 5 and Description to sometext) and it didn't crash, but only one time out of maybe 20, when trying to reproduce it. Now it crashes everytime, same with 32bit version.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Mon Nov 07, 2011 5:37 pm

The problem only happens when there is nothing in the "description" box, when I try to create a new global variable or object instance variable. So, try to leave the "description (optional)" box always in blank and calls the variable or property by a new event to reproduce the error.
B
5
G
1
Posts: 5
Reputation: 758

Post » Mon Nov 07, 2011 6:05 pm

I've tried both the 32 and 64 bit builds, and some different projects. It works fine for me, can't get it to crash at all. If you click 'ignore' does it continue to work or does it crash afterwards?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests