Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indi-apogee crashes when connecting Apogee Alta F47 with V22 firmware #2122

Open
Rakaanishu opened this issue Sep 24, 2024 · 5 comments
Open
Labels

Comments

@Rakaanishu
Copy link

The indi-apogee crashes when connecting Apogee Alta F47 with V22 firmware. This was apparently known as it is mentioned by a review on the driver download page but as the camera is not supported anymore by Andor instruments, there is no mean to upgrade its firmware.

To Reproduce

  1. Just try to connect the camera on Ekos

Expected behavior
The camera should be connected but the log says that the driver has crashed.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS 64 bits
  • Version: Indi Lib 2.0.9
@Rakaanishu Rakaanishu added the bug label Sep 24, 2024
@knro
Copy link
Contributor

knro commented Sep 24, 2024

Please use Ekos Debugger and share the backtrace.

@Rakaanishu
Copy link
Author

From Ekos Debugger

Debug log
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Attaching after Thread 0x7ffff7f89740 (LWP 8725) fork to child process 8728]
[New inferior 2 (process 8728)]
[Detaching after fork from parent process 8725]
[Inferior 1 (process 8725) detached]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 8728 is executing new program: /usr/bin/indi_apogee_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Application log
2024-09-26T17:19:35: startup: /usr/bin/indiserver -r 0 -v indi_apogee_ccd
2024-09-26T17:19:35: Driver indi_apogee_ccd: pid=8728 rfd=6 wfd=6 efd=7
2024-09-26T17:19:35: listening to port 7624 on fd 5
2024-09-26T17:19:35: Local server: listening on local domain at: @/tmp/indiserver
2024-09-26T17:19:36: Driver indi_apogee_ccd: snooping on Apogee CCD.FILTER_SLOT
2024-09-26T17:19:36: Driver indi_apogee_ccd: snooping on Apogee CCD.FILTER_NAME
2024-09-26T17:19:36: Driver indi_apogee_ccd: snooping on SQM.SKY_QUALITY

@knro
Copy link
Contributor

knro commented Sep 27, 2024

No crash above.. you need to use the driver until it crashes.

@Rakaanishu
Copy link
Author

Not sure I fully understand how to use Ekos Debugger. I start the indi-apogee driver from it then if I try to connect the camera from Ekos panel, I get a warning saying that an Indi server instance is already active.

I get this from Ekos Debugger debug log:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Attaching after Thread 0x7ffff7f89740 (LWP 22381) fork to child process 22384]
[New inferior 2 (process 22384)]
[Detaching after fork from parent process 22381]
[Inferior 1 (process 22381) detached]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 22384 is executing new program: /usr/bin/indi_apogee_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Thread 2.1 "indi_apogee_ccd" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7ffff589eb80 (LWP 22384)]
0x00007ffff7714887 in __GI___libc_write (fd=2, buf=0x7fffffffabc0, nbytes=21) at ../sysdeps/unix/sysv/linux/write.c:26
#0 0x00007ffff7714887 in __GI___libc_write (fd=2, buf=0x7fffffffabc0, nbytes=21) at ../sysdeps/unix/sysv/linux/write.c:26
#1 0x00007ffff768aeed in _IO_new_file_write (f=0x7ffff781b6a0 <IO_2_1_stderr>, data=0x7fffffffabc0, n=21) at ./libio/fileops.c:1180
#2 0x00007ffff768b7d0 in new_do_write (to_do=, data=0x7fffffffabc0 "indi_apogee_ccd: EOF\n\177", fp=0x7ffff781b6a0 <IO_2_1_stderr>) at ./libio/libioP.h:947
#3 _IO_new_file_xsputn (n=21, data=, f=) at ./libio/fileops.c:1254
#4 _IO_new_file_xsputn (f=0x7ffff781b6a0 <IO_2_1_stderr>, data=, n=21) at ./libio/fileops.c:1196
#5 0x00007ffff76776d2 in buffered_vfprintf (s=0x7ffff781b6a0 <IO_2_1_stderr>, format=format@entry=0x7ffff7ed10ae "%s: EOF\n", args=args@entry=0x7fffffffcc00, mode_flags=mode_flags@entry=2) at ../libio/libioP.h:947
#6 0x00007ffff767665e in __vfprintf_internal (s=, format=0x7ffff7ed10ae "%s: EOF\n", ap=ap@entry=0x7fffffffcc00, mode_flags=2) at ./stdio-common/vfprintf-internal.c:1236
#7 0x00007ffff7734d13 in ___fprintf_chk (fp=, flag=, format=) at ./debug/fprintf_chk.c:33
#8 0x00007ffff7e1cfc7 in ?? () from /lib/x86_64-linux-gnu/libindidriver.so.2
#9 0x00007ffff7eb69cb in ?? () from /lib/x86_64-linux-gnu/libindidriver.so.2
#10 0x00007ffff7eb6e27 in eventLoop () from /lib/x86_64-linux-gnu/libindidriver.so.2
#11 0x00007ffff7e1d6f7 in main () from /lib/x86_64-linux-gnu/libindidriver.so.2
#12 0x00007ffff7629d90 in __libc_start_call_main (main=main@entry=0x7ffff7e1d5a5

, argc=argc@entry=1, argv=argv@entry=0x7fffffffdf38) at ../sysdeps/nptl/libc_start_call_main.h:58
#13 0x00007ffff7629e40 in __libc_start_main_impl (main=0x7ffff7e1d5a5 , argc=1, argv=0x7fffffffdf38, init=, fini=, rtld_fini=, stack_end=0x7fffffffdf28) at ../csu/libc-start.c:392
#14 0x000055555555a285 in ?? ()
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Attaching after Thread 0x7ffff7f89740 (LWP 22405) fork to child process 22408]
[New inferior 2 (process 22408)]
[Detaching after fork from parent process 22405]
[Inferior 1 (process 22405) detached]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 22408 is executing new program: /usr/bin/indi_apogee_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

On Ekos side, it doesn't say that the driver crashed but didn't manage to connect the camera. Is it the correct way to proceed?

@Rakaanishu
Copy link
Author

This is from Ekos logfile, without Ekos Debugger launched, showing the crash of indi-apogee driver.

[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - Welcome to KStars 3.7.2 Stable
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - Build: 2024-09-06T14:55:14Z
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - OS: "ubuntu"
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - API: "x86_64-little_endian-lp64"
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - Arch: "x86_64"
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - Kernel Type: "linux"
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - Kernel Version: "6.8.0-45-generic"
[2024-10-03T16:51:22.542 CEST INFO ][ org.kde.kstars] - Qt Version: 5.15.3
[2024-10-03T16:51:22.686 CEST DEBG ][ org.kde.kstars] - Opened the User DB. Ready.
[2024-10-03T16:51:22.782 CEST INFO ][ org.kde.kstars] - Processing "unnamedstars.dat" , HTMesh Level 3
[2024-10-03T16:51:22.782 CEST INFO ][ org.kde.kstars] - Sky Mesh Size: 512
[2024-10-03T16:51:22.798 CEST INFO ][ org.kde.kstars] - Loaded DSO catalog file: "unnamedstars.dat"
[2024-10-03T16:51:22.898 CEST WARN ][ org.kde.kstars] - "Étoile HD20 794 introuvable."
[2024-10-03T16:51:22.902 CEST WARN ][ org.kde.kstars] - "Étoile HD98 230 introuvable."
[2024-10-03T16:51:22.908 CEST INFO ][ org.kde.kstars] - Loaded DSO catalogs.
[2024-10-03T16:51:22.976 CEST INFO ][ org.kde.kstars] - Loading comets
[2024-10-03T16:51:23.027 CEST DEBG ][ org.kde.kstars] - Paths to color scheme : ("/usr/share/kstars/themes")
[2024-10-03T16:51:23.064 CEST DEBG ][ org.kde.kstars] - Reporting new timestep value: 60
[2024-10-03T16:51:23.079 CEST WARN ][ default] - libpng warning: iCCP: known incorrect sRGB profile
[2024-10-03T16:51:23.099 CEST WARN ][ kf.configwidgets] - A widget named ' "kcfg_AnalyzeAlternativeDirectoryName" ' was found but there is no setting named ' "AnalyzeAlternativeDirectoryName" '
[2024-10-03T16:51:23.163 CEST WARN ][ default] - QObject::connect(QAction, Ekos::Scheduler): invalid nullptr parameter
[2024-10-03T16:51:23.208 CEST WARN ][ default] - libpng warning: iCCP: known incorrect sRGB profile
[2024-10-03T16:51:23.246 CEST DEBG ][ org.kde.kstars] - Daylight Saving Time active
[2024-10-03T16:51:23.246 CEST DEBG ][ org.kde.kstars] - Next Daylight Savings Time change (Local Time): "dim. oct. 27 01:00:00 2024 GMT"
[2024-10-03T16:51:23.246 CEST DEBG ][ org.kde.kstars] - Next Daylight Savings Time change (UTC): "sam. oct. 26 23:00:00 2024 GMT"
[2024-10-03T16:51:23.315 CEST DEBG ][ org.kde.kstars] - Daylight Saving Time active
[2024-10-03T16:51:23.315 CEST DEBG ][ org.kde.kstars] - Next Daylight Savings Time change (Local Time): "dim. oct. 27 01:00:00 2024 GMT"
[2024-10-03T16:51:23.315 CEST DEBG ][ org.kde.kstars] - Next Daylight Savings Time change (UTC): "sam. oct. 26 23:00:00 2024 GMT"
[2024-10-03T16:51:23.315 CEST DEBG ][ org.kde.kstars] - Starting the timer
[2024-10-03T16:51:23.385 CEST DEBG ][ org.kde.kstars] - Date/Time is: "jeu. oct. 3 14:51:23 2024 GMT"
[2024-10-03T16:51:23.385 CEST DEBG ][ org.kde.kstars] - Location: "Paris, Paris, France"
[2024-10-03T16:51:23.385 CEST DEBG ][ org.kde.kstars] - TZ0: 1 TZ: 2
[2024-10-03T16:51:23.403 CEST WARN ][ default] - QImage::scaled: Image is a null image
[2024-10-03T16:51:23.518 CEST WARN ][ org.kde.kstars.ekos] - Failed to automatically connect due to missing EkosLive credentials: "Entry not found"
[2024-10-03T16:51:24.050 CEST INFO ][ org.kde.kstars] - Loading comets
[2024-10-03T16:51:28.605 CEST INFO ][ org.kde.kstars] - Loading asteroids
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "getDSSURL" : Type not registered with QtDBus in parameter list: float
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "getDSSURL" : Type not registered with QtDBus in parameter list: float
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "openFITS" : Type not registered with QtDBus in parameter list: QUrl
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "slotShowPositionBar" : Pointers are not supported: SkyPoint*
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "slotEyepieceView" : Pointers are not supported: SkyPoint*
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "slotEyepieceView" : Pointers are not supported: SkyPoint*
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Skipped method "updateLocationFromWizard" : Unregistered input type in parameter list: GeoLocation
[2024-10-03T16:59:41.330 CEST WARN ][ default] - Invalid return type in method "wiView"
[2024-10-03T16:59:41.331 CEST WARN ][ default] - Unsupported return type 65 QPixmap in method "grab"
[2024-10-03T16:59:41.331 CEST WARN ][ default] - Unsupported return type 65 QPixmap in method "grab"
[2024-10-03T16:59:41.342 CEST WARN ][ default] - Invalid return type in method "addAction"
[2024-10-03T16:59:41.342 CEST WARN ][ default] - Skipped method "setDefaultShortcuts" : Pointers are not supported: QAction*
[2024-10-03T17:03:29.668 CEST DEBG ][ org.kde.kstars.ekos] - Resetting Ekos Manager...
[2024-10-03T17:03:29.695 CEST INFO ][ org.kde.kstars.ekos] - "Démarrage des services INDI…"
[2024-10-03T17:03:29.696 CEST DEBG ][ org.kde.kstars.indi] - INDI: Starting local drivers...
[2024-10-03T17:03:29.696 CEST DEBG ][ org.kde.kstars.indi] - Starting INDI Server: ("-v", "-p", "7624", "-m", "1024", "-r", "0", "-f", "/tmp/indififoa60f3bf4") -f "/tmp/indififoa60f3bf4"
[2024-10-03T17:03:29.705 CEST DEBG ][ org.kde.kstars.indi] - INDI: INDI Server started locally on port 7624
[2024-10-03T17:03:29.705 CEST DEBG ][ org.kde.kstars.indi] - INDI Server Started? true
[2024-10-03T17:03:29.705 CEST DEBG ][ org.kde.kstars.indi] - Starting INDI Driver "indi_apogee_ccd"
[2024-10-03T17:03:29.710 CEST DEBG ][ org.kde.kstars.indi] - Adding managed driver "Apogee CCD"
[2024-10-03T17:03:29.710 CEST DEBG ][ org.kde.kstars.indi] - INDIListener: Adding a new client manager to INDI listener..
[2024-10-03T17:03:29.710 CEST DEBG ][ org.kde.kstars.indi] - INDI: Connecting to local INDI server on port 7624 ...
[2024-10-03T17:03:29.711 CEST DEBG ][ org.kde.kstars.indi] - INDI server connected.
[2024-10-03T17:03:29.711 CEST INFO ][ org.kde.kstars.ekos] - "Démarrage des services INDI sur le port 7 624."
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: startup: /usr/bin/indiserver -v -p 7624 -m 1024 -r 0 -f /tmp/indififoa60f3bf4"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: listening to port 7624 on fd 5"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: Local server: listening on local domain at: @/tmp/indiserver"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: FIFO: start indi_apogee_ccd -n "Apogee CCD""
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: With name: Apogee CCD"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: FIFO: Starting driver indi_apogee_ccd"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: Driver indi_apogee_ccd: pid=57652 rfd=9 wfd=9 efd=10"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: Client 8: new arrival from 127.0.0.1:40806 - welcome!"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: Driver indi_apogee_ccd: snooping on Apogee CCD.FILTER_SLOT"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: Driver indi_apogee_ccd: snooping on Apogee CCD.FILTER_NAME"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:29: Driver indi_apogee_ccd: snooping on SQM.SKY_QUALITY"
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - Received new device Apogee CCD
[2024-10-03T17:03:29.721 CEST DEBG ][ org.kde.kstars.indi] - Driver "Apogee CCD" is adding device Apogee CCD (exact match by label)
[2024-10-03T17:03:29.727 CEST DEBG ][ org.kde.kstars.indi] - INDIListener: New device "Apogee CCD"
[2024-10-03T17:03:29.727 CEST INFO ][ org.kde.kstars.ekos] - Ekos received a new device: "Apogee CCD"
[2024-10-03T17:03:29.730 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < ACTIVE_DEVICES >
[2024-10-03T17:03:29.730 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < PORT_TYPE >
[2024-10-03T17:03:29.730 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < NETWORK_INFO >
[2024-10-03T17:03:29.762 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < FILTER_TYPE >
[2024-10-03T17:03:29.763 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < CONNECTION >
[2024-10-03T17:03:29.764 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < DRIVER_INFO >
[2024-10-03T17:03:29.765 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < POLLING_PERIOD >
[2024-10-03T17:03:29.765 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < DEBUG >
[2024-10-03T17:03:29.765 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < SIMULATION >
[2024-10-03T17:03:29.766 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < CONFIG_PROCESS >
[2024-10-03T17:03:29.807 CEST INFO ][ org.kde.kstars.indi] - Apogee CCD : "[INFO] Debug is enabled. "
[2024-10-03T17:03:29.848 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < DEBUG_LEVEL >
[2024-10-03T17:03:29.849 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < LOGGING_LEVEL >
[2024-10-03T17:03:29.850 CEST DEBG ][ org.kde.kstars.indi] - < Apogee CCD >: < LOG_OUTPUT >
[2024-10-03T17:03:29.889 CEST DEBG ][ org.kde.kstars.indi] - Apogee CCD : "[DEBUG] Toggle Debug Level -- Driver Debug "
[2024-10-03T17:03:30.112 CEST INFO ][ org.kde.kstars.ekos] - Connecting to "Apogee CCD"
[2024-10-03T17:03:30.154 CEST INFO ][ org.kde.kstars.indi] - Apogee CCD : "[INFO] Searching for Apogee CCD... "
[2024-10-03T17:03:30.555 CEST DEBG ][ org.kde.kstars.indi] - Apogee CCD : "[DEBUG] Checking device: address=8,interface=usb,deviceType=camera,id=0x190,firmwareRev=0x7f,model=AltaF-47,interfaceStatus=NA "
[2024-10-03T17:03:30.556 CEST INFO ][ org.kde.kstars.indi] - Apogee CCD : "[INFO] Model: AltaF-47 ID: 400 Address: 8 Firmware: 0x7F "
[2024-10-03T17:03:32.383 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:32: Driver indi_apogee_ccd: read EOF"
[2024-10-03T17:03:32.383 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "<delProperty device="Apogee CCD"/>"
[2024-10-03T17:03:32.383 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: "2024-10-03T15:03:32: Driver indi_apogee_ccd: Terminated after #0 restarts."
[2024-10-03T17:03:32.383 CEST DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2024-10-03T17:03:32.383 CEST DEBG ][ org.kde.kstars.indi] - Removing device "Apogee CCD"
[2024-10-03T17:03:32.383 CEST CRIT ][ org.kde.kstars.indi] - INDI driver "indi_apogee_ccd" crashed!
[2024-10-03T17:03:32.386 CEST DEBG ][ org.kde.kstars.indi] - INDIListener: Removing device "Apogee CCD"
[2024-10-03T17:03:32.398 CEST INFO ][ org.kde.kstars.ekos] - "Le périphérique Apogee CCD est déconnecté."
[2024-10-03T17:03:32.398 CEST DEBG ][ org.kde.kstars.indi] - INDI: Stopping local drivers...
[2024-10-03T17:03:32.399 CEST DEBG ][ org.kde.kstars.indi] - Stopping INDI Driver "indi_apogee_ccd"
[2024-10-03T17:03:32.399 CEST DEBG ][ org.kde.kstars.indi] - Stopping INDI Server "localhost" @ 7624
[2024-10-03T17:03:32.399 CEST DEBG ][ org.kde.kstars.indi] - INDI server disconnected. Exit code: -1
[2024-10-03T17:03:32.399 CEST DEBG ][ org.kde.kstars.ekos] - Resetting Ekos Manager...
[2024-10-03T17:03:32.400 CEST INFO ][ org.kde.kstars.ekos] - "Services INDI arrêtés."
[2024-10-03T17:03:32.413 CEST DEBG ][ org.kde.kstars.indi] - INDIListener: Removing client manager for server localhost @ 7624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants