Page 1 of 1

Generated EXE get to 100% CPU after close

Posted: Tue Mar 25, 2014 8:14 am
by chackl
Hello!

What could be done, if an exe does not close in background and if it just eats up 100% cpu on a single core after closing it?

EXE was in fullscreen and got exit by the primitive.

Regards
C.Hackl

Re: Generated EXE get to 100% CPU after close

Posted: Tue Mar 25, 2014 8:55 am
by Tronic
taskkill info link

file bat with this line

taskkill /f /fi "status eq not responding"

Re: Generated EXE get to 100% CPU after close

Posted: Tue Mar 25, 2014 11:37 am
by tester
I remember there was a discussion here on ruby and overload with amount of ruby modules. But if this is exe fullscreen only - I guess this isn't it.

Re: Generated EXE get to 100% CPU after close

Posted: Tue Mar 25, 2014 12:48 pm
by chackl
Oha... there a realy LOADS of very BIG ruby modues inside :shock:
The fsm measures about 3MB, the uncompressed EXE about 10mb and there is about 90% ruby inside :/

An the Ruby code inside is timer-based so it is executed about 10 times each second. The Exe needs about 20% CPU on a 2,1 GHZ dual core here.

An no i checked it now - it is not a fullscreen issue.

Is taskkill the only way to get this for the moment?

Re: Generated EXE get to 100% CPU after close

Posted: Tue Mar 25, 2014 2:17 pm
by Tronic
hard to know without more info.
I will say things at random:
You have open connections?
save some files when closing the app?
tried to stop the ruby garbage collect before closing the app?

Re: Generated EXE get to 100% CPU after close

Posted: Tue Mar 25, 2014 2:31 pm
by chackl
Tronic wrote:hard to know without more info.
I will say things at random:
You have open connections?
save some files when closing the app?
tried to stop the ruby garbage collect before closing the app?


Everything is stopped before exit - the exit comes with a timer after stop after 500ms.
There are no files saved and i also tried to reset the ruby objects.
But it randomly does not exit

regards

Re: Generated EXE get to 100% CPU after close

Posted: Thu Mar 27, 2014 9:28 am
by Tronic
what you mean with
i also tried to reset the ruby objects.

try to disable the ruby garbage collector with the ruby code command:

GC.disable

and also you can utilize the primitive

[ About to Close ]

to send the trig to the primitive

[ Exe Quit ]

when all is done before to quit.