[r66] Check failure when changing global var

Bugs will be moved here once resolved.

Post » Tue Nov 08, 2011 4:31 pm

definitely leaning towards the graphic card. Ashley, what graphics cards do you use?
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Nov 08, 2011 5:14 pm

Iv been working on my game for the last 12 hours with no problems then all of a sudden when I run layout the game works until I move my cursor over the game then everything freezes. This happens on all projects even the example files. But I don't seem to be getting the same type of crash as everyone else.

Mobile Intel(R) 4 Series Express
Windows 7, 64-bit
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Tue Nov 08, 2011 5:17 pm

@Wink, that sounds like a different bug, best make a separate thread about it - this thread is just about the variables bug.

I'm on a Radeon, so I guess after all this is a nVidia-specific bug. How strange! I'm just preparing another test build which should hopefully give some more information.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Nov 08, 2011 5:22 pm

Hey guys, i have a Radeon and got the bug when comparing a global variable.
B
12
S
2
G
5
Posts: 23
Reputation: 3,320

Post » Tue Nov 08, 2011 5:22 pm

OK Ashley will do. Looks like I have the worst graphics card of the bunch. lol
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Tue Nov 08, 2011 6:11 pm

OK, here's another test build:
http://www.scirra.com/downloads/releases/construct2-r66-2-tryfix3.exe
I doubt this fixes it, but should give us some more info to deal with the problem. When clicking Done in the parameters dialog in @Noga's original example, you should see a dialog like this:

[code]---------------------------
DEBUG
---------------------------
OKing event parameter dialog:

cursel = [0]
itemtext = [Variable1]
ev = 00000000024FB0A0
---------------------------
OK   
---------------------------[/code]

That verifies the combo is working properly - if itemtext is blank or 'ev' is all zeroes it's gone wrong.

Also, I added some extra checks so you might get a different message if something goes wrong.

Let me know how this works - hopefully we can get to the bottom of this ASAP and push out a 66.2 update :-\
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Nov 08, 2011 6:16 pm

Ok, tried the new fix and I'm not getting the above dialog at all, just the same old "Check failure!" error. :/Nickydude2011-11-08 18:18:42
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Nov 08, 2011 6:21 pm

Just tried new build and got......
---------------------------
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.
---------------------------
Abort   Retry   Ignore   
---------------------------


So, no change unfortunately :(

*** EDIT ***

Just noticed that unlike the original build, this one does show the comments in Event view.zenox982011-11-08 19:49:24
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Tue Nov 08, 2011 6:25 pm

Crashes dead on doing something with instance variables in events, but at least global ones work ok now (got an error message then crash previously).
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Tue Nov 08, 2011 6:26 pm

Looks like the same error

---------------------------
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.
---------------------------
Abort   Retry   Ignore   
---------------------------
when trying to change a global var with events
and when i try instance i get the same old hard crash with no info.
B
15
S
1
G
2
Posts: 62
Reputation: 1,696

PreviousNext

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests