View Single Post
Old 05-10-2017, 07:57 AM   #24
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
Quote:
Originally Posted by kovidgoyal View Post
Regarding calibre portable -- i must say I am at a loss. I cant imagine what could cause only calibre portable and not normal calibre to hang -- calibre portable is not that different from normal calibre (its just a couple of environment variables that control where to look for config files and libraries).

Hopefully something will turn up -- either a brainwave or some common factor that identifies the problem as more people reproduce it.
I decided to do a comparison between calibre-portable.exe and calibre.exe

Some notable differences:

calibre-portable.exe:
Code:
;	CALIBRE_CONFIG_DIRECTORY=C:\Users\sweet\Calibre Portable\Calibre Settings
;	CALIBRE_PORTABLE_BUILD=C:\Users\sweet\Calibre Portable\Calibre\calibre.exe
;	CommonProgramFiles=C:\Program Files (x86)\Common Files

calibre.exe:
Code:
;	CommonProgramFiles=C:\Program Files\Common Files
(and a little later:
Code:
;	ProgramFiles=C:\Program Files (x86)
Code:
;	ProgramFiles=C:\Program Files

My path is different as well:
Code:
;	Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Calibre2\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\sweet\AppData\Local\Microsoft\WindowsApps;
Code:
;	Path=C:\Program Files\Calibre2\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Calibre2\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\sweet\AppData\Local\Microsoft\WindowsApps;
Or this one:
Code:
;	PROCESSOR_ARCHITECTURE=x86
;	PROCESSOR_ARCHITEW6432=AMD64
Code:
;	PROCESSOR_ARCHITECTURE=AMD64

Calibre-portal also has these lines (right at the start)

Code:
"12:26:32,5144147","calibre.exe","10420","CreateFile","C:\Windows\Prefetch\CALIBRE.EXE-B7D15B59.pf","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: None, AllocationSize: n/a, OpenResult: Opened"
"12:26:32,5147667","calibre.exe","10420","QueryStandardInformationFile","C:\Windows\Prefetch\CALIBRE.EXE-B7D15B59.pf","SUCCESS","AllocationSize: 49.152, EndOfFile: 48.575, NumberOfLinks: 1, DeletePending: False, Directory: False"
"12:26:32,5149231","calibre.exe","10420","ReadFile","C:\Windows\Prefetch\CALIBRE.EXE-B7D15B59.pf","SUCCESS","Offset: 0, Length: 48.575, Priority: Normal"
"12:26:32,5172315","calibre.exe","10420","CloseFile","C:\Windows\Prefetch\CALIBRE.EXE-B7D15B59.pf","SUCCESS",""

Last edited by Sweetpea; 05-10-2017 at 07:59 AM.
Sweetpea is offline   Reply With Quote