#472 CPU 100% when ooDialog program started through explorer



This is just a copy and paste of the CPU 1005 problem I talked about on the devel list. It may very well be that this has the same root cause as some of the other excessive CPU bugs. I thought it best to just open up a new bug and track what I know for sure.

I have tracked down a repeatable way of pegging the CPU at 100%, and a hack that fixes it.


Any ooDialog program. Program extension is .rex, ftype association is the default of .rex associated with rexx.exe. A good example is the sample.rex program.

If you double click on the icon of the program, either on the Desktop or in explorer, the rexx process and the rxapi process will use 100% of the CPU. The CPU is split between the 2, but not evenly. rexx.exe takes more than rxapi.

On a dual processor system (including dual core) the CPU is 50 %. (Which makes sense of course, one processor is maxed out, the other is free.)

If you start the same ooDialog program from the command line, CPU is normal, always.

If you start the ooDialog program using rexxhide, CPU is normal. For rexxhide, what I mean is that if .rex is associated with rexxhide instead of rexx, then double clicking on the program icon does not use excessive CPU. Or if you set up the icon to start the ooDialog with rexxhide instead of rexx then CPU is normal.

Hack / work around:

In plbdlg.cls you have the run method. If I add in a do-nothing start, the problem completely goes away. As far as I can tell, always.

::method Run unguarded protected
use arg sleeptime
if Arg(1,'o') = 1 then sleeptime = 0

msgObj = self~start("workAround") <-- add
drop msgObj <-- add

do while self~finished = 0

::method workAround <-- add empty method

In private e-mail I have had a 3 people verify both the repeatability of the problem and that the work around fixes it.


  • Lee Peedin

    Lee Peedin - 2007-12-04

    Logged In: YES
    Originator: NO

    I just attempted to duplicate this and was partially successful. On a dual processor system I see CPU usage from 17% to 30% on an ooDialog program that I created myself that "has buttons". If I execute a "static" dialog, I see no CPU usage at all once the dialog is displayed. When running the sample.rex program I see from 22% to 37% cpu usage. I also noticed that when running sample.rex, there was a "delay" on clicking the Exit button or the X in the upper right corner.

    Also, I see no difference with sample.rex after modifying pbldlg.cls as you described above.

    It's been a while since I rebooted, so will reboot and try the tests again.


  • Lee Peedin

    Lee Peedin - 2007-12-04

    Logged In: YES
    Originator: NO

    I just rebooted and executed sample.rex again (from Explorer). As you can see from the attached screen dump, rexx.exe & rxapi.exe are using 0% of the CPU.

    Maybe I misunderstood this bug - does this occur for you with 3.2 or with the current SVN compile?

    File Added: sample_execution.jpg

  • Lee Peedin

    Lee Peedin - 2007-12-04
  • Mark Miesfeld

    Mark Miesfeld - 2009-11-08

    Committed revision 5312.

    I believe this is fixed with commit 5312. The fix will be in the next release of ooRexx.

    Please look at the bug: 2303747 CPU LOAD 100% for details and a work around you may wish to use until the next release

  • Mark Miesfeld

    Mark Miesfeld - 2010-02-27

    The fix for this will have to come in a release after 4.0.1

  • Mark Miesfeld

    Mark Miesfeld - 2010-02-28

    Committed revision 5658.

    4.0.1 merge.

  • Mark Miesfeld

    Mark Miesfeld - 2010-03-27

    Hmm, I didn't put too good of a note in this, and forgot exactly what I had done.

    At first I was not going to put this fix in the 4.0.1 release, because the original commit had a lot of other stuff in it that couldn't go into 4.0.1. Looked like too much work to sort it out.

    Then, I had some time and merged just the fix into 4.0.1 manually.

    So, 5658 is the fix and it is in 4.0.1

  • Mark Miesfeld

    Mark Miesfeld - 2010-08-23

    The fix for this item was in the 4.0.1 release.



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks