Philantrop / calibre-marvin-manager

A calibre User Interface Action plugin supporting Marvin
6 stars 6 forks source link

Starting Marvin XD gives an error: Unhandled exception #33

Closed ivywong closed 10 years ago

ivywong commented 10 years ago

Stats: Marvin 2.6.5 iPod touch 4th gen (iOS 6.1.5) Windows 7, 64-bit calibre 1.23.0 Marvin XD 1.1.1 iOS reader applications 1.3.4 iTunes 11.1.4.62

When I connect my iPod to calibre, it shows up in the menu correctly, and the red Marvin icon works. However, when I click on Marvin XD, it gives me an error while identifying the books in the Marvin library:

calibre, version 1.23.0
ERROR: Unhandled exception: <b>WindowsError</b>:exception: access violation writing 0x00410014

calibre 1.23  isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
  File "calibre_plugins.marvin_manager.action", line 423, in main_menu_button_clicked
  File "calibre_plugins.marvin_manager.action", line 773, in show_installed_books
  File "calibre_plugins.marvin_manager.book_status", line 1237, in initialize
  File "calibre_plugins.marvin_manager.book_status", line 3641, in _generate_booklist
  File "calibre_plugins.marvin_manager.book_status", line 4527, in _get_installed_books
  File "calibre_plugins.marvin_manager.book_status", line 5084, in _scan_marvin_books
  File "calibre_plugins.marvin_manager.book_status", line 6187, in _update_remote_hash_cache
  File "site-packages\calibre\devices\idevice\libimobiledevice.py", line 320, in exists
  File "site-packages\calibre\devices\idevice\libimobiledevice.py", line 1012, in _afc_get_file_info
WindowsError: exception: access violation writing 0x00410014

The iPod then disconnects from calibre, and a status bar labeled "Identifying 76 books in Marvin library" stays on the screen at 100%. The Marvin XD icon is grayed out, and says "Marvin not connected" (even though the ipod touch is still connected to the laptop).

GRiker commented 10 years ago

I have never seen this error before, but it appears from the traceback that the error is occurring inside an iTunes code library.

A couple of questions: Have you recently updated iTunes? Has the plugin ever worked for you? If so, what has changed on your system since it last worked?

I would suggest removing and reinstalling iTunes as a first step.

ivywong commented 10 years ago
  1. I updated iTunes to the latest version a few days ago because it kept crashing on my laptop.
  2. I just started using calibre and Marvin, and it gives me that error every time I click on Marvin XD.

I'll try uninstalling/reinstalling iTunes and post the results after I do.

GRiker commented 10 years ago

Take a look at this post, it might be related.

ivywong commented 10 years ago

Got Marvin XD working.

I reinstalled iTunes, but it still gave me the same error. Also, when I started calibre and then connected my ipod, iTunes started at the same time, and calibre gave me a different error. (Unfortunately, I closed it before I thought to copy the traceback...)

I thought the error might have to do with iTunes sync, so I disabled it, restarted my computer (just in case), and made sure iTunes didn't start when I connected my iPod.

I tried starting Marvin XD again, and this time it didn't give me any errors.

GRiker commented 10 years ago

Thanks for the followup. I will add the information about disabling automatic syncing to the plugin thread.

I will close this issue as it seems to be resolved.