Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [V 2017.12.12] Method to analyze a crash

Author
Message
Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 20th Dec 2017 21:01
Hello,

I've a prototype application with a lot of tween animations (TweenSprite and TweenChain).
In the previous version, everything works but with the Version 2017.12.12, the application crashs (closed with no message).
I've tried the error commands (SetErrorMode, GetLastError) but no change.
I've add a lot of log to isolate the crash line => it's on the GetTweenSpritePlaying command.
I've tried to isolate the code in a mini-application without success.
The application is launched on windows. I tried to generate a html5 application and everything works.

There was some changes in tween commands in this new version :
- Added new commands to pause and resume tweens
- The GetTweenPlaying commands will now return 1 if the tween is currently playing as part of a tween chain
It's may-be linked.

My question is :
How to analyze a crash ?
In the event viewer I see an Exception code (0xc0000005) but I don't know what it represents.
Have you other techniques/softwares to analyze that ?

Thanks,
Riusz
puzzler2018
User Banned
Posted: 20th Dec 2017 21:12
Getting an error in Event logs for 0x0000005 represents a driver failure somewhere

What O/S are you running on and have you had any updates recently

Has it ever worked?

Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 20th Dec 2017 21:23
Thanks Puzzler2018 for your answer.
The code is 0xc0000005 (with a c) and not 0x0000005.
I'm on Windows 10 but I tried on a computer with Windows 7 and the result is the same.

It's worked with AppGameKit V2017.09.04. I install it again to confirm this information...

puzzler2018
User Banned
Posted: 20th Dec 2017 21:27
I meant with a "c" too

No probs - indeed let us know if reinstalling works.

Its always beneficial to uninstall your old versions before any new versions (save all your Projects first)

Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 20th Dec 2017 21:33
OK, I confirm : with AppGameKit Version 2017.09.04, it works (on the same OS) !
puzzler2018
User Banned
Posted: 20th Dec 2017 21:34
do you/could you send a sample code which causes the fault on your machine to see if it does the same on others
Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 21st Dec 2017 00:52
Trying to isolate the code that causes the crash I found an idiot case that works in the previous version but not in the new one.

To try, run the following code => OK in every version
Uncomment the line with the CreateTweenChain => KO in the Version 2017.12.12, OK in the Version 2017.09.04

code :

puzzler2018
User Banned
Posted: 21st Dec 2017 09:49
Happens to mine too

Least we got multiple hangs now on different PCs and maybe something Paul can look into

Even this doesnt work - stopped responding error cause i thought it maybe cause of the 1000000 that you put and had a memory conflict

this will allocate its own memory position and insert the location into variable tweenchain

tweenchain = createtweenchain()

but nope - seems to hang and crash too

puzzler2018
User Banned
Posted: 21st Dec 2017 10:03
But then after me pressing F1 on the command, it gave a great example on how to use it, i seen create tween in there and this seems to work great on my PC


Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 21st Dec 2017 12:45 Edited at: 21st Dec 2017 12:52
seems a id conflicit because id 1 is used again, myseld using always id=command()
if you start in debug and you get a crash then its something for @paul developer of agk.

crash


no crash
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : AMD (17.12.1) Radeon R7 265 : Mac mini OS High Sierra (10.13)
Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 21st Dec 2017 13:53
Thanks Markus.

I'm doing other tests :
With CreateTweenSprite(2,1.0) no crash except if you change the command to : GetTweenSpritePlaying(2,1) => both commands with tweenID = 2

New code that crashs :


Note : you've right it's better to use id=command() rather than command(id) but in some case, I find it practical to use command(id) for static things (if id<100000) and id=command() to dynamics ones.
And with command(id) you don't have to memorize the id's. Example :

But if it could make some issues, I'll use the good practice to oinly use commands like id=...
Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 21st Dec 2017 13:56
New test with only dynamics ID :


It crashs too !!!
@ Paul : Only you could help because it looks like a regression.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 21st Dec 2017 18:24 Edited at: 21st Dec 2017 18:27
now the print( GetTweenSpritePlaying ) have a problem
the CreateTweenChain example from here https://www.appgamekit.com/documentation/Reference/Tweening/CreateTweenChain.htm works ,
but in your case agk need a fix.
@paul
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : AMD (17.12.1) Radeon R7 265 : Mac mini OS High Sierra (10.13)
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Jan 2018 15:01
Thanks, fixed for the next version
Riusz
8
Years of Service
User Offline
Joined: 27th Feb 2016
Location:
Posted: 16th Jan 2018 15:35
Thank YOU Paul !!!

Login to post a reply

Server time is: 2024-04-18 09:39:29
Your offset time is: 2024-04-18 09:39:29