app hangs consuming CPU on launch

bruce's Avatar

bruce

21 Jul, 2022 12:14 AM

Moneydance 2022 was working (except for the check clearing issue I reported in another thread) but now when I launch it (on macos, both 12.4 and 12.5) it hangs. The moneydance app consumes 300-500 CPU% and kernel taking 120% (on an M1 mac). UI is unresponsive. It hangs like that for maybe 10 minutes, and then suddenly is responsive again. It started doing that yesterday and has done it the 3 times it has been launched recently.

I'm attaching a sample of the process, though I have no idea if that helps given java and rosetta.

Bruce

  1. 1 Posted by Aidan Magill on 21 Jul, 2022 11:52 AM

    Aidan Magill's Avatar

    Having the exact same problem, with the first launch of the day. Once it becomes responsive iot's fine. Is it doing some kind of cleanup when you open it?

  2. 2 Posted by Stuart Beesley ... on 21 Jul, 2022 12:11 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Are you using Dropbox connection for sync? If so, try switching to DB Folders, after installing Dropbox client)… ?

  3. 3 Posted by bruce on 21 Jul, 2022 12:33 PM

    bruce's Avatar

    Local files. No dropbox.

    Bruce

  4. 4 Posted by Stuart Beesley ... on 21 Jul, 2022 01:55 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Ok. Can you install toolbox extension. Restart MD. Then open menu help/console and save that output as a file and post that.

  5. 5 Posted by bruce on 21 Jul, 2022 02:12 PM

    bruce's Avatar

    Restarted with Toolbox installed. Was unresponsive for awhile, then I grabbed the console output.

    Bruce

  6. 6 Posted by Stuart Beesley ... on 21 Jul, 2022 03:02 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    this is the problem:

    Exception in thread "MD+ monitor" Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
        at java.base/sun.util.locale.provider.CalendarProviderImpl.getInstance(Unknown Source)
        at java.base/java.util.Calendar.createCalendar(Unknown Source)
        at java.base/java.util.Calendar.getInstance(Unknown Source)
        at org.jfree.chart.axis.DateTickUnit.addToDate(DateTickUnit.java:238)
        at org.jfree.chart.axis.DateAxis.refreshTicksHorizontal(DateAxis.java:1685)
        at org.jfree.chart.axis.DateAxis.refreshTicks(DateAxis.java:1556)
        at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:807)
        at org.jfree.chart.plot.XYPlot.calculateDomainAxisSpace(XYPlot.java:3070)
        at org.jfree.chart.plot.XYPlot.calculateAxisSpace(XYPlot.java:3028)
        at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3156)
        at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1235)
        at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1668)
    

    It's to do with graphing some of your data. I'll have to do some digging..

  7. 7 Posted by Aidan Magill on 21 Jul, 2022 03:31 PM

    Aidan Magill's Avatar

    No - only sync to icloud.

    Aidan

  8. 8 Posted by Aidan Magill on 21 Jul, 2022 03:38 PM

    Aidan Magill's Avatar

    Don't have the option to install extensions as using the App on a Mac Mini.

    But have saved console output - see attached.

    Aidan

  9. 9 Posted by Stuart Beesley ... on 21 Jul, 2022 03:41 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    You both have out of heap space issues. First quick test, can you disable the bundled Foresight extension/feature. To do this, preferences, summary page, find foresight and remove it from left and right views. Save. Restart md. Grab and post a new console.

  10. 10 Posted by Aidan Magill on 21 Jul, 2022 03:41 PM

    Aidan Magill's Avatar

    I think you'll find a similar exception in my console output.

    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java
    heap space
         at java.base/java.util.Arrays.copyOf(Unknown Source)
         at java.base/java.util.ArrayList.grow(Unknown Source)
         at java.base/java.util.ArrayList.grow(Unknown Source)
         at java.base/java.util.ArrayList.add(Unknown Source)
         at java.base/java.util.ArrayList.add(Unknown Source)
         at
    org.jfree.chart.axis.DateAxis.refreshTicksHorizontal(DateAxis.java:1682)
         at org.jfree.chart.axis.DateAxis.refreshTicks(DateAxis.java:1556)
         at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:807)
         at
    org.jfree.chart.plot.XYPlot.calculateDomainAxisSpace(XYPlot.java:3070)
         at org.jfree.chart.plot.XYPlot.calculateAxisSpace(XYPlot.java:3028)
         at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3156)
         at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1235)
         at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1668)
         at java.desktop/javax.swing.JComponent.paint(Unknown Source)
         at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
         at java.desktop/javax.swing.JComponent.paint(Unknown Source)
         at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
         at java.desktop/javax.swing.JComponent.paint(Unknown Source)
         at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
         at java.desktop/javax.swing.JComponent.paint(Unknown Source)
         at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at
    java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(Unknown
    Source)
         at
    java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown
    Source)
         at
    java.desktop/javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
         at java.desktop/javax.swing.RepaintManager.paint(Unknown Source)
         at java.desktop/javax.swing.JComponent._paintImmediately(Unknown
    Source)
         at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
         at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
         at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
         at
    java.base/java.security.AccessController.executePrivileged(Unknown Source)
         at java.base/java.security.AccessController.doPrivileged(Unknown
    Source)
         at
    java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
    Source)

    Aidan

  11. 11 Posted by Aidan Magill on 21 Jul, 2022 03:48 PM

    Aidan Magill's Avatar

    I think your on the right track Stuart.

    Started straight off and no exception recorded, see attached.

    Well Done

    Aidan

  12. 12 Posted by Aidan Magill on 21 Jul, 2022 05:21 PM

    Aidan Magill's Avatar

    Thanks Stuart,

    Have done as you suggested and It certainly Restarts as normal.

    Attached report.

    I'm in London so will have to sign off now.

    Aidan

  13. 13 Posted by bruce on 21 Jul, 2022 05:29 PM

    bruce's Avatar

    Interestingly, when I went to change that setting just now, I found I didn't have the problem on startup (tried a second time just to confirm). I've removed the foresight graphs since I don't use them anyway, but no idea why it replicated 3 hours ago but not now as I hadn't made any changes anywhere. Either way, it's mitigated for me now. I'm happy to enable them later if there is a fix that can be tested, though I guess I won't be able to confirm a fix.

    Bruce

  14. 14 Posted by Stuart Beesley ... on 21 Jul, 2022 05:38 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    So, I think you are both saying now that the problem has gone..... if not, shout...

  15. 15 Posted by Stuart Beesley ... on 22 Jul, 2022 08:49 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    @Aidan - PS - you can install extensions manually if you can get hold of the .mxt file from the author's site.... E.g.:

    https://yogi1967.github.io/MoneydancePythonScripts/

    There are others:
    https://infinitekind.com/extensions

  16. System closed this discussion on 21 Oct, 2022 08:50 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac