-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.0.1 Makes my OneNote Crawl vs 5.9 (My PC may be the issue) #1226
Comments
On my alt machine, I went into settings and disabled the Hashtag service , existed and reloaded and it it is back to happy. |
The first time 6.0.1 starts up, it proceeds to scan all of your ON notebooks to build a database of hashtags. This can take a few minutes depending on the amount of data. Once it's done, it will scan every two minutes but only interrogate pages that have changed since the last scan. So it is quite possible your notebooks are structured in a way that is causing it to go crazy. I have 5 notebooks, over 600 pages, and a full initial scan takes a little over a minute. Subsequent scans take about 200ms. The hashtag service logs to the regular OneMore log file. Anything interesting there? |
Above: I said "didn't even get to restart" - I think it restarted before I looked back at the screen, i.e. I think when enabling the service. |
@stevencohn thanks for getting back to me. OK, 6K Pages split over 2 MS accounts (one personal one Work). |
That doesn't make sense. It has to restart in order for the scan to begin again. Yes, enable verbose logging. There are only a couple of extra verbose lines but they may be important. |
You may need to kill the dllhost.exe, which should have |
And thanks for hanging in there with me. With limited resources, it's hard sometimes to predict how OneMore will behave once it gets out into the world, in a hostile environment. :-) |
"That doesn't make sense. It has to restart in order for the scan to begin again." yes - I agree, it was just that I was expecting to have to restart myself, I looked away and then looked back a minute later and it was running again ;-) - sorry - user lies :-). I am enabling verbose logging, clear logs, start service, let it restart and keep an eye on CPU. |
@stevencohn "And thanks for hanging in there with me." That's all great - I appreciate you are innovating and things break when you do that. Is there a DB file I can watch grow? |
The usual place - %appdata%\onemore\onemore.db It's a simple SQLite database. I use the free studio https://sqlitestudio.pl/ |
Aside: When it is parsing the pages to check for Tags - does it write to the pages (you'll know where I am going with this)? |
No it should be read-only! |
I take that back! It does write a meta tag to each page on which it finds one or more tags. I can't imagine that you've tagged many pages so far, right? Anyway, supposing it scales linearly on comparable machinery, your 6K pages would take over 90 minutes so.... I will look into ways of governing resources during the scan. |
"No" ..... promise? :-). Oh I see our cross post - so a "maybe :-)" |
It looks like my tags are a co-incidental - I think maybe the logging could drop in everytime it scans n pages. |
It will update the stamp on the page but shouldn't touch outlines. |
"It will update the stamp on the page but shouldn't touch outlines." - I think based on one search, that I agree :-). |
It will rescan on every machine because ever machine has its own database. A new machine starts out thinking its last scan time was DateTime.MinValue so it will think everything is new and needs to be scanned. The meta is just a unique ID I may or may not use in the future as a way of "fixing" the not-always-constant ON page IDs. The lastModifiedTime is a separate attribute on the one:Page itself |
OK - 25 mins later and it has finished on the alt machine. |
Wow. Good to know. I will definitely look at ways of restricting it, lower priority thread perhaps, and informing the user that "the hashtag service is thinking and may not be available for a while." Thanks J. |
Alt machine completed now and the hashtags search is blisteringly quick, with the 6K pages with < 100 tags. |
OK..... "The Index button will create a new page with an index of selected pages." - Killer feature! Of course, I want to polish your perfection.....
And to highlight the issue with ON Page Search (ON's not yours)
I think I can use this like the page level tags without over "touching" the page. Do you think there would be a perf degradation with every page having tags and having a lot of tags Brain on fire a bit now, so going to let it bed in. |
Nice. And the couple I've thought about as well and reserved for v2.0 -yeah really like those 😄 😄
Exactly, I'm hoping I can deprecate that eventually, or find a hybrid approach that simplifies it overall.
Not at all. Again, it only cracks open the page if it thinks it's been updated since its last scan. MS was smart in that way, when you ask for the "notebook" you get a list of pages with last modified time, so you don't need to read the page. |
@stevencohn @jasonjac2 I installed 6.0.0 yesterday and booted up Onenote and observed severe latency for about 15 minutes. I have 10 notebooks and about 2800 pages. I noticed that the CPU was loaded and assumed it was indexing the hash tags so was comfortable with it. No issues since then. I second the request for boolean logic on them. I use embedded tags in Obsidian and it works really well, but since I can't use Obsidian for certain types of notes I was hoping this would close that gap in Onenote. But just being able to search on a single tag in the page is way less useful than being able to search on multi level tags. Still, the built in tagging system in Onenote is a joke so this is a materially beneficial feature and a step forward. Is there a reason to upgrade to 6.0.1? |
Thanks for this. 6.0.1 fixes a problem with the installer. So if you're happy then you can wait for the next release. |
I think 6.0.1 was just @stevencohn trying to fix some install issues. My main machine has now settled down. I'm a bit paranoid about slowdown as I use ON as my everything, so as soon as it gets sluggish it is has such a massive knock on effect. All looks good now I left it for the "dinner" amount of delay, which was perfect. Others may find the "coffee" or "to the loo and back" a sufficient amount of time. :-). I like the last scan / next scan info. I assume it is a per Notebook scan so if it is up to date, it knows when you add a new notebook, that it has to fully scan the new notebook..... Thanks @stevencohn - another great addition to a great tool. |
Hopefully you never need to restart but you can delete the db file and then restart ON and it will rebuild the db. There is a Scan Now option on the Search dialog if you're less patient than the two minute scan rate. |
* delete json when tray exits * proto stevencohn#1226 * tweak * LegacyTaggingConverter stevencohn#1226 * LegacyTaggingConverter stevencohn#1226 * tag bank stevencohn#1226
* delete json when tray exits * proto stevencohn#1226 * tweak * LegacyTaggingConverter stevencohn#1226 * LegacyTaggingConverter stevencohn#1226 * tag bank stevencohn#1226
* delete json when tray exits * proto stevencohn#1226 * tweak * LegacyTaggingConverter stevencohn#1226 * LegacyTaggingConverter stevencohn#1226 * tag bank stevencohn#1226
* delete json when tray exits * proto stevencohn#1226 * tweak * LegacyTaggingConverter stevencohn#1226 * LegacyTaggingConverter stevencohn#1226 * tag bank stevencohn#1226
* delete json when tray exits * proto stevencohn#1226 * tweak * LegacyTaggingConverter stevencohn#1226 * LegacyTaggingConverter stevencohn#1226 * tag bank stevencohn#1226
Problem to Solve
A clear and concise description of what the bug is.
Had the most recent version prior to 6 - I used to get the odd slowdown on large pages, then installed 6 and got the "missing from ribbon", then "fixed the install" from add remove programs and that worked OK. Then I tried DL and install the latest version 6.0.1. These issues seem to be with 6.0.1.
As soon as I had installed it, my ON grinds to a halt. Clicking "file" and "options" takes about a minute to bring up the options.
Literally cursor flashing like treacle.
Other Apps seem OK (word / Outlook).
I did a reboot.
No change.
I went into Options and add-ins and disabled the add-in.
Without reboot - all was fine, back to being responsive.
Went back in and re-enabled the add-in.
Back to treacle.
Uninstalled 6.0.1, got previous version 5.9.0 installed and it worked fine.
Other things I noticed:
Without add-in when OneNote is idling or I give it focus - OneMore = 0 - 1.5% CPU
With add-on enabled: OneNote is idling or I give it focus - OneMore = 0 - 13-15% CPU
Other things:
Just went and checked on another machine and the cursor flashing and the CPU seem to have a similar issue (CPU 15%) . So it seems my main dev machine exaggerates it, But I think I'm fairly confident in 6.0.1 is much more CPU intensive than 5.9.
Is there anything I can do to help you hone in on the issue?
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (if applicable)
Problem version.
01| Starting dllhost 7924, 2592 Mhz, 32 MB, en-US/en-US, v6.0.1, OneNote 15.0, Office 16.0, 2023-12-19 18:25
01| ..Windows 10 Pro, Version 22H2, Build 19041, 64 bit
Downgraded version:
01| Starting dllhost 31676, 2592 Mhz, 32 MB, en-US/en-US, v5.9.0, OneNote 15.0, Office 16.0, 2023-12-19 18:34
01| ..C:\Program Files (x86)\Microsoft Office\root\Office16\ONENOTE.EXE (16.0.17029.20068)
Additional Context
Add any other context about the problem here. Attach page XML file or the app log file as appropriate. You can find the log file here: %localappdata%\temp\OneMore.log
THE FINE PRINT This is a hobby project that I started for myself. I'm happy to take requests and will promise to
consider each one carefully but offer no guarantees that I will ultimately agree to their
usefulness or have time to implement any of them. If OneNote offers a "close enough" work-around
then I will probably reject the request - you've been warned!
The text was updated successfully, but these errors were encountered: