![]() |
#2701 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#2702 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#2703 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Looking at all that, I suspect that reducing the number of threads in the pool and increasing the timeout would do it. But, the documentation shows that the defaults for the number of threads changed in Python 3.8 to "min(32, os.cpu_count() + 4)". And I don't know why @jgoguen chose 10 seconds. I can see that an actual runtime of 10 seconds for any of these threads would mean a large file was being processed, but, a book with a lot of files could get some timing out as you say.
Looking at the code, I agree that the loop over the futures should be inside the with. But, I'm not sure what that would help. And I agree that the sample you have shown would be better. I'll have a look at it. I need to get the code in the beta out of the way first. Not that they interfere, just that I haven't gotten around to committing it and raising the pull request. |
![]() |
![]() |
![]() |
#2704 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Hi,
I'm newbie on Kobo. Is the latest version of KoboTouchExtender (3.5.4) compatible with the just released 4.32 firmware? Can I safely force using collections and books removal? Thanks in advance |
![]() |
![]() |
![]() |
#2705 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
#2706 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Thanks!
|
![]() |
![]() |
![]() |
#2707 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The longer answer is that I will always post in the thread for a new firmware the status of the calibre and the firmware. I don't usually explicitly mention the extended driver, but, the extended driver is inheriting the function from the built-in driver, so there is no difference in they works. |
|
![]() |
![]() |
![]() |
#2708 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 255
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#2709 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I would be interested in a debug log to see if anything shows, but, it doesn't happen all the time, so we would have to be lucky to catch it. And I think @chaley's analysis is correct. I just have to find the time to test it.
|
![]() |
![]() |
![]() |
#2710 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
That said, when the ThreadPoolExecutor instance is garbage collected, which can happen any time after the "with" exits, some of the internal structure for the pool goes away. This is detected by the threads using weakrefs. It seems that in this case a thread can terminate instead of doing the next task on the queue. If this is true, and if there are more tasks than threads (more files than threads), then sometimes a task will be skipped. Putting the future.result() calls inside the "with" avoids this possibility. I won't stake my reputation on this analysis. ![]() |
|
![]() |
![]() |
![]() |
#2711 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Just noted in the quoted text I had "what that" instead of "that that" though it would have been better to us "that it".
Quote:
Anyway, I had to fix something else and posted a beta in another thread (forgot where I was). So, I have added this change and attached the beta here. This has:
The version number will be 3.5.7. And I really need to check those earlier changes in. Last edited by davidfor; 04-18-2022 at 11:11 PM. Reason: Now with the actual beta. |
|
![]() |
![]() |
![]() |
#2712 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 255
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
Excellent! I will delete everything from my Libra 2, turn on debug mode, and reload everything using this beta to see if the missing chapters are fixed. Should I wait until
(a) the next Calibre release (you said something about book length would be included, but I didn't completely follow) and/or (b) update from 4.30 to 4.32 (the reports look good, but I usually prefer to wait a week)? Last edited by fogice; 04-19-2022 at 09:34 AM. |
![]() |
![]() |
![]() |
#2713 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Firmware 4.32 displays some extra statistics for books from Kobo. They are the page and word count, plus an estimate of reading time. These are the same as shown in the store. When you update the firmware, any books from Kobo will get these populated at the next sync. I have added updating these values in the built-in driver. That will be in the next calibre release and the extended driver will inherit this behaviour. If you want to use it, you will need to do some configuration. |
|
![]() |
![]() |
![]() |
#2714 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,636
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#2715 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Interestingly, I was considering dropping the word count column as I found it less useful than page and chapter counts. But now I have a reason to keep it. ![]() |
|
![]() |
![]() |
![]() |
Tags |
error, kobo aura one |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo Device Driver Update | davidfor | Devices | 284 | 05-24-2019 05:24 PM |
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod | cryzed | Plugins | 7 | 10-28-2012 04:58 PM |
[Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? | EverC | Kobo Reader | 11 | 08-31-2011 11:47 PM |
Touch Kobo Touch Extended Warranty Program | SensualPoet | Kobo Reader | 1 | 07-17-2011 04:08 AM |