chad, Leonard,
Thank you. I've already rebuild and install the new indi_asi_ccd on my ubuntu 16.04. However same error.
The SDK only having a name different from the github (github is libASICamera2.bin and the SDK from ZWO website is libASICamera2.a) But i don't think that's a problem.
i also update the USB buffer settings to 200.
Anyways it seemed the debug log provide more details after my rebuild (I build with -DCMAKE_BUILD_TYPE=Debug), and here's the debug log. I also capture the EKOS XML CCD config, and then the gdb core results at the end.
INFO 0.016895 sec : Session log file /home/ubuntu/.indi/logs/2018-01-11/indi_asi_ccd/indi_asi_ccd_03.log
DEBUG 0.176351 sec : Attempting to open ZWO CCD ASI183MM Pro...
INFO 5.285224 sec : Setting intital bandwidth to AUTO on connection.
INFO 5.294735 sec : CCD is online. Retrieving basic data.
DEBUG 5.296895 sec : Control #0: name (Gain), Descp (Gain), Min (0), Max (450), Default Value (200), IsAutoSupported (True), isWritale (True)
DEBUG 5.297080 sec : Adding above control as writable control number 1
DEBUG 5.297164 sec : Adding above control as auto control number 1
DEBUG 5.297254 sec : Control #1: name (Exposure), Descp (Exposure Time(us)), Min (32), Max (1000000000), Default Value (10000), IsAutoSupported (True), isWritale (True)
DEBUG 5.297441 sec : Control #2: name (Gamma), Descp (Gamma), Min (1), Max (100), Default Value (50), IsAutoSupported (False), isWritale (True)
DEBUG 5.297554 sec : Adding above control as writable control number 2
DEBUG 5.297643 sec : Control #3: name (Brightness), Descp (Brightness(offset)), Min (0), Max (80), Default Value (8), IsAutoSupported (False), isWritale (True)
DEBUG 5.297765 sec : Adding above control as writable control number 3
DEBUG 5.297856 sec : Control #4: name (BandWidth), Descp (The total data transfer rate percentage), Min (40), Max (100), Default Value (50), IsAutoSupported (True), isWritale (True)
DEBUG 5.297992 sec : createControls->set USB 40
DEBUG 5.307637 sec : Adding above control as writable control number 4
DEBUG 5.307822 sec : Adding above control as auto control number 2
DEBUG 5.307924 sec : Control #5: name (Flip), Descp (Flip: 0->None 1->Horiz 2->Vert 3->Both), Min (0), Max (3), Default Value (0), IsAutoSupported (False), isWritale (True)
DEBUG 5.308059 sec : Adding above control as writable control number 5
DEBUG 5.308150 sec : Control #6: name (AutoExpMaxGain), Descp (Auto exposure maximum gain value), Min (0), Max (450), Default Value (225), IsAutoSupported (False), isWritale (True)
DEBUG 5.308288 sec : Adding above control as writable control number 6
DEBUG 5.308383 sec : Control #7: name (AutoExpMaxExpMS), Descp (Auto exposure maximum exposure value(unit ms)), Min (1), Max (60000), Default Value (100), IsAutoSupported (False), isWritale (True)
DEBUG 5.308532 sec : Adding above control as writable control number 7
DEBUG 5.308623 sec : Control #8: name (AutoExpTargetBrightness), Descp (Auto exposure maximum brightness value), Min (50), Max (160), Default Value (100), IsAutoSupported (False), isWritale (True)
DEBUG 5.308772 sec : Adding above control as writable control number 8
DEBUG 5.308876 sec : Control #9: name (HardwareBin), Descp (Is hardware bin2->No 1->Yes), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
DEBUG 5.309010 sec : Adding above control as writable control number 9
DEBUG 5.309100 sec : Control #10: name (HighSpeedMode), Descp (Is high speed mode->No 1->Yes), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
DEBUG 5.309235 sec : Adding above control as writable control number 10
DEBUG 5.309327 sec : Control #11: name (Temperature), Descp (Sensor temperature(degrees Celsius)), Min (-500), Max (1000), Default Value (20), IsAutoSupported (False), isWritale (False)
DEBUG 5.309478 sec : Control #12: name (CoolPowerPerc), Descp (Cooler power percent), Min (0), Max (100), Default Value (0), IsAutoSupported (False), isWritale (False)
DEBUG 5.309611 sec : Control #13: name (TargetTemp), Descp (Target temperature(cool camera only)), Min (-40), Max (30), Default Value (0), IsAutoSupported (False), isWritale (True)
DEBUG 5.309758 sec : Control #14: name (Cooler on), Descp (turn on/off cooler(cool camera only)), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
DEBUG 5.309907 sec : setupParams->set USB 40
DEBUG 5.319653 sec : CCD ID: 0 Width: 5496 Height: 3672 Binning: 1x1 Image Type: 0
DEBUG 5.319870 sec : Supported Video Format: ASI_IMG_RAW8
DEBUG 5.319965 sec : Supported Video Format: ASI_IMG_RAW16
INFO 5.320525 sec : The CCD Temperature is 20.500000
DEBUG 5.320733 sec : setupParams ASISetROIFormat (5496x3672, bin 1, type 0)
DEBUG 7.792593 sec : ISNewSwitch->SetControlValue 0 200.00
DEBUG 7.793974 sec : ISNewSwitch->SetControlValue 6 40.00
DEBUG 7.807074 sec : UpdateCCDFrame ASISetROIFormat (5496x3672, bin 1, type 0)
DEBUG 12.432983 sec : Setting frame buffer size to 20181312 bytes.
DEBUG 12.433873 sec : Toggle Debug Level -- Driver Debug
DEBUG 12.437372 sec : Toggle Debug Level -- Driver Debug
DEBUG 12.437564 sec : Toggle Logging Level -- Driver Debug
INFO 12.437731 sec : Session log file /home/ubuntu/.indi/logs/2018-01-11/indi_asi_ccd/indi_asi_ccd_03.log
INFO 12.437990 sec : Upload settings set to client only.
DEBUG 12.438310 sec : Requested CCD Frame is ( 0, 0) (5496 x 3672)
DEBUG 12.438417 sec : UpdateCCDFrame ASISetROIFormat (5496x3672, bin 1, type 0)
DEBUG 16.979662 sec : Setting frame buffer size to 20181312 bytes.
DEBUG 16.980015 sec : UpdateCCDFrame ASISetROIFormat (5496x3672, bin 1, type 0)
DEBUG 21.534567 sec : Setting frame buffer size to 20181312 bytes.
DEBUG 21.535279 sec : ISNewSwitch->SetControlValue 0 200.00
DEBUG 21.536586 sec : ISNewSwitch->SetControlValue 6 40.00
DEBUG 21.546376 sec : UpdateCCDFrame ASISetROIFormat (5496x3672, bin 1, type 0)
DEBUG 26.070093 sec : Setting frame buffer size to 20181312 bytes.
DEBUG 26.070623 sec : Configuration successfully loaded.
DEBUG 26.070946 sec : StartExposure->setexp : 1.000s
DEBUG 29.003927 sec : ASIGetExpStatus failed (0). Restarting exposure...
DEBUG 29.104193 sec : StartExposure->setexp : 1.000s
XML Config
<INDIDriver>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='DEBUG'>
<oneSwitch name='ENABLE'>
On
</oneSwitch>
<oneSwitch name='DISABLE'>
Off
</oneSwitch>
</newSwitchVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='DEBUG_LEVEL'>
<oneSwitch name='DBG_ERROR'>
On
</oneSwitch>
<oneSwitch name='DBG_WARNING'>
On
</oneSwitch>
<oneSwitch name='DBG_SESSION'>
On
</oneSwitch>
<oneSwitch name='DBG_DEBUG'>
On
</oneSwitch>
</newSwitchVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='LOGGING_LEVEL'>
<oneSwitch name='LOG_ERROR'>
On
</oneSwitch>
<oneSwitch name='LOG_WARNING'>
On
</oneSwitch>
<oneSwitch name='LOG_SESSION'>
On
</oneSwitch>
<oneSwitch name='LOG_DEBUG'>
On
</oneSwitch>
</newSwitchVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='LOG_OUTPUT'>
<oneSwitch name='CLIENT_DEBUG'>
On
</oneSwitch>
<oneSwitch name='FILE_DEBUG'>
On
</oneSwitch>
</newSwitchVector>
<newTextVector device='ZWO CCD ASI183MM Pro' name='ACTIVE_DEVICES'>
<oneText name='ACTIVE_TELESCOPE'>
Telescope Simulator
</oneText>
<oneText name='ACTIVE_FOCUSER'>
Focuser Simulator
</oneText>
<oneText name='ACTIVE_FILTER'>
CCD Simulator
</oneText>
<oneText name='ACTIVE_SKYQUALITY'>
SQM
</oneText>
</newTextVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='UPLOAD_MODE'>
<oneSwitch name='UPLOAD_CLIENT'>
On
</oneSwitch>
<oneSwitch name='UPLOAD_LOCAL'>
Off
</oneSwitch>
<oneSwitch name='UPLOAD_BOTH'>
Off
</oneSwitch>
</newSwitchVector>
<newTextVector device='ZWO CCD ASI183MM Pro' name='UPLOAD_SETTINGS'>
<oneText name='UPLOAD_DIR'>
/home/ubuntu
</oneText>
<oneText name='UPLOAD_PREFIX'>
IMAGE_XXX
</oneText>
</newTextVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='TELESCOPE_TYPE'>
<oneSwitch name='TELESCOPE_PRIMARY'>
On
</oneSwitch>
<oneSwitch name='TELESCOPE_GUIDE'>
Off
</oneSwitch>
</newSwitchVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='CCD_COMPRESSION'>
<oneSwitch name='CCD_COMPRESS'>
Off
</oneSwitch>
<oneSwitch name='CCD_RAW'>
On
</oneSwitch>
</newSwitchVector>
<newNumberVector device='ZWO CCD ASI183MM Pro' name='CCD_FRAME'>
<oneNumber name='X'>
0
</oneNumber>
<oneNumber name='Y'>
0
</oneNumber>
<oneNumber name='WIDTH'>
5496
</oneNumber>
<oneNumber name='HEIGHT'>
3672
</oneNumber>
</newNumberVector>
<newNumberVector device='ZWO CCD ASI183MM Pro' name='CCD_BINNING'>
<oneNumber name='HOR_BIN'>
1
</oneNumber>
<oneNumber name='VER_BIN'>
1
</oneNumber>
</newNumberVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='CCD_STREAM_ENCODER'>
<oneSwitch name='RAW'>
On
</oneSwitch>
<oneSwitch name='MJPEG'>
Off
</oneSwitch>
</newSwitchVector>
<newTextVector device='ZWO CCD ASI183MM Pro' name='RECORD_FILE'>
<oneText name='RECORD_FILE_DIR'>
/tmp/indi__D_
</oneText>
<oneText name='RECORD_FILE_NAME'>
indi_record__T_
</oneText>
</newTextVector>
<newNumberVector device='ZWO CCD ASI183MM Pro' name='RECORD_OPTIONS'>
<oneNumber name='RECORD_DURATION'>
1
</oneNumber>
<oneNumber name='RECORD_FRAME_TOTAL'>
30
</oneNumber>
</newNumberVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='CCD_STREAM_RECORDER'>
<oneSwitch name='SER'>
On
</oneSwitch>
<oneSwitch name='OGV'>
Off
</oneSwitch>
</newSwitchVector>
<newNumberVector device='ZWO CCD ASI183MM Pro' name='CCD_CONTROLS'>
<oneNumber name='Gain'>
200
</oneNumber>
<oneNumber name='Gamma'>
50
</oneNumber>
<oneNumber name='Brightness'>
8
</oneNumber>
<oneNumber name='BandWidth'>
40
</oneNumber>
<oneNumber name='Flip'>
0
</oneNumber>
<oneNumber name='AutoExpMaxGain'>
225
</oneNumber>
<oneNumber name='AutoExpMaxExpMS'>
30000
</oneNumber>
<oneNumber name='AutoExpTargetBrightness'>
100
</oneNumber>
<oneNumber name='HardwareBin'>
0
</oneNumber>
<oneNumber name='HighSpeedMode'>
0
</oneNumber>
</newNumberVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='CCD_CONTROLS_MODE'>
<oneSwitch name='AUTO_Gain'>
Off
</oneSwitch>
<oneSwitch name='AUTO_BandWidth'>
Off
</oneSwitch>
</newSwitchVector>
<newSwitchVector device='ZWO CCD ASI183MM Pro' name='CCD_VIDEO_FORMAT'>
<oneSwitch name='ASI_IMG_RAW8'>
On
</oneSwitch>
<oneSwitch name='ASI_IMG_RAW16'>
Off
</oneSwitch>
</newSwitchVector>
</INDIDriver>
ubuntu@ubuntu-standard:~$ gdb /usr/bin/indi_asi_ccd core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/indi_asi_ccd...done.
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `indi_asi_ccd'.
Program terminated with signal SIGABRT, Aborted.
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
47 ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory.
(gdb) thread apply all where
Thread 6 (Thread 0x76faa000 (LWP 2023)):
#0 0x76bd5472 in select () at ../sysdeps/unix/syscall-template.S
#1 0x76e61dae in ?? () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 5 (Thread 0x6ea14450 (LWP 2030)):
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
#1 0x76e00dba in __pthread_cond_wait (cond=0x55d0d784, mutex=0x55d0d7b4)
at pthread_cond_wait.c
#2 0x54b7c95a in InsertBufThd(void*) ()
#3 0x76dfc5b4 in start_thread (arg=0x0) at pthread_create.c
#4 0x76bd9bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S
from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 4 (Thread 0x66e97450 (LWP 2031)):
#0 0x76bb6e20 in nanosleep () at ../sysdeps/unix/syscall-template.S
#1 0x76bd5acc in usleep (useconds=10000) at ../sysdeps/posix/usleep.c
#2 0x54b7ae9e in AutoTempFunc(void*) ()
#3 0x76dfc5b4 in start_thread (arg=0x0) at pthread_create.c
#4 0x76bd9bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S
from /lib/arm-linux-gnueabihf/libc.so.6
---Type <return> to continue, or q <return> to quit---
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 3 (Thread 0x664ff450 (LWP 2032)):
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
#1 0x76e00dba in __pthread_cond_wait (cond=0x55d0c510, mutex=0x55d0c540)
at pthread_cond_wait.c
#2 0x54b04120 in ASICCD: (this=0x55d035b0)
at /media/usbdrive/Projects/indi/3rdparty/indi-asi/asi_ccd.cpp
#3 0x54b040b2 in ASICCD: (context=0x55d035b0)
at /media/usbdrive/Projects/indi/3rdparty/indi-asi/asi_ccd.cpp
#4 0x76dfc5b4 in start_thread (arg=0x0) at pthread_create.c
#5 0x76bd9bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S
from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 2 (Thread 0x76592450 (LWP 2029)):
#0 0x76bd3b90 in poll () at ../sysdeps/unix/syscall-template.S
#1 0x76e25f4c in poll (__timeout=-1, __nfds=2, __fds=0x76591e34)
at /usr/include/arm-linux-gnueabihf/bits/poll2.h
#2 linux_udev_event_thread_main (arg=<optimized out>)
at ../../libusb/os/linux_udev.c
#3 0x76dfc5b4 in start_thread (arg=0x0) at pthread_create.c
#4 0x76bd9bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S
---Type <return> to continue, or q <return> to quit---
from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 0x62cc3450 (LWP 2088)):
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
#1 0x76b6b648 in __GI_raise (sig=sig@entry=6)
at ../sysdeps/unix/sysv/linux/raise.c
#2 0x76b6c34a in __GI_abort () at abort.c
#3 0x76b925a6 in __libc_message (do_abort=do_abort@entry=1,
fmt=0x76c15c14 "*** %s ***: %s terminated\n")
at ../sysdeps/posix/libc_fatal.c
#4 0x76be539a in __GI___fortify_fail (
msg=0x76c15bf4 "stack smashing detected") at fortify_fail.c
#5 0x76be535e in __stack_chk_fail () at stack_chk_fail.c
#6 0x76e2277a in libusb_control_transfer (dev_handle=0x55d33918,
bmRequestType=<optimized out>, bRequest=<optimized out>,
wValue=<optimized out>, wIndex=0, data=0x0, wLength=0, timeout=200)
at ../../libusb/sync.c
#7 0x54b7b29c in CCameraFX3:(unsigned char) ()
#8 0x54b56346 in WorkingFunc ()
#9 0x76dfc5b4 in start_thread (arg=0x0) at pthread_create.c
#10 0x76bd9bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S
from /lib/arm-linux-gnueabihf/libc.so.6
---Type <return> to continue, or q <return> to quit---
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)