[Zotero 7][BUG] - High CPU usage when annotating
I am on a Linux OS (ArchLinux) and using Zotero 7.0.0-beta.54+6b996d4f9 (64-bit). I mostly use an external Wacom tablet when annotating PDFs.
When I try to annotate a PDF using the draw tool the CPU usage skyrockets at 100%.
Sometimes, if I am writing too fast, I also encounter some error like
'Error(s) encountered during statement execution: UNIQUE constraint failed: items.libraryID, items.key [QUERY: INSERT INTO items (itemID, libraryID, key, clientDateModified, itemTypeID, dateAdded, dateModified) VALUES (?,?,?,?,?,?,?)] [PARAMS: 5489, 1, "5JRRRCQ4", "2024-02-01 17:43:40", 37, "2024-02-01 17:43:40", "2024-02-01 17:43:40"] [ERROR: UNIQUE constraint failed: items.libraryID, items.key]'
I also used the 'Check Database Integrity' tool, and it reports no error.
I tried to switch to a lower resolution, but the CPU footprint is still the same.
When I try to annotate a PDF using the draw tool the CPU usage skyrockets at 100%.
Sometimes, if I am writing too fast, I also encounter some error like
'Error(s) encountered during statement execution: UNIQUE constraint failed: items.libraryID, items.key [QUERY: INSERT INTO items (itemID, libraryID, key, clientDateModified, itemTypeID, dateAdded, dateModified) VALUES (?,?,?,?,?,?,?)] [PARAMS: 5489, 1, "5JRRRCQ4", "2024-02-01 17:43:40", 37, "2024-02-01 17:43:40", "2024-02-01 17:43:40"] [ERROR: UNIQUE constraint failed: items.libraryID, items.key]'
I also used the 'Check Database Integrity' tool, and it reports no error.
I tried to switch to a lower resolution, but the CPU footprint is still the same.
D1914940391
I tried with both the external Wacom screen and the built-in screen of my laptop.
I have an ArchLinux OS with Wayland.
What else can be different?
GPUs: Intel UHD Graphics 620 + NVidia GeForce GTX 1650 Max-Q 4 GB GDDR5.
I am not using the Nvidia GPU most of the time though.
2) Does it lag when you keep the mouse pressed and draw, or just after releasing it?
3) Is there a performance difference between short and long lines?
2) It does not lags, but the CPU goes straight to 100% as soon as I start drawing (not when I release the mouse, but while drawing).
3) Yeah it seems that drawing short lines does not increase the CPU usage so much. Not sure of it though, since I remember that once the CPU went straight to 100% right after selecting the Eraser button.
The database error you mentioned is a separate issue. How often do you experience it?
For the database issue, I think it's just a matter of how fast do I write. I am not consistently using Zotero to draw notes anymore because of the CPU usage, but anyway, it was not so frequent before.