Lazarus

Programming => Widgetset => Cocoa => Topic started by: rlakis on May 16, 2019, 10:17:51 pm

Title: Lazarus Cocoa CPU 100% on idle
Post by: rlakis on May 16, 2019, 10:17:51 pm
I have compiled Lazarus from source code with "make LCL_PLATFORM=cocoa CPU_TARGET=x86_64", then I've noticed CPU becomes 100% used on idle.
I did compile a test program with forms, it is also 100% CPU usage on idle, please any advise?
Title: Re: Lazarus Cocoa CPU 100% on idle
Post by: Hansaplast on May 17, 2019, 12:26:29 am

I just update from trunk as well and can confirm what you're seeing.
CPU jumps very quick to 98% and a few seconds later gets stuck at 100%.
Sounds like something that should be reported as a bug.


I went back to r61170 (version I was working with earlier today) where I do not see that problem.
Code: [Select]
svn update -r r61170
Title: Re: Lazarus Cocoa CPU 100% on idle
Post by: Hansaplast on May 17, 2019, 12:31:02 am
I just posted a bug report. 0035593 (https://bugs.freepascal.org/view.php?id=35593)
Title: Re: Lazarus Cocoa CPU 100% on idle
Post by: Hansaplast on May 17, 2019, 12:58:46 am

I've tested r61229, r61228, r61227, r61226, r61225, r61222, 61212, 61210, 61208, ... they all have the same issue.
r61207 does NOT have this issue.


Could this submit be the cause?


Code: [Select]
r61208 | dmitry | 2019-05-12 03:20:44 +0200 (Sun, 12 May 2019) | 1 line
cocoa: getting rid of code duplication in event processing


Note, I'm running 61207 now;
Code: [Select]
svn update -r61207
Title: Re: Lazarus Cocoa CPU 100% on idle
Post by: Hansaplast on May 17, 2019, 02:06:29 am
Dmitry resolved this issue.
Do an SVN update (r61234) and you should be good to go  :)


Thanks Dmitry!!!  :)