Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2014, 11:43 AM   #1
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Error communicating with device

I see this message all the time.
No matter which ebook reader, even when connecting to a folder (no ebook reader involved).

Is there anything I can do to prevent this error?
It seems to help to stop memory-hungry applications (Firefox), but on the other hand this Win7 computer has 4GB and absolutely no problems with other applications.


Code:
calibre, version 1.43.0
ERROR: Error: Error communicating with device



Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 86, in run
  File "site-packages\calibre\gui2\device.py", line 520, in _sync_booklists
  File "site-packages\calibre\devices\usbms\driver.py", line 395, in sync_booklists
  File "site-packages\calibre\devices\usbms\driver.py", line 393, in write_prefix
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 123, in encode_to_file
  File "json\__init__.py", line 250, in dumps
  File "json\encoder.py", line 210, in encode
MemoryError
WS64 is offline   Reply With Quote
Old 07-09-2014, 11:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
How large is the .metadata.calibre file in the folder you are connecting to?
kovidgoyal is offline   Reply With Quote
Advert
Old 07-09-2014, 11:55 AM   #3
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Right now 127.456KB
WS64 is offline   Reply With Quote
Old 07-09-2014, 11:57 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then I dont see how it could possibly be causing a memory error, short of a bug in the python stdlib json module or unless your computer is under extreme memory pressure. The next time it happens check to see how much free memory you have and what is using the memory.
kovidgoyal is offline   Reply With Quote
Old 07-09-2014, 12:04 PM   #5
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Hope it's not too big...
Calibre with 800000K, next is Firefox with 500000K.
Spoiler:


WS64 is offline   Reply With Quote
Advert
Old 07-09-2014, 12:07 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That screenshot implies that the json module is trying to create a string of over 1.2 GB in size to run out of memory with that base memory usage. I dont see how that's possible. Unless you have something liek the full text of all the book in your library int he comments column (I know one or two people that do that). And even then...
kovidgoyal is offline   Reply With Quote
Old 07-09-2014, 12:13 PM   #7
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Just curious, where do you see that info in the screenshot?

The funny thing is that I actually do not need any metadata at all to connect to the folder since I use this folder to send books to Koreader 8which does not use metadata at all).
I just can't use "send to folder" because I still want to know which books actually are there, so calibre needs to know which books are "installed on that device" (the folder).

And even more, I don't need the comments at all... Would it be worth to try to delete all comments and try again?
WS64 is offline   Reply With Quote
Old 07-09-2014, 12:20 PM   #8
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Well, I can answer that, I removed all comments (Set the comments for all selected books), no change
WS64 is offline   Reply With Quote
Old 07-09-2014, 01:02 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre.exe is using 800MB a 32 bit process on windows can allocate a max of 2GB if it is running out of memory that implies it is trying to allocate a further 1.2GB, I dont see how that's possible while writing metadata.calibre, since all that file contains is a cache of metadata. How many books in your library, how many are you sending to the device?

Try creating a new empty library add one or two books and send those to the folder and see what happens.
kovidgoyal is offline   Reply With Quote
Old 07-09-2014, 01:25 PM   #10
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Quote:
Originally Posted by kovidgoyal View Post
calibre.exe is using 800MB a 32 bit process on windows can allocate a max of 2GB if it is running out of memory that implies it is trying to allocate a further 1.2GB, I dont see how that's possible while writing metadata.calibre, since all that file contains is a cache of metadata. How many books in your library, how many are you sending to the device?

Try creating a new empty library add one or two books and send those to the folder and see what happens.
10000 books, and none sent. This error happens already when connecting to the folder. (which is another thing I don't understand, why is it sending metadata at that point?)

I created a new library and added 3 books, then connected to the folder. Same error happened.
I watched the task manager, when the error happened memory was a bit over 1GB, after the message popped up it fell down to 800000.

I should mention btw that I restore the .metadata.calibre file from an actual backup after every error since Calibre always set the file to zero length, and usually I can forget the whole folder after that since Calibre does not know anymore which book belongs to which book in the library.
WS64 is offline   Reply With Quote
Old 07-09-2014, 01:36 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm at a loss.
kovidgoyal is offline   Reply With Quote
Old 07-09-2014, 02:00 PM   #12
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Just for the record, I edited my .metadata.calibre file and replaced there
Code:
    "comments": .*?$
with
Code:
    "comments": null,
(means I also deleted all comments from this file), after that the file was 121000 KB, but unfortunately no change with the error.

What I did not mention so far, there is one thing that nearly always helps: Kill Firefox.
After that everything works, even with the new file without the comments.

I just hoped I could connect to my folder without having to kill Firefox first...

Is there another way to connect my library to a folder in a way that Calibre remembers which book in the folder belongs to which book in the library and can update the folder by writing books there in "{author_sort[0]}/{authors}/{title}" form?
What I don't need with this folder are any kind of metadata info...
WS64 is offline   Reply With Quote
Old 07-09-2014, 09:03 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@WS64 Try running Firefox in safe mode.

IIRC I saw a similar problem with a file manager product, the problem was not firefox itself but an extension or plug-in. It was some sort of 'close embrace', firefox (via the ext/pi) it would 'lock' a resource that the file manager had allocated, hence it never got de-allocated.

Dunno whether that makes any sense in the context of calibre - but maybe worth a try

BR
BetterRed is offline   Reply With Quote
Old 07-11-2014, 11:27 AM   #14
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
It is not Firefox fault.
Today it happened a few times without Firefox running.
Actually nearly all other applications were shutdown before .
I really have no idea anymore.
Is there any other way I can sync the library to a folder?
WS64 is offline   Reply With Quote
Old 07-11-2014, 10:09 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by WS64 View Post
It is not Firefox fault.
Today it happened a few times without Firefox running.
Actually nearly all other applications were shutdown before .
I really have no idea anymore.
Is there any other way I can sync the library to a folder?
Yes via Connect/Share->Connect to folder then use Send to Device. Suggest try with a few books/small library to get templates etc as you want them.

Did you try running Windows in Safe Mode?

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error communicating with device Galadan Devices 1 09-21-2012 02:14 PM
Error communicating with device Soul_Est Devices 2 09-14-2012 10:30 AM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM
Error communicating with device boxcorner Calibre 33 12-03-2010 03:29 PM
ver 0.6.3 error: Error communicating with device PRS-505 scripo Calibre 4 08-01-2009 10:38 PM


All times are GMT -4. The time now is 11:32 AM.


MobileRead.com is a privately owned, operated and funded community.