Bug maybe in Autointegrate

it looks like i’m using v 1.70 test4 and I am experiencing a bug when including Graxpert background extraction. Im getting an error that complains about a file not found in a temp directory. See attached screenshot for details. Graxpert runs fine by itself, so not sure where the error is coming from. I verified that the file does not exist in the \user\appdata folder specified or anywhere else that I have searched.

Hi Ric,

Thanks for reporting the problem. Unfortunately I could not easily reproduce the problem.

Would it be possible that you are running some older version of GraXpert? Older versions used to write a .fits file while newer versions write a .xisf file. I used to have an option for this but I removed it some months ago as older versions are incompatible with some features… So do you have a corresponding .fits file in the temp directory?

Regards,
Jarmo

Thanks I thought i downloaded the latest. Will check.

You were correct. I thought I installed the graxpert windows install package, but did not. I tried. I have downloaded the msi from their site several times and have tried to install several versions of the 3.x release, but the msi install does nothing. never shows a screen. I am trying to run down whats happening on their site.

I was finally able to install the graxpert msi file after finding in file properties that it had a block checked because it came from another computer. The authors probably did not properly configure the original msi for general downloading.

So, i ran a test in autointegrate and am further along, but still have an error.
I’m getting an error that it isn’t finding a file in temp directory. Here is the process console output where it’s using the TEMP variable to save then read a file:

(looking in that temp dir: I find the AutointegrateTemp.xisf file but not the AutointegrateTemp_Graxpert.xisf file)

"Reading image:
J:/1 Astronomy/1 HomeGear/2024-08-24/ldn 1165/AutoOutput/AutoOutput/ldn 1165_Light_LENH_2024-08-25_024042_0180s_ISO1600_cc_d_cb.xisf
Loading image: w=5202 h=3464 n=3 RGB UInt16
65 FITS keyword(s) extracted
AutoIntegrate: Run GraXpert from image ldn_1165_Light_LENH_2024_08_25_024042_0180s_ISO1600_cc_d_cb, target image ldn_1165_Light_LENH_2024_08_25_024042_0180s_ISO1600_cc_d_cb_GC
GraXpert using correction Subtraction and smoothing 0.5
GraXpert path does not exist: C:\Users\Ric\AppData\Local\Programs\GraXpert\GraXpert.exe4.exe
copy window ldn_1165_Light_LENH_2024_08_25_024042_0180s_ISO1600_cc_d_cb to AutoIntegrateTemp
GraXpert input file C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp.xisf

Writing file:
C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp.xisf
**** Warning: Overwriting already existing file: C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp.xisf**
Writing image: w=5202 h=3464 n=3 RGB UInt16
66 FITS keyword(s) embedded
ICC profile embedded: ‘sRGB IEC61966-2.1’, 3024 bytes
1 image property embedded
Force close AutoIntegrateTemp
GraXpert command “C:\Users\Ric\AppData\Local\Programs\GraXpert\GraXpert.exe4.exe” -cli “C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp.xisf” -correction Subtraction -smoothing 0.5
GraXpert processing…
GraXpert finished
GraXpert output file C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp_GraXpert.xisf

Reading image:
C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp_GraXpert.xisf
< failed >
***** Error: No such file: C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp_GraXpert.xisf**
AutoIntegrate: *** openImageWindowFromFile Error: imageWindows.length: 0, file C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp_GraXpert.xisf
Error: *** openImageWindowFromFile Error: imageWindows.length: 0, file C:/Users/Ric/AppData/Local/Temp/AutoIntegrateTemp_GraXpert.xisf
Processing stopped!
Write processing steps to J:/1 Astronomy/1 HomeGear/2024-08-24/ldn 1165/AutoOutput/AutoProcessed/AutoIntegrate.log
AutoIntegrate exiting"

Hi Ric,

Thanks for the update.

Another issue that I found with GraXpert is that you need to manually start it once. Otherwise it does not find the AI model. Maybe starting the GraXpert manually once would help here?

I plan to improve the error messaging here. I tried to capture this issue but it looks like it does not detect it properly when the .xisf file is missing.

Regards,
Jarmo

Jarmo, Hope your doing well. I have finally gotten back to this issue a little deeper. this time I’m running AS 1.71. I also uninstalled Graxpert and installed (v3.0.1) it again. I ran the autointegrate script with graxpert checked and after integration, when graxpert kickoff I got an error again. With this version there is a pop up window that traces back the error. I have attached it. Evidently a specific file is not being found. See attached. I also attached a screenshot of what is in the folder to which the error is referring.

This error should me what was missing from that directory. I found the missing file in another folder nearby and put it into where your script expected it and it worked!

The missing file was in this folder: C:\Users\Ric\AppData\Local\GraXpert\GraXpert\denoise-ai-models\3.0.2

Hi Ric,

Great to hear that you got it working!

Regards,
Jarmo