Please, I need to downgrade back to version 8.0-beta.21

2
  • is it okay, or do you need anything also?
  • It continued the output... so this is a new one: D1167222795
  • Yes... and continues now...

    D589831860 just now
  • edited yesterday at 4:40am
    4)(+0000011): Beginning DB transaction ijEEA477

    (4)(+0000013): DELETE FROM betterbibtex.citationkey WHERE itemID = ? [11054]

    (4)(+0000031): Committed DB transaction ijEEA477

    (4)(+0000012): Beginning DB transaction YOOthWww

    (4)(+0000013): DELETE FROM betterbibtex.citationkey WHERE itemID = ? [11026]

    (4)(+0000026): Committed DB transaction YOOthWww

    (4)(+0000010): Beginning DB transaction Cx4FsnzS

    (4)(+0000012): DELETE FROM betterbibtex.citationkey WHERE itemID = ? [26033]

    (4)(+0000029): Committed DB transaction Cx4FsnzS

    (4)(+0000010): Beginning DB transaction N8qavwWS

    (4)(+0000012): DELETE FROM betterbibtex.citationkey WHERE itemID = ? [14874]

    (4)(+0000029): Committed DB transaction N8qavwWS

    (4)(+0000010): Beginning DB transaction 6xqHSovh

    (4)(+0000014): DELETE FROM betterbibtex.citationkey WHERE itemID = ? [5768]

    (4)(+0000028): Committed DB transaction 6xqHSovh
    Yeah, this is all BBT. @emilianoeheyns, you need to batch these into transactions. You can't execute thousands and thousands of transactions one after another.

    (And same with the REPLACE statements that come later.)
  • Can I stop the debug output? It still continues rolling!
  • Just force-quit the app, as before.
  • edited yesterday at 10:44am
    A release build is running that batches key persistence so it only runs batched changes in one transaction at most once per 5 seconds. The 24k3 database runs key assignment in 66 seconds now, batch size average is 1842.
  • Setting debounce to 70 seconds runs in 60 seconds with a batch size of 24351 (all changes). I think 5 seconds will do.
  • That's great — thanks. @warguelles, could you try with the latest version of BBT and see how that does? Might as well generate a Debug ID for that while you're testing it.
  • Yes, of course! Normal Debug ID or extensions.zotero.debug.store as the last one?
  • You can probably just trigger the upgrade but say to restart later and then use "Restart with Logging Enabled…". You just can't let the update do the restart if you haven't set debug.store manually.
  • D193951450

    The process took around 4 minutes but the app is still running in the background
  • (4)(+0000000): Waiting for DB transaction GP8hNyAv to finish to start 74W6Q5Uk

    (5)(+0000000): Zotero.DBConnection.prototype.waitForTransaction@chrome://zotero/content/xpcom/db.js:585:43
    Zotero.DBConnection.prototype.executeTransaction@chrome://zotero/content/xpcom/db.js:440:12


    (4)(+0000000): Waiting for DB transaction GP8hNyAv to finish to start V9Mqilk8

    (5)(+0000000): Zotero.DBConnection.prototype.waitForTransaction@chrome://zotero/content/xpcom/db.js:585:43
    Zotero.DBConnection.prototype.executeTransaction@chrome://zotero/content/xpcom/db.js:440:12


    (4)(+0000000): Waiting for DB transaction GP8hNyAv to finish to start jfT84sFv

    (5)(+0000000): Zotero.DBConnection.prototype.waitForTransaction@chrome://zotero/content/xpcom/db.js:585:43
    Zotero.DBConnection.prototype.executeTransaction@chrome://zotero/content/xpcom/db.js:440:12


    (4)(+0000000): Waiting for DB transaction GP8hNyAv to finish to start eF54o80M

    (5)(+0000000): Zotero.DBConnection.prototype.waitForTransaction@chrome://zotero/content/xpcom/db.js:585:43
    Zotero.DBConnection.prototype.executeTransaction@chrome://zotero/content/xpcom/db.js:440:12
    Still a huge number of transactions being started (and pausing, and timing out) there, and too many to see what they're waiting for or trying to do.

    Can you try again and submit a few Debug IDs as it runs, including 10 seconds and 30 seconds after the circular progress bar completes?

    What do you mean by "the app is still running in the background"?
  • edited yesterday at 3:41pm
    What do you mean by "the app is still running in the background"?
    During the migration these two popups appear consecutively:
    https://s3.amazonaws.com/zotero.org/images/forums/u2580262/9t9a3h902lwgxpxza2ia.png
    https://s3.amazonaws.com/zotero.org/images/forums/u2580262/vmn0udt4gfvew5wec86e.png
    when the second one dissapears, the app continues work in the background and it is VERY slow
    Can you try again and submit a few Debug IDs as it runs, including 10 seconds and 30 seconds after the circular progress bar completes?
    Just 10 and 30 seconds afetr the progress bar, but with the other one running?
  • edited yesterday at 3:48pm
    Again, those aren't separate popups. That's just the one popup Zotero shows during the Extra field migration. After the circular progress bar finishes, it changes to the journal article icon while it sends notifications about the item changes, including to plugins. You'd see a delay there if a plugin takes a long time to do whatever it does when it receives those notifications.

    We'd want some Debug IDs from as soon as the delay starts and at intervals after — so when it's showing that journal article icon where normally it would just close immediately. The goal is to try to capture whatever is happening there before it fills up the log buffer and loses earlier lines.
  • edited yesterday at 3:49pm
    I have just restarted the app and this message appears
    Look for zotero.exe in Task Manager and kill it. You don't need to be friendly to it here, since you're just working with a copy of the database.
  • Probably not news, but these aren't BBTs, and I wouldn't typically expect the BBT "assigning" popup to appear in this scenario. That only happens when there are lots of keys without a BBT citekey. In this scenario, the items would typically have a BBT key, but BBT would update citation keys for each of them, without any UI. All BBT citekey persistance is now batched, so these updates would also be.
  • edited yesterday at 3:52pm
    @emilianoeheyns: Right, but it would hang while showing the journal article icon while plugins are processing the Notifier updates, so this is absolutely due to BBT or another plugin (and @warguelles only has a couple other enabled — though should obviously test with just BBT to eliminate variables)
  • Just to confirm... I will just run the migration again under the same conditions as the last run. But sending some Debug ID after the progress bar finishes (with the journal icon)

    Right?
  • edited yesterday at 4:00pm
    You'd see a delay there if a plugin takes a long time to do whatever it does when it receives those notifications.
    which I wouldn't expect the BBT key persistence to contribute (too) much to. The notifier responder registered the key in BBTs in-memory database for citation keys, and is then handed off to the batcher for persistence without waiting for that to complete. This was always the case, but the previous behavior is like the batch size was set to 1.
  • ... with all plugins enabled
  • @warguelles: It'd be better to test with just BBT enabled so we can be clear that that's what's causing the slowdown. Otherwise yes.
  • ok, only BBT enabled
  • so this is absolutely due to BBT
    I think that's likely, but part of that is certainly key recalculation, and that won't be affected by the key persistence, whether batched or not. The batching is a good thing, cuts down the time a lot, but calculating 24k3 keys still takes a fair bit of time.
  • edited yesterday at 4:20pm
    I've just ran the 24k test with persistence disabled and as I expected, that is merely fractions of a second faster than with persistence. I could technically hand that off so it would not show up in the notifier timing, but it would consume this time all the same at some point.
  • Hey guys, I need to have breakfast and get to the office. I'll let you know when I get there in just over an hour.
Sign In or Register to comment.