![]() |
#421 | |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
![]() |
|
![]() |
![]() |
#422 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2012
Device: Dell Streak 5
|
We are all excited and thankfull for this tremendous work. So please, please do not regret it. Is one of the feature most requested for the epub readers in windows and is such a joy that is finally coming to Calibre.
|
![]() |
Advert | |
|
![]() |
#423 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
I have to say that I haven't found people to be rude, ungrateful or even overly picky. To the contrary, people have been very thankful and respectful of Kovid's time and patience throughout the process.
Perhaps, then, I'm specifically the sort of person who is meant by these comments - if so, I'm disappointed to hear that as I've simply been a passionate user sharing feedback, right from day 1 of the beta, to make this a better tool - often with the qualifier that it, of course, can be taken or left at his discretion. Fortunately most of the feedback - for both bugs and features - from the more vocal users has been incorporated, and I think we can all say we're absolutely thrilled with the tool. Now that Calibre has the best annotation feature of any tool that I've tried, there's absolutely nothing that comes close to Calibre for Windows, or probably any platform, and I've gotten rid of the rest of the tools that I had installed. Apologies Kovid if I've overstepped my bounds at all, and thanks again for your hard work and patience. Looking forward to v5! Last edited by nixsee; 09-16-2020 at 04:04 PM. |
![]() |
![]() |
#424 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Sep 2020
Device: ipad
|
![]()
thank you! calibre is awesome
![]() |
![]() |
![]() |
#425 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I was trying to duplicate it and was finally able to by assigning a couple hot keys to add/remove from Reading List and just hammering them for a while. I got the same error as before a couple times, but a more couple times now, instead of a ThreadingViolationError in plugin code, this spit out in the debug output: Code:
Traceback (most recent call last): File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\backup.py", line 63, in do_one File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\cache.py", line 63, in call_func_with_lock File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\cache.py", line 1102, in check_dirtied_annotations File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\backend.py", line 1940, in dirty_books_with_dirtied_annotations apsw.ThreadingViolationError: You are trying to use the same object concurrently in two threads or re-entrantly within the same thread which is not allowed. ![]() ADDED: I'm running v4.99.16 win10 64bit binaries from source as of 9ec29bb5485b56c7024edd9648ec07fadb7ff28c ADDED: backup.py is specifically for class MetadataBackup(Thread), so yeah, it looks like there's a BG thread running that can conflict with other DB access. What happens with backend.py:124 vs backend.py:1940 both `with conn` when conn() is a property function? I don't know Python with well enough to know if that's a problem. Last edited by JimmXinu; 09-18-2020 at 04:28 PM. Reason: class MetadataBackup(Thread) |
|
![]() |
Advert | |
|
![]() |
#426 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
See the line
Code:
File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\cache.py", line 63, in call_func_with_lock |
![]() |
![]() |
#427 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And looking at the code, there is indeed such. The various calls to db.prefs.set are not protected by the lock. Doing them like this should eliminate the issue:
Code:
with db.new_api.write_lock: db.prefs.set Last edited by kovidgoyal; 09-18-2020 at 09:02 PM. |
![]() |
![]() |
#428 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
ReadingList calls (a few levels down) self.gui.current_db.prefs.set_namespaced(...).
As do all my plugins -- I thought that was the correct way to save config settings. Are you saying that all plugins that use set_namespaced() need to change? |
![]() |
![]() |
#429 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
#430 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
#431 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I see another error when quitting: Code:
Traceback (most recent call last): File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\ui.py", line 937, in quit File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\ui.py", line 1002, in shutdown AttributeError: 'ThreadSafePrefs' object has no attribute 'write_serialized' |
|
![]() |
![]() |
#432 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Should be fixed now.
|
![]() |
![]() |
#433 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Confirmed.
I pounded the keys again too and didn't see any more issues. Thanks for addressing this so quickly. ![]() |
![]() |
![]() |
#434 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released 4.99.17 with the following changes:
1) Fix for JimmXinu's plugin issue, the fix was somewhat invasive, so please install and run this beta for a few days. 2) Add a context menu for the viewer highlights panel 3) The way calibre's PyQt modules are built has changed to use sip-build. This should have no observable effects, but who knows. 4) Show a dot next to highlights with notes in the viewer highlights panel as well 5) Fix removal of multi-line highlights leaving handles in incorrect location 6) Fix a bug in the raw_inlined() template language function I am aiming to make the final release in a few days, provided this beta has no more serious bugs. |
![]() |
![]() |
#435 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
When I click the customize plugin button in the find duplicates plugin, I get the following error:
Code:
calibre, version 4.99.17 ERROR: Unhandled exception: <b>AttributeError</b>:'ThreadSafePrefs' object has no attribute 'to_raw' calibre 4.99.17 embedded-python: True is64bit: True Linux-4.15.0-33-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF') ('Linux', '4.15.0-33-generic', '#36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018') Python 3.8.5 Interface language: None Successfully initialized third party plugins: Count Pages (1, 10, 0) && && EpubSplit (2, 9, 0) && Extract ISBN (1, 5, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 7, 6) && Import List (1, 5, 0) && Manage Series (1, 2, 9) && Modify ePub (1, 4, 2) && Open With (1, 5, 12) && Quality Check (1, 10, 1) && View Manager (1, 5, 7) Traceback (most recent call last): File "calibre_plugins.find_duplicates.common_utils", line 721, in _current_row_changed AttributeError: 'ThreadSafePrefs' object has no attribute 'to_raw' |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beta testers needed | kovidgoyal | Calibre | 75 | 08-18-2019 07:00 PM |
Beta testers for calibre 3.0 needed | kovidgoyal | Calibre | 598 | 07-09-2017 10:26 PM |
Beta testers needed | kovidgoyal | Calibre | 54 | 05-20-2016 12:34 PM |
Windows beta testers needed | kovidgoyal | Calibre | 19 | 02-08-2016 04:38 PM |
Beta testers for calibre 2.0 needed | kovidgoyal | Calibre | 142 | 05-08-2015 04:44 AM |