https://bugs.documentfoundation.org/show_bug.cgi?id=165785

--- Comment #11 from Devansh Varshney <[email protected]> ---
here are the log for patch 

with background thread + cache file generation


 ⚡devanshvarshney ❯❯ SAL_LOG=+INFO.sfx2,+INFO.basctl
./instdir/LibreOfficeDev.app/Contents/MacOS/soffice | grep basctlmake

---------------
Running for the first time This is perform the UNO API background thread scan

info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:28:
ObjectBrowserSearch::Initialize: Starting initialization
info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:34:
ObjectBrowserSearch::Initialize: Connected to filter box
info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:41:
ObjectBrowserSearch::Initialize: Connected to clear button
info:basctl:90958:54237745:basctl/source/basicide/unoidecachemanager.cxx:98: 
UnoIdeCacheManager: Attempting to load cache from:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
info:basctl:90958:54237745:basctl/source/basicide/unoidecachemanager.cxx:108: 
UnoIdeCacheManager: Cache file not found at:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
Will automatically create new cache after completing UNO type scan.


info:basctl:90958:54237745:basctl/source/basicide/idetimer.cxx:37: Operation '

UnoIdeCacheManager::loadFromFile' took 0.000298961 seconds.
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:76:
UnoHierarchyInitThread: No valid cache found. Starting UNO scan.
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation
'Shell::BASIDE2::ModulWindowLayout::Activating::ShowObjectBrowser
' took 0.00427813 seconds.
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #1 (1000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #2 (2000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #3 (3000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #4 (4000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #5 (5000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #6 (6000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #7 (7000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #8 (8000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #9 (9000 types found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #10 (10000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #11 (11000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #12 (12000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #13 (13000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #14 (14000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #15 (15000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #16 (16000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #17 (17000 types
found)
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:142: 
UnoHierarchyInitThread: Scan completed in 5222 ms. Total types: 17581
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:148: 
UnoHierarchyInitThread: Scan completed in 5222 ms. Total types: 17581.
Top-level namespaces: 3
info:basctl:90958:54237745:basctl/source/basicide/idedataprovider.cxx:157:
UnoHierarchyInitThread: Saving newly scanned hierarchy to cache.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:264:
OnDataProviderInitialized: Background scan complete. Finalizing data...
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:329:
OnDataProviderInitialized: UI status updated for FULL SCAN.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:346:
OnDataProviderInitialized: All data ready, UI refreshed.
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation '

ObjectBrowser::OnDataProviderInitialized (UI thread work)' took 0.00734996
seconds.
info:basctl:90958:54237745:basctl/source/basicide/unoidecachemanager.cxx:203:
UnoIdeCacheManager: Successfully saved UNO hierarchy to cache.



UNO API scan took UnoHierarchyInitThread: Scan completed in 5222 ms. Total
types: 17581 > 5 seconds



---------------

Now we have a cache file generated and this cache file will be used for each
IDE launch.

info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:28:
ObjectBrowserSearch::Initialize: Starting initialization
info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:34:
ObjectBrowserSearch::Initialize: Connected to filter box
info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:41:
ObjectBrowserSearch::Initialize: Connected to clear button
info:basctl:90958:54238353:basctl/source/basicide/unoidecachemanager.cxx:98: 
UnoIdeCacheManager: Attempting to load cache from:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation
'Shell::BASIDE2::ModulWindowLayout::Activating::ShowObjectBrowser
' took 0.00553102 seconds.
info:basctl:90958:54238353:basctl/source/basicide/unoidecachemanager.cxx:156:
UnoIdeCacheManager: Successfully loaded cache in 54 ms.
info:basctl:90958:54238353:basctl/source/basicide/idetimer.cxx:37: Operation '

UnoIdeCacheManager::loadFromFile' took 0.0547308 seconds.
info:basctl:90958:54238353:basctl/source/basicide/idedataprovider.cxx:67:
UnoHierarchyInitThread: Successfully loaded UNO hierarchy from cache.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:264:
OnDataProviderInitialized: Background scan complete. Finalizing data...
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:310:
OnDataProviderInitialized: UI status updated for CACHE LOAD.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:346:
OnDataProviderInitialized: All data ready, UI refreshed.
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation '

ObjectBrowser::OnDataProviderInitialized (UI thread work)' took 0.00694066
seconds.


The cache took 54 ms     


---------------

Now deleting this cache file manually from the OB UI so we can have a newly
created cache file

info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:360:
OnRefreshCache: Manual cache refresh triggered by user.
info:basctl:90958:54237183:basctl/source/basicide/unoidecachemanager.cxx:217:
UnoIdeCacheManager: Cache file deleted from disk:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
info:basctl:90958:54238902:basctl/source/basicide/unoidecachemanager.cxx:98: 
UnoIdeCacheManager: Attempting to load cache from:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
info:basctl:90958:54238902:basctl/source/basicide/unoidecachemanager.cxx:108: 
UnoIdeCacheManager: Cache file not found at:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
Will automatically create new cache after completing UNO type scan.


info:basctl:90958:54238902:basctl/source/basicide/idetimer.cxx:37: Operation '

UnoIdeCacheManager::loadFromFile' took 0.000555006 seconds.
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:76:
UnoHierarchyInitThread: No valid cache found. Starting UNO scan.
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #1 (1000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #2 (2000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #3 (3000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #4 (4000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #5 (5000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #6 (6000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #7 (7000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #8 (8000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #9 (9000 types found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #10 (10000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #11 (11000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #12 (12000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #13 (13000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #14 (14000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #15 (15000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #16 (16000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #17 (17000 types
found)
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:142: 
UnoHierarchyInitThread: Scan completed in 5182 ms. Total types: 17581
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:148: 
UnoHierarchyInitThread: Scan completed in 5182 ms. Total types: 17581.
Top-level namespaces: 3
info:basctl:90958:54238902:basctl/source/basicide/idedataprovider.cxx:157:
UnoHierarchyInitThread: Saving newly scanned hierarchy to cache.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:264:
OnDataProviderInitialized: Background scan complete. Finalizing data...
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:329:
OnDataProviderInitialized: UI status updated for FULL SCAN.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:346:
OnDataProviderInitialized: All data ready, UI refreshed.
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation '

ObjectBrowser::OnDataProviderInitialized (UI thread work)' took 0.00719758
seconds.
info:basctl:90958:54238902:basctl/source/basicide/unoidecachemanager.cxx:203:
UnoIdeCacheManager: Successfully saved UNO hierarchy to cache.




cache file is again generated as user performed a manual cache refresh


---------------

now testing is the build information in cache file gets stale due to LO version
change/update


info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:28:
ObjectBrowserSearch::Initialize: Starting initialization
info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:34:
ObjectBrowserSearch::Initialize: Connected to filter box
info:basctl:90958:54237183:basctl/source/basicide/objectbrowsersearch.cxx:41:
ObjectBrowserSearch::Initialize: Connected to clear button
info:basctl:90958:54239772:basctl/source/basicide/unoidecachemanager.cxx:98: 
UnoIdeCacheManager: Attempting to load cache from:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
info:basctl:90958:54239772:basctl/source/basicide/unoidecachemanager.cxx:138:
UnoIdeCacheManager: Cache is stale (build ID mismatch). Deleting cache file
from disk:
file:///Users/devanshvarshney/Library/Application%20Support/cache/basctl/uno_hierarchy.v1.cache
info:basctl:90958:54239772:basctl/source/basicide/idetimer.cxx:37: Operation '

UnoIdeCacheManager::loadFromFile' took 0.00148056 seconds.
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:76:
UnoHierarchyInitThread: No valid cache found. Starting UNO scan.
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation
'Shell::BASIDE2::ModulWindowLayout::Activating::ShowObjectBrowser
' took 0.00595351 seconds.
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #1 (1000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #2 (2000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #3 (3000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #4 (4000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #5 (5000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #6 (6000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #7 (7000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #8 (8000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #9 (9000 types found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #10 (10000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #11 (11000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #12 (12000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #13 (13000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #14 (14000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #15 (15000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #16 (16000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:129:
UnoHierarchyInitThread: Posting progress update for batch #17 (17000 types
found)
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:142: 
UnoHierarchyInitThread: Scan completed in 5204 ms. Total types: 17581
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:148: 
UnoHierarchyInitThread: Scan completed in 5204 ms. Total types: 17581.
Top-level namespaces: 3
info:basctl:90958:54239772:basctl/source/basicide/idedataprovider.cxx:157:
UnoHierarchyInitThread: Saving newly scanned hierarchy to cache.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:264:
OnDataProviderInitialized: Background scan complete. Finalizing data...
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:329:
OnDataProviderInitialized: UI status updated for FULL SCAN.
info:basctl:90958:54237183:basctl/source/basicide/objectbrowser.cxx:346:
OnDataProviderInitialized: All data ready, UI refreshed.
info:basctl:90958:54237183:basctl/source/basicide/idetimer.cxx:37: Operation '

ObjectBrowser::OnDataProviderInitialized (UI thread work)' took 0.00725538
seconds.
info:basctl:90958:54239772:basctl/source/basicide/unoidecachemanager.cxx:203:
UnoIdeCacheManager: Successfully saved UNO hierarchy to cache.


this generated the cache file again as the build version mismatch

---------------

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to