Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-17-2012, 07:21 PM   #1
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
Portable 0.8.51 getting "handle is invalid" error

I have a thumb drive that I have placed Portable 0.8.51 on. I have copied my Library to the drive, and confirmed that I am able to open Portable on my desktop. I moved the thumb drive to my laptop, so that I could import the books into the Library. However, when I try to run Portable on the laptop I get the attached error popup indicating that a handle is invalid.

I have isolated the issue to be that the drive letter assigned to the thumb drive on the desktop when I initially ran the program was M:, and the drive letter assigned to the thumb drive on the laptop was Z: and thus the program is looking on a non-existent M: when the thumb drive is plugged into the laptop. I opened and read a couple of the files in the Settings folder to figure this out.

This invalidates my plan for using Portable. If it is hard coded to a specific drive letter, I cannot move this from one machine to another unless the thumb drive will receive the same drive letter on each machine, in which case why do I want to use Portable at all?

My questions are:
1. Is there a way to have Portable look at the current drive letter rather than a drive letter assignment being hard coded into the config files?
2. Can I edit those files to change M: to something like <current drive>?
3. Can I delete the contents of the Settings folder and have Portable regenerate those for the current drive letter assignment if I move the thumb drive from one machine to another?

Thanks for reading and thinking about this...
Attached Thumbnails
Click image for larger version

Name:	Error.jpg
Views:	357
Size:	23.1 KB
ID:	86559  
DVus is offline   Reply With Quote
Old 05-17-2012, 11:42 PM   #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: 43,994
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
portable does not have hardcoded drives. You need to double click on calibre-portable.exe to launch it. DO not create shortcuts to it.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-18-2012, 09:40 AM   #3
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
I am not using a shortcut, I am directly double-clicking the calibre-portable.exe file to execute.
DVus is offline   Reply With Quote
Old 05-18-2012, 11:56 AM   #4
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
Is it possible that Portable is writing something of a config nature to the local hard drive and not the thumb drive?

The reason I ask is that I just did a test. I freshly formatted a thumb drive, downloaded Portable 0.8.52 from the web site directly to that thumb drive. I then extracted the folders, went to the Calibre Portable folder, double-clicked on calibre-portable.exe and immediately got the "handle is invalid" error shown in my initial post.

I have a large library of about 21GB with over 14,000 books in it that I need to do a lot of cleanup on. Author names, titles, etc. that are inconsistent due to the various sources I have obtained them from. My intent is to use Portable with the library on a thumb drive so I can work on this library whenever I have a chance, on any machine I can access. Be it work desktop, work laptop, home desktop, home laptop, etc.
DVus is offline   Reply With Quote
Old 05-18-2012, 12:15 PM   #5
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
Along these lines, I did a registry search for "calibre" and found entries in the following registry keys:

HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache - shows F:\Calibre Portable\calibre-portable.exe as an executable program.

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache - shows F:\Calibre Portable\calibre-portable.exe as an executable program.

HKEY_CURRENT_USER\Software\Microsoft\IntelliPoint\ AppSpecific\calibre.exe - most interesting so far, it shows a Path value of G:\Calibre Portable\Calibre\calibre.exe (as opposed to F:\, since it might have originally been used on a thumb drive that was seen as G: instead of F.

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Factory Cache 4.8\com.trolltech.Qt.QIconEngineFactoryInterface:\ F:\Calibre Portable - really has me wondering, what this is? Especially with a name like Trolltech?

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Factory Cache 4.8\com.trolltech.Qt.QIconEngineFactoryInterface:\ G:\Calibre Portable - another Trolltech entry, this one showing G: instead of F:...

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Factory Cache 4.8\com.trolltech.Qt.QIconEngineFactoryInterfaceV2 :\F:\Calibre Portable

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Factory Cache 4.8\com.trolltech.Qt.QIconEngineFactoryInterfaceV2 :\G:\Calibre Portable

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Factory Cache 4.8\com.trolltech.Qt.QImageIOHandlerFactoryInterfa ce:\F:\Calibre Portable

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Factory Cache 4.8\com.trolltech.Qt.QImageIOHandlerFactoryInterfa ce:\G:\Calibre Portable

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Plugin Cache 4.8.false\F:\Calibre Portable

HKEY_CURRENT_USER\Software\Trolltech\OrganizationD efaults\Qt Plugin Cache 4.8.false\G:\Calibre Portable

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RADAR\HeapLe akDetection\DiagnosedApplications\calibre.exe

HKEY_USERS\S-1-5-21-15890611-392985980-6498272-12734\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache - shows F:\Calibre Portable\calibre-portable.exe as an executable program.

HKEY_USERS\S-1-5-21-15890611-392985980-6498272-12734\Software\Microsoft\IntelliPoint\AppSpecific\ calibre.exe - shows a Path value of G:\Calibre Portable\Calibre\calibre.exe

There was also another whole set of Trolltech keys under HKEY_USERS\S-1-5-21-15890611-392985980-6498272-12734\Software\Trolltech\OrganizationDefaults\Qt Factory Cache 4.8\com.trolltech.Qt.QIconEngineFactoryInterface:\ F:\Calibre Portable that duplicated the previous set for F: and G: as well as the MUICache keys too.

This sure does seem to be a lot of registry entries pointing to specific drives and paths, especially for an application that is supposed to be portable and keep everything in the application's folders.

I'm not trying to be snippy or anything, merely trying to help point out what I'm seeing so that maybe the application can be modified to operate in the manner I'm hoping for.

Last edited by DVus; 05-18-2012 at 12:17 PM. Reason: Bolding correction
DVus is offline   Reply With Quote
Advert
Old 05-18-2012, 12:19 PM   #6
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
All of those keys look like ones that Windows Has set up as part of its normal operation, not ones Calibre itself has set up.
itimpi is offline   Reply With Quote
Old 05-18-2012, 12:45 PM   #7
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
I edited the registry values that showed a Path value of G:\Calibre Portable\Calibre\calibre.exe to change the drive to F: instead of G:, and also removed the Trolltech keys that specified G: and left the ones that specified F: and I still have the same error.
DVus is offline   Reply With Quote
Old 05-23-2012, 01:23 PM   #8
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
Is there any way to get Calibre to run in the manner in which I'm attempting? Command line switches, etc., to use an environment variable to assign the current drive letter that Calibre is running from?

As I stated before, I have a large library of about 21GB with over 14,000 books in it that I need to do a lot of cleanup on. I have copied my library and Calibre Portable to the thumb drive, and want to run this as a self-contained stand-alone instance.

I need to do this so I can work on this library whenever I have a chance, on any machine I can access. Be it work desktop, work laptop, home desktop, home laptop, etc. But when I plug the thumb drive into a machine that doesn't assign the same drive letter to the thumb drive as when I set up the library, Calibre Portable won't work.

Am I maybe just missing something easy? I've been through the manual, and even looked at the calibre-portable.bat file in the \Calibre Portable\Calibre\resources folder for clues.

When I start Calibre, I'm using the \Calibre Portable\calibre-portable.exe

Thanks...
DVus is offline   Reply With Quote
Old 05-31-2012, 11:32 AM   #9
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
Update: I have found that I am able to run Portable from the thumb drive on several machines, using varying drive letters, without any problem.

However, I cannot get it to run on the one machine that I most need to. I still get the same "handle is invalid" error as indicated in the earlier screenshot.

I have successfully run it on:
1) Windows Vista Ultimate 32-bit as J: (desktop)
2) Windows 7 Home Premium 64-bit as M: (desktop)
3) Windows 7 Home Premium 64-bit as F: (laptop)

I cannot get it to run on my Windows 7 Enterprise 32-bit (laptop) as F: or G: or even H:

I tried loading the same version of the full application on the Windows 7 Enterprise 32-bit laptop, and it works fine. I then had to uninstall it because this is my work laptop. I thought, however, that doing this might clean up any registry stuff that was keeping Portable from working. Alas, it did not help as Portable still will not run on this laptop.

Any thoughts on what the problem might be?

Thanks...
DVus is offline   Reply With Quote
Old 05-31-2012, 11:38 AM   #10
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: 43,994
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You probably have some security policy on that machine that prevents executables being loaded from removable drives. Try running it from the main hard disk.
kovidgoyal is offline   Reply With Quote
Old 05-31-2012, 01:45 PM   #11
DVus
Junior Member
DVus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2012
Device: Multiple
Thanks for the reply.

I checked and there's no group policy on that but that Symantec Endpoint is apparently set up to exclude this and the settings are all locked down. I did find that disabling the "Scan for trojans and worms" in the Proactive Threat Protection settings allows Portable to work from the thumb drive. This just happens to be the only setting that isn't locked down.

Thanks for the help in resolving this.... now I can get to work organizing this mess...

Thanks....
DVus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with news and the Sony PRS-T1 "Invalid Page" error MRi Calibre 8 11-13-2011 07:39 AM
Value of Attribute "Class" is Invalid Error TFaire ePub 2 09-23-2011 11:25 AM
PRS+ "Invalid Type" error - Sony 505 vans Sony Reader Dev Corner 19 08-05-2011 03:05 PM
Error help: "Invalid input object: NoneType" MichaelGray ePub 1 02-14-2010 09:16 AM
Error message : "Invalid Format" " Do you want to format your internal memory" narbeauchamp Sony Reader 11 07-22-2009 12:39 PM


All times are GMT -4. The time now is 07:23 AM.


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