QHYCCD

TheSkyX keeps crushing with QHY 224c

TheSkyX keeps crushing with QHY 224c
« on: July 21, 2020, 11:26:49 PM »
Hello, TheSkyX Pro on Mac OS keeps crushing every time I try to change the settings (adjust offset and gain).
Not sure what for, but there's software plugin of QHY SDK on the QHY website, is it just for developers?
I would really appreciate any help.

Re: TheSkyX keeps crushing with QHY 224c
« Reply #1 on: July 22, 2020, 07:18:18 PM »
When I try to load the script for a plug-in I get multiply "No such file or directory".
In SB forums supports said that the script fails because QHY hasn?t updated it and it tries to access the old plugin location.
Can you fix this please? It just keeps crashing crashing and has to be fixed.

Here's the script error for what it worth:

?cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libQHYCCDX2Plugin*: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/QHYCCD.ui: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/Miscellaneous Files/cameralist QHYCCD.txt: No such file or directory?

Re: TheSkyX keeps crushing with QHY 224c
« Reply #2 on: July 22, 2020, 08:04:05 PM »
Hi,
    I will test it on my side,please wait some time.And which version X2Camera plugin do you use?
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #3 on: July 22, 2020, 11:37:49 PM »
Hi,
    Please try this plugin,and use sudo command when install.
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #4 on: July 22, 2020, 11:42:16 PM »
Hi,
    Please try this plugin,and use sudo command when install.
Best Regards,
QinXiaoXu
Thanks a lot, I will try it out in a few days and let you know if it's worked!

Re: TheSkyX keeps crushing with QHY 224c
« Reply #5 on: July 22, 2020, 11:46:00 PM »
Also can you give me a little bit more detailed instructions how to install this one? If I just throw it into the terminal and try to run it with sudo +file name, it gives me "permission denied" error.
« Last Edit: July 23, 2020, 12:00:13 AM by xjustrunx »

Re: TheSkyX keeps crushing with QHY 224c
« Reply #6 on: July 23, 2020, 03:50:42 AM »
Hi,
    Go to the folder,just run "sudo ./install.sh" command,after that input the password,if no error message,its result is correct.
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #7 on: July 23, 2020, 09:03:56 AM »
Same error:

Last login: Thu Jul 23 16:50:42 on ttys000
solarbeaver@MBP-SolarBeaver ~ % /Users/solarbeaver/Documents/Takahashi/SkyX/dsadad/MACOS_TheSkyX_Plugin_V20200626_0/install.sh sudo ./install.sh
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libQHYCCDX2Plugin*: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libusb-1.0.0.dylib: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/QHYCCD.ui: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/Miscellaneous Files/cameralist QHYCCD.txt: No such file or directory
solarbeaver@MBP-SolarBeaver ~ %

Re: TheSkyX keeps crushing with QHY 224c
« Reply #8 on: July 23, 2020, 07:53:00 PM »
    Well,strange,do you have time to do a remote control?If you have time,we can do it today,if not,we can do it next week.My work time is Mon to Fri,9:00 am to 17:30 pm,I'm in Beijing.Now my time is 2020.7.24 8:50 Fri,and my email is qxx@qhyccd.com.
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #9 on: July 23, 2020, 09:55:02 PM »
The 64 bit version  of TheSkyX for macOS (and the only one supported going forward) does not have the plugins in "/Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/" but in "/Applications/TheSkyX Professional Edition.app/Contents/PlugIns/" (assuming it was installed in /Applications).
Also your install code should use the proper way of looking up the install location of TheSkyX (mine is not in /Applications) : Look for TheSkyXInstallPath.txt ~/Library/Application\ Support/Software\ Bisque/TheSkyX\ Professional\ Edition/
You should build a proper install package. I have made a lot of PlugIns and have installer package build script for all of them, so feel free to use them as exemple : https://github.com/rpineau/PegasusUPB/tree/master/installer (one example among many).
Ping me if you need some explanation about the scripts.
Expecting use to know how to run things from the terminal is not a great thing to do and doesn't provide a good experience for your users.

Rodolphe
Paramount MX+ / CFF250 F8 RC / Meade Series 5000 102ED APO / Stellarvue SV80ST / ADM MaxGuider
FLI ML-16200 / FLI CFW2-7 / Astrodon Gen II LRGB filters & Ha 5nm filter / ZWO ASI 174MC & 290MM
Pyxis 2" Gen 3 rotator / Mac OS X TheSkyX Pro / AstroImager / Lynkeos
http://www.rti-zone.org/astro.php

Re: TheSkyX keeps crushing with QHY 224c
« Reply #10 on: July 26, 2020, 08:00:28 PM »
The 64 bit version  of TheSkyX for macOS (and the only one supported going forward) does not have the plugins in "/Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/" but in "/Applications/TheSkyX Professional Edition.app/Contents/PlugIns/" (assuming it was installed in /Applications).
Also your install code should use the proper way of looking up the install location of TheSkyX (mine is not in /Applications) : Look for TheSkyXInstallPath.txt ~/Library/Application\ Support/Software\ Bisque/TheSkyX\ Professional\ Edition/
You should build a proper install package. I have made a lot of PlugIns and have installer package build script for all of them, so feel free to use them as exemple : https://github.com/rpineau/PegasusUPB/tree/master/installer (one example among many).
Ping me if you need some explanation about the scripts.
Expecting use to know how to run things from the terminal is not a great thing to do and doesn't provide a good experience for your users.

Rodolphe
Hi,
    Thanks for your feedback and advice,I will try it.
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #11 on: July 28, 2020, 08:26:21 PM »
Hi Rodolphe,
    I modified a srripts as your link,like this:
Code: [Select]
#!/bin/bash

TheSkyX_Install=~/Library/Application\ Support/Software\ Bisque/TheSkyX\ Professional\ Edition/TheSkyXInstallPath.txt
echo "TheSkyX_Install = $TheSkyX_Install"

if [ ! -f "$TheSkyX_Install" ]; then
    echo TheSkyXInstallPath.txt not found
    exit 1
fi


TheSkyX_Path=$(<"$TheSkyX_Install")
echo "Installing to $TheSkyX_Path"

if [ ! -d "$TheSkyX_Path" ]; then
    echo "Coudln't find TheSkyX application location"
    exit 1
fi

if [ -d "$TheSkyX_Path/PlugIns" ]; then
PLUGINS_DIR="$TheSkyX_Path/PlugIns"
elif [ -d "$TheSkyX_Path/Resources/Common/PlugIns64" ]; then
PLUGINS_DIR="$TheSkyX_Path/Resources/Common/PlugIns64"
else
PLUGINS_DIR="$TheSkyX_Path/Resources/Common/PlugIns"
fi

echo "Installing in $PLUGINS_DIR/CameraPlugIns/"

cp "./cameralist QHYCCD.txt" "$TheSkyX_Path/Resources/Common/Miscellaneous Files/"
if [ "$?" -ne "0" ]; then exit 1; fi

rm -f "$PLUGINS_DIR/CameraPlugIns/QHYCCD.ui"
cp "./QHYCCD.ui" "$PLUGINS_DIR/CameraPlugIns/"
if [ "$?" -ne "0" ]; then exit 1; fi

rm -f "$PLUGINS_DIR/CameraPlugIns/libQHYCCDX2Plugin.*"
cp "./libQHYCCDX2Plugin.dylib" "$PLUGINS_DIR/CameraPlugIns/"
if [ "$?" -ne "0" ]; then exit 1; fi

rm -f "$PLUGINS_DIR/CameraPlugIns/libusb-1.0.*"
cp "./libusb-1.0.0.dylib" "$PLUGINS_DIR/CameraPlugIns/"
if [ "$?" -ne "0" ]; then exit 1; fi

app_owner=`/usr/bin/stat -n -f "%u" "$TheSkyX_Path" | xargs id -n -u`
if [ ! -z "$app_owner" ]; then
        chown $app_owner "$TheSkyX_Path/Resources/Common/Miscellaneous Files/cameralist QHYCCD.txt"
        chown $app_owner "$PLUGINS_DIR/CameraPlugIns/QHYCCD.ui"
        chown $app_owner "$PLUGINS_DIR/CameraPlugIns/libQHYCCDX2Plugin.dylib"
        chown $app_owner "$PLUGINS_DIR/CameraPlugIns/libusb-1.0.0.dylib"
fi
    Is it right?And I didn't use the /tmp path,just put files in same folder with script,is the /tmp path necessary?
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #12 on: July 30, 2020, 05:32:38 PM »
Yep that looks right.
Rodolphe
Paramount MX+ / CFF250 F8 RC / Meade Series 5000 102ED APO / Stellarvue SV80ST / ADM MaxGuider
FLI ML-16200 / FLI CFW2-7 / Astrodon Gen II LRGB filters & Ha 5nm filter / ZWO ASI 174MC & 290MM
Pyxis 2" Gen 3 rotator / Mac OS X TheSkyX Pro / AstroImager / Lynkeos
http://www.rti-zone.org/astro.php

Re: TheSkyX keeps crushing with QHY 224c
« Reply #13 on: July 31, 2020, 02:07:57 AM »
    OK,please try this plugin,and please let me know the result.
Best Regards,
QinXiaoXu

Re: TheSkyX keeps crushing with QHY 224c
« Reply #14 on: July 31, 2020, 01:48:09 PM »
Ok, I tested the install.sh and it worked (I assume the firmwares HEX files are inside the plugin dynamic library)
So that's better :)
What about making an actual pkg installer (may be you don't have an Apple developer account and certificate ? ).
I'll try testing with my Polemaster latter.
Regards,
Rodolphe
Paramount MX+ / CFF250 F8 RC / Meade Series 5000 102ED APO / Stellarvue SV80ST / ADM MaxGuider
FLI ML-16200 / FLI CFW2-7 / Astrodon Gen II LRGB filters & Ha 5nm filter / ZWO ASI 174MC & 290MM
Pyxis 2" Gen 3 rotator / Mac OS X TheSkyX Pro / AstroImager / Lynkeos
http://www.rti-zone.org/astro.php