explination for a specific crash & a bug

For questions about using Classic.

Post » Tue Jun 03, 2008 10:05 pm

1/ the crash

Ashley i finaly tracked down the cause of 90% of the crashes i had last days.

I been so stupid to make a private variable.
Make it numeric by accident.
Give it a string as start value.

But in the events/actions i gave it string value's.

Result:
Crashes all over.
Not able to delete the object holding the private variable in the layout editor.
Accessing the objects private variables to check/change whats gooing on = a crash
Accessing other objects private variables = crash.
Make a new private variable in any object = crash

I was able to fix my .cap by
changing each event/action that treathed the private variable as beeing a string to a numeric value.

Then everything returned to normal.

PlZzzzzzzzzzzz "syntax error" this out, because its an easy error to make.


2/ the bug

Dragging a blok of events under a comment, so they make up a tree, with the comment as top branche ...

Makes the whole blok events dissapear.
They just poof.

Undo dont bring em back.

very scaring !!!!!!!
B
3
S
2
G
4
Posts: 322
Reputation: 2,119

Post » Wed Jun 04, 2008 3:50 am

Yeah, that's a pretty big oversight. Construct should determine when this is inappropriate and disallow it.
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Wed Jun 04, 2008 2:04 pm

#1 - I can't reproduce this. I've given a Sprite object with a private variable of 'Number' type an initial value of "Hello". It works fine, all that happens is the runtime interprets the text as a number, which does not crash - usually it just gives the variable a starting value of 0. You should send or upload a .cap that crashes so I can take a look, since it doesn't sound like initial values are a problem...

#2 - I'll take a look soon, could you add it to the bug tracker?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Jun 04, 2008 4:08 pm

Ugh i can not reproduce the crash too.

Changing that private variable to numeric does not crash now.
And any new .cap i make, trying to reproduce, dont crash.

But see Ashley, i noticed in a .bak.cap that the variable was set too numeric.
After step by step gooing trough the whole dang thing.

10 other backups crashed. Even after a reboot.

I was like sure i would have to start over.
Then i had the idea to change every event and action adressing this private variable to numeric sets.

And suddenly the .cap worked again.

The weird thing is: also the 10 backups that crashed yesterday, dont crash today.

Sounds weird huh ? i know.
B
3
S
2
G
4
Posts: 322
Reputation: 2,119

Post » Wed Jun 04, 2008 10:55 pm

It sounds like you need to restart your computer more often. :)

In any case, I don't feel Construct should allow this mismatch. Ashley, would there be any practical use for this?
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Wed Jun 04, 2008 11:23 pm

No practical use. Since it is misleading, I've made a change for the next build. If you type text for the value, but leave the type as Number, it changes the value to 0 (which is what the runtime would interpret it as anyway).
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests