Generated EXE get to 100% CPU after close

For general discussion related FlowStone
Post Reply
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Generated EXE get to 100% CPU after close

Post 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
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Generated EXE get to 100% CPU after close

Post by Tronic »

taskkill info link

file bat with this line

taskkill /f /fi "status eq not responding"
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Generated EXE get to 100% CPU after close

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: Generated EXE get to 100% CPU after close

Post 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?
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Generated EXE get to 100% CPU after close

Post 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?
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: Generated EXE get to 100% CPU after close

Post 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
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Generated EXE get to 100% CPU after close

Post 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.
Post Reply