Author Topic: Variant::ToDouble(): Invalid conversion from ByteVector type  (Read 2375 times)

Offline alopezpenalver

  • Newcomer
  • Posts: 1
Hi,

StarAlignment process shows this bug error: "Variant::ToDouble(): Invalid conversion from ByteVector type".
It's important because I can't align the images.

Curious thing is that it appears also alignment the picture with itself !!!
The versión of Pixinsight is 1.8.8-2 Ripley (x64).
Trying to align in other laptop, with the version 1.08.06.1447, it's work right, I can execute the alignment.

It's a bug?

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Variant::ToDouble(): Invalid conversion from ByteVector type
« Reply #1 on: 2020 January 02 03:12:18 »
This should only happen if you are registering FITS files with StarAlignment, and these FITS files have been generated by PixInsight, probably by the ImageCalibration tool, forcing the FITS output format, or by transforming existing XISF files to FITS.

In such case this is not a bug because the FITS format has been deprecated in PixInsight. If you force generation of FITS files from a tool, or transform existing XISF files to the FITS format, and then load them in a tool, then there are no guarantees.

If the above scenaro does not apply, then please provide the files that are causing these issues, so we can analyze them in order to fix a potential problem.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline gunny

  • Newcomer
  • Posts: 14
Re: Variant::ToDouble(): Invalid conversion from ByteVector type
« Reply #2 on: 2020 January 02 12:35:59 »
  I have the same problem also.  I do everything in the fits format and not xisf and have been doing this for years.  Earlier versions of PI didn't have this problem with star alignment. 

  I found that I could do a batch conversion from fits to xisf and star alignment would work.  I just take my lrgb masters and apply the conversion from fits to xisf. 

Offline Hughsie

  • Newcomer
  • Posts: 9
Re: Variant::ToDouble(): Invalid conversion from ByteVector type
« Reply #3 on: 2020 January 26 03:01:58 »
Getting the same error message as well trying to align Ha, Oiii and Sii FITS images which I have stacked. Never had this error message before and am lost now as to what to do.

Offline Hughsie

  • Newcomer
  • Posts: 9
Re: Variant::ToDouble(): Invalid conversion from ByteVector type
« Reply #4 on: 2020 January 26 03:06:01 »
Apologies. Followed the second line in Gunny’s comments and all ok.

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 261
    • QDigital Astro
Re: Variant::ToDouble(): Invalid conversion from ByteVector type
« Reply #5 on: 2020 January 26 05:49:24 »
Juan, I hear what you say about FITs v XISF but shouldn't PI handle this a bit more gracefully....bad data should never blow the software as I was taught when I started programming 47 years ago LOL (yes the machine had 4500 thermionic values in it before you ask!!)
Dave