SharpCap to ASTAP interaction crash if Windows username has a space
Posted: Tue Aug 04, 2020 1:00 am
If your Windows username has a space inside it, with the default TMP file location, the SharpCap launch of ASTAP will cause ASTAP to pop up an error message like this, and not actually perform the plate-solve:
This makes ASTAP think the filename requested is: "C:\Users\Richard". It should surround that filename with instead. e.g.
To reproduce this:
a) Log in with a non-cloud user with a space in the name. e.g.: Firstname Lastname
b) Install ASAP & the Astap database.
c) In SharpCap Under File\Configuration set preferred plate solver to ASTAP
d) In SharpCap under Cameras, select "Test Camera 1 (Deep Sky)"
e) In SharpCap click on "Tools\Plate Solve"
OBSERVE: Astap error dialog above.
WORKAROUND: Move your system TEMP/TMP environment variables somewhere else, but that's a hard workaround to explain to some users.
This is because SharpCap tries to launch ASTAP with this command line:--astap--
Access denied.
Press OK to ignore and risk data corruption.
Press Abort to kill the program.
Code: Select all
"c:\Program Files\Astap\Astap.exe" -f C:\Users\Richard Feynman\AppData\Local\Temp\e75042d2-a321-3349-9e6d-a69075794258\frame.png -ra 9.000 -spd 90.000 -r 180.000 -z 0
Code: Select all
"c:\Program Files\Astap\Astap.exe" -f "C:\Users\Richard Feynman\AppData\Local\Temp\e75042d2-a321-3349-9e6d-a69075794258\frame.png" -ra 9.000 -spd 90.000 -r 180.000 -z 0
a) Log in with a non-cloud user with a space in the name. e.g.: Firstname Lastname
b) Install ASAP & the Astap database.
c) In SharpCap Under File\Configuration set preferred plate solver to ASTAP
d) In SharpCap under Cameras, select "Test Camera 1 (Deep Sky)"
e) In SharpCap click on "Tools\Plate Solve"
OBSERVE: Astap error dialog above.
WORKAROUND: Move your system TEMP/TMP environment variables somewhere else, but that's a hard workaround to explain to some users.