|
|
#91 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#92 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 13798
Join Date: Feb 2011
Device: kindle 3
|
my screenshot looks exactly like the one you have shown. in the box marked Algorithm i have the same wording that you "Total word count" I am looking for the option that says "Total page count" does your plugin have it. Mine doesn't
|
|
|
|
|
Enthusiast
|
|
|
|
#93 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
Right, thanks, now I understand. If you look at the screen, you will see that is within the box "Word count options", hence why there is nothing to do with page count in it.
Above it is the box for "Page count options". Any of the algorithms in the page count options box will give you the equivalent of a total page count, they just have differing ways of doing it. I suggest leaving it at the default of "Paragraphs (APNX Accurate)". Contrary to your apparent confusion, this algorithm does give you a page count, but it does so by trying to identifying paragraphs within the book as part of a way of estimating how many pages there are. That is why it says "Paragraphs". The other option in there of "Calibre Viewer" gives you the same count that opening the book in Calibre's ebook viewer, which is based on dividing the number of characters in the book into 1024 per page, supposedly some Adobe standard.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#94 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 13798
Join Date: Feb 2011
Device: kindle 3
|
finally got it to work
thanks |
|
|
|
|
|
#95 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 150
Karma: 10001
Join Date: Feb 2011
Device: sony
|
Re: Calibre memory leak & slowdown when updating metadata
I finally had chance to try this on another machine running Win7 x64 (4Gb) (first machine was Win7 32bit SP1, 2.5Gb) DEP for essential windows programs & services only Antivirus disabled Ran it against 800 books. Same behavior - time to update metadata was roughly the same as the count phase (> 10 min) Calibre memory usage climbed to almost 400Mb. Ran ExtractISBN. Extract phase about the same (>10 min), metadata update phase about 45 sec. So there's something different about the metadata update procedure this plugin is using. Of course after a few more tests I won't have any reason to count big batches again, so with a little patience and remembering to restart Calibre to clear the memory leak I'm good to go
|
|
|
|
|
|
#96 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,849
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
It appears that in some cases, the tag browser eats memory. I was never able to reproduce it, but Kovid got close. The latest release (0.8.7) radically changes how the tag browser works initializes, eliminating (as far as we can tell) the problem.
If you run with the tag browser open, then try the new release. It might help.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#97 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,684
Karma: 2485828
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Just a heads up.
I just had Count Pages crash Calibre upon updating a previous count. 8.7 on XP SP3 Repeated 3 times. counted pages on a title, clicked OK to update . Crash. Started Calibre Noted it did change the first time. Tried again: Crash I tried another title and it worked, Tried title 1 and it crashed Opened title1 Metadata editor and saved. counted again: Joy Gremlins?
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#98 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 150
Karma: 10001
Join Date: Feb 2011
Device: sony
|
Quote:
The memory leak was reduced about 75%. The metadata update went about 30-40% faster (but still at least 15x slower than Extract ISBN's). It never occurred to me to run without the tag browser. I'll try that next. (Though I don't see why that should affect this and not Extract ISBN). After that, I'll have counted most all my libraries, so unless you should happen to want me to test something, I'll probably forget about the issue ![]() Many thanks! |
|
|
|
|
|
|
#99 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 150
Karma: 10001
Join Date: Feb 2011
Device: sony
|
CLOSE IT!!!!
Just say "No!" to the tag browser. ![]() rel 0.8.7 Update metadata for 1500 books. Tag browser closed. <2 minutes, no memory leak. Tag browser open. > 1 hr, >200Mb memory leak (And it was much worse before 0.8.7) Who'd a thunk it? |
|
|
|
|
|
#100 | |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
Quote:
So quite why the tag browser is having memory issues when the plugin is doing nothing with it is a mystery best left for chaley - perhaps it is listening to some events or something. As was mentioned previously both these plugins are deferring all database updates to the Calibre code that exists in edit_metadata.py which is called when the user finishes downloading metadata.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
|
#101 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,849
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
The only way I can account for this is if apply_metadata_changes (I assume that is what you call) is being called in a loop instead of once with a list of all the books. After it processes the given list, it calls finalize_apply which refreshes the tag browser. A series of 1-long lists will cause a series of refreshes to the tag browser as well as other things.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#102 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
Nope, definitely only called once. And yes it is apply_metadata_changes I am calling.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#103 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,849
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Finally bit the bullet, intrumented calibre, and ran the plugin. The problem was with database notifications. set_metadata was not telling set_custom not to emit the notification, so the TB updated on each change.
Fixed.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#104 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
v1.1.3 Released
Changes in this release:
Internal change requried for future Calibre compatibility as discussed in this thread
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#105 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 801
Karma: 1413706
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kindle DX Graphite
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Kindle Collections | meme | Plugins | 1853 | Today 11:14 AM |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 631 | 05-10-2013 04:10 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 183 | 04-22-2013 02:25 PM |
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 20 | 11-05-2012 06:40 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |