Description: LibreOffice in consuming lots of CPU power doing nearly nothing at all. Just having a database wizard activated on top leads to an increased CPU consumption (around 7%). Maximizing the database wizard screen (screen-filling) lets the CPU spike to around (25%) for a few seconds Likely related: Just hovering over the Start Center buttons does increase CPU usage also a lot. Steps to Reproduce: 1.Start LibreOffice 2.Click Base database in Start Center 3 Monitor CPU usage when Database Wizard is on top/'activated' Actual Results: CPU usage around 7% Expected Results: CPU usage around zero Reproducible: Always User Profile Reset: YES Additional Info: Version: 5.3.0.0.alpha1+ Build ID: 074f0ab1d76f16fe92493868e2f2de75e67792ef CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; Layout Engine: new; TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-11-15_00:29:07 Locale: en-US (en_US.UTF-8); Calc: group User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14
Created attachment 128868 [details] CPU usage database wizard
Created attachment 128871 [details] LLDB Backtrace Version: 5.3.0.0.alpha1+ Build ID: 074f0ab1d76f16fe92493868e2f2de75e67792ef CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; Layout Engine: new; TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-11-15_00:29:07 Locale: en-US (en_US.UTF-8); Calc: group Backtrace contains a warning: @"WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future.
I the backtrace I noticed: __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
Within the backtrace I noticed the following errors: - @"AppKit cannot convert carbon event class '%.4s' to CGEventRef." - @"AppKit cannot convert carbon mouse event of kind '%ld' to CGEventRef." - @"AppKit cannot convert carbon mouse events of button '%ld' to CGEventRef." - @"WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future." - THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
Some info related to: THE_PROCESS_HAS_FORKED...: http://objectivistc.tumblr.com/post/16187948939/you-must-exec-a-core-foundation-fork-safety-tale https://developer.apple.com/library/content/technotes/tn2083/_index.html#//apple_ref/doc/uid/DTS10003794-CH1-SUBSECTION64 (Under the heading: "Daemonizing Frameworks"
Confirming on Version: 5.3.0.0.alpha1+ Build ID: e1af58c1260f442c2731ae8a705deba732246b1d CPU Threads: 2; OS Version: Mac OS X 10.12.1; UI Render: default; Layout Engine: new; Locale: fr-FR (fr_FR.UTF-8); Calc: group
Still a repro with master~2017-10-08_02.51.19_LibreOfficeDev_6.0.0.0 Not limited to Database Wizard screen. Also happening with the character/page dialog
Created attachment 137012 [details] Xcode instruments time profile screenshot Could this be related to argb32_image c.q. CGSBlendRGBA8888toRGBA8888 conversion in the background. It shows up in the time profile There is some talk about argb32_image on the web: * http://robert.ocallahan.org/2010/05/cglayer-performance-trap-with-isflipped_03.html * https://stackoverflow.com/questions/7560979/cgcontextdrawimage-is-extremely-slow-after-large-uiimage-drawn-into-it And I'm seeing 'isflipped' quite a lot here: https://opengrok.libreoffice.org/xref/core/vcl/quartz/salgdicommon.cxx
Caolán, any ideas about comment 8?
no idea
*** This bug has been marked as a duplicate of bug 114839 ***