×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Driver indi_duino: Impossible IPState

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43900
Some better GDB output...

root@heidenrod-obs:~# gdb
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later < 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:
< www.gnu.org/software/gdb/bugs/ >.
Find the GDB manual and other documentation resources online at:
< www.gnu.org/software/gdb/documentation/ >.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) attach 3289
Attaching to process 3289
Reading symbols from /usr/bin/indi_duino...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libgcc_s.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libc.so.6...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/libc-2.27.so...done.
done.
Reading symbols from /lib/ld-linux-armhf.so.3...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/ld-2.27.so...done.
done.
Reading symbols from /lib/arm-linux-gnueabihf/libusb-1.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libnova-0.16.so.0...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/4d/3351cbf918fa4aa6a75a4f28f6ac596979ec3a.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Reading symbols from /usr/lib/arm-linux-gnueabihf/libcfitsio.so.5...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libz.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libjpeg.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libtheoraenc.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libtheoradec.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libogg.so.0...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libm.so.6...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/libm-2.27.so...done.
done.
Reading symbols from /lib/arm-linux-gnueabihf/libudev.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libbz2.so.1.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libcairo.so.2...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/librt.so.1...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/librt-2.27.so...done.
done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libnghttp2.so.14...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libidn2.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/librtmp.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libpsl.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libnettle.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libgnutls.so.30...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libpixman-1.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libfreetype.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libpng16.so.16...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libxcb-shm.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libxcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libxcb-render.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libXrender.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libX11.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libXext.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libunistring.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libhogweed.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libgmp.so.10...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libtasn1.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libkrb5.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libcom_err.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libresolv.so.2...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/libresolv-2.27.so...done.
done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libsasl2.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libgssapi.so.3...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libexpat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libXau.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libdl.so.2...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/libdl-2.27.so...done.
done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libffi.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libkeyutils.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libheimntlm.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libkrb5.so.26...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libasn1.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libhcrypto.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libroken.so.18...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libbsd.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libwind.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libheimbase.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libhx509.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0...(no debugging symbols found)...done.
Reading symbols from /lib/arm-linux-gnueabihf/libcrypt.so.1...Reading symbols from /usr/lib/debug//lib/arm-linux-gnueabihf/libcrypt-2.27.so...done.
done.
__libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46
46 ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory.
(gdb) bt
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46
#1 0xb6cdbb52 in __GI___select (nfds=1, readfds=0xbef79464, writefds=0x0, exceptfds=0x0, timeout=0x0) at ../sysdeps/unix/sysv/linux/select.c:41
#2 0xb6ea6ca2 in ?? () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago 1 month 3 weeks ago by Gonzothegreat.
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43901
Trying different GDB...

heidenrod@heidenrod-obs:~$ gdb --eval-command="set follow-fork-mode child" --args indiserver -v indi_duino
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later < 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:
< www.gnu.org/software/gdb/bugs/ >.
Find the GDB manual and other documentation resources online at:
< www.gnu.org/software/gdb/documentation/ >.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from indiserver...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/indiserver -v indi_duino
Cannot parse expression `.L1207 4@r4'.
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2019-09-26T17:23:46: startup: /usr/bin/indiserver -v indi_duino
[New process 3915]
2019-09-26T17:23:46: Driver indi_duino: pid=3915 rfd=3 wfd=6 efd=7
2019-09-26T17:23:46: listening to port 7624 on fd 4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
process 3915 is executing new program: /usr/bin/indi_duino
Cannot parse expression `.L1207 4@r4'.
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2019-09-26T17:23:48: Driver indi_duino: Indiduino driver start...
2019-09-26T17:23:48: Driver indi_duino: Building from /usr/share/indi/meteostation_sk.xml skeleton
2019-09-26T17:23:48: Driver indi_duino: Using INDISKEL /usr/share/indi/meteostation_sk.xml
2019-09-26T17:23:48: Driver indi_duino: Impossible IPState 574448995
2019-09-26T17:23:48: Driver indi_duino: Impossible IPState 1399219556
2019-09-26T17:23:48: Driver indi_duino: Impossible IPState 792463934
2019-09-26T17:23:48: Driver indi_duino: Impossible IPState 1835627552
2019-09-26T17:24:03: Client 0: new arrival from :51366 - welcome!
2019-09-26T17:24:03: Driver indi_duino: Impossible IPState 574448995
2019-09-26T17:24:03: Driver indi_duino: Impossible IPState 1399219556
2019-09-26T17:24:03: Driver indi_duino: Impossible IPState 792463934
2019-09-26T17:24:03: Driver indi_duino: Impossible IPState 1835627552

Thread 2.1 "indi_duino" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb578c010 (LWP 3915)]
0x7f559e24 in indiduino::TimerHit() ()
(gdb) bt
#0 0x7f559e24 in indiduino::TimerHit() ()
#1 0xb6ed5318 in timerfunc(void*) () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1
#2 0xb6ec6df2 in ?? () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) where
#0 0x7f559e24 in indiduino::TimerHit() ()
#1 0xb6ed5318 in timerfunc(void*) () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1
#2 0xb6ec6df2 in ?? () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit
A debugging session is active.

Inferior 2 [process 3915] will be killed.

Quit anyway? (y or n) y
2019-09-26T17:25:19: Driver indi_duino: stderr EOF
<delProperty device="Arduino"/>
2019-09-26T17:25:19: Driver indi_duino: restart #1
Child process 3915 died
2019-09-26T17:25:19: Driver indi_duino: pid=3916 rfd=3 wfd=7 efd=8
heidenrod@heidenrod-obs:~$



What is this ?

Starting program: /usr/bin/indiserver -v indi_duino
Cannot parse expression `.L1207 4@r4'.
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.


Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43905
This is the right GDB output !!!

root@heidenrod-obs:/home/heidenrod/indi-drivers/libindi_build# export INDISKEL=/usr/share/indi/meteostation_sk.xml
root@heidenrod-obs:/home/heidenrod/indi-drivers/libindi_build# gdb --eval-command="set follow-fork-mode child" --args ./indiserver -v indi_duino
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later < 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:
< www.gnu.org/software/gdb/bugs/ >.
Find the GDB manual and other documentation resources online at:
< www.gnu.org/software/gdb/documentation/ >.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./indiserver...done.
(gdb) break indicom.c:1285
No source file named indicom.c.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (indicom.c:1285) pending.
(gdb) run
Starting program: /home/heidenrod/indi-drivers/libindi_build/indiserver -v indi_duino
Cannot parse expression `.L1207 4@r4'.
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2019-09-26T19:32:22: startup: /home/heidenrod/indi-drivers/libindi_build/indiserver -v indi_duino
[New process 8315]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2019-09-26T19:32:22: Driver indi_duino: pid=8315 rfd=3 wfd=6 efd=7
2019-09-26T19:32:22: listening to port 7624 on fd 4
process 8315 is executing new program: /usr/bin/indi_duino
Cannot parse expression `.L1207 4@r4'.
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2019-09-26T19:32:24: Driver indi_duino: Indiduino driver start...
2019-09-26T19:32:24: Driver indi_duino: Building from /usr/share/indi/meteostation_sk.xml skeleton
2019-09-26T19:32:24: Driver indi_duino: Using INDISKEL /usr/share/indi/meteostation_sk.xml
[Switching to Thread 0xb5b363f0 (LWP 8315)]

Thread 2.1 "indi_duino" hit Breakpoint 1, pstateStr (s=574448995) at /home/heidenrod/indi-drivers/indi/libs/indicom.c:1285
1285 fprintf(stderr, "Impossible IPState %d\n", s);
(gdb) bt
#0 pstateStr (s=574448995) at /home/heidenrod/indi-drivers/indi/libs/indicom.c:1285
#1 0xb6ec5674 in IDDefLight (lvp=0x7f590708, fmt=0x0) at /home/heidenrod/indi-drivers/indi/indidriver.c:1893
#2 0xb6ed6b42 in INDI::DefaultDevice::ISGetProperties (this=0x7f58bdd0, dev=<optimized out>) at /home/heidenrod/indi-drivers/indi/libs/indibase/defaultdevice.cpp:756
#3 0x7f55baa8 in indiduino::ISGetProperties(char const*) ()
#4 0x7f559060 in ISGetProperties ()
#5 0xb6ec5aea in dispatch (root=root@entry=0x7f58fd88, msg=msg@entry=0xbeffec24 "") at /home/heidenrod/indi-drivers/indi/indidriver.c:964
#6 0xb6ec6420 in clientMsgCB (fd=<optimized out>, arg=<optimized out>) at /home/heidenrod/indi-drivers/indi/indidriver.c:882
#7 0xb6ec796a in callCallback (rfdp=0xbefff464) at /home/heidenrod/indi-drivers/indi/eventloop.c:347
#8 oneLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:439
#9 0xb6ec79e0 in eventLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:106
#10 0xb6ec766e in main (ac=0, av=<optimized out>) at /home/heidenrod/indi-drivers/indi/indidrivermain.c:98
#11 0xb6c7cfe6 in __libc_start_main (main=0xb6ec75b5 <main>, argc=1, argv=0xbefff694, init=<optimized out>, fini=0x7f55e0b5 <__libc_csu_fini>, rtld_fini=0xb6fe1701 <_dl_fini>, stack_end=0xbefff694)
at libc-start.c:310
#12 0x7f558c44 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43907
With the help of Jasem, he found out that the IPState error was due to the xml file being incorrect, it has now been corrected in github.com/indilib/indi-3rdparty/commit/...0a2b04e5ee7e90c66d92

However, I'm still having another issue, driver indi_duino crashes but we cannot figure this one out yet...

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43908
this is what's need more debugging

Thread 2.1 "indi_duino" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5b363f0 (LWP 8628)]
0x7f559e24 in indiduino::TimerHit() ()
(gdb) bt
#0 0x7f559e24 in indiduino::TimerHit() ()
#1 0xb6ed60b0 in timerfunc (t=<optimized out>) at /home/heidenrod/indi-drivers/indi/libs/indibase/defaultdevice.cpp:50
#2 0xb6ec7902 in checkTimer () at /home/heidenrod/indi-drivers/indi/eventloop.c:370
#3 oneLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:435
#4 0xb6ec79e0 in eventLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:106
#5 0xb6ec766e in main (ac=0, av=<optimized out>) at /home/heidenrod/indi-drivers/indi/indidrivermain.c:98
#6 0xb6c7cfe6 in __libc_start_main (main=0xb6ec75b5 <main>, argc=1, argv=0xbefff684, init=<optimized out>, fini=0x7f55e0b5 <__libc_csu_fini>, rtld_fini=0xb6fe1701 <_dl_fini>, stack_end=0xbefff684)
at libc-start.c:310
#7 0x7f558c44 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43910
a little bit more progress...

Thread 2.1 "indi_duino" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5b363f0 (LWP 8974)]
indiduino::TimerHit (this=0x7f58bdd0) at /home/heidenrod/indi-drivers/indi-3rdparty/indi-duino/indiduino.cpp:218
218 if ((pin_config->IOType == DO) || (pin_config->IOType == DI))
(gdb)
(gdb)
(gdb)
(gdb) bt
#0 indiduino::TimerHit (this=0x7f58bdd0) at /home/heidenrod/indi-drivers/indi-3rdparty/indi-duino/indiduino.cpp:218
#1 0xb6ed60b0 in timerfunc (t=<optimized out>) at /home/heidenrod/indi-drivers/indi/libs/indibase/defaultdevice.cpp:50
#2 0xb6ec7902 in checkTimer () at /home/heidenrod/indi-drivers/indi/eventloop.c:370
#3 oneLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:435
#4 0xb6ec79e0 in eventLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:106
#5 0xb6ec766e in main (ac=0, av=<optimized out>) at /home/heidenrod/indi-drivers/indi/indidrivermain.c:98
#6 0xb6c7cfe6 in __libc_start_main (main=0xb6ec75b5 <main>, argc=1, argv=0xbefff624, init=<optimized out>, fini=0x7f55e17d <__libc_csu_fini>, rtld_fini=0xb6fe1701 <_dl_fini>, stack_end=0xbefff624)
at libc-start.c:310
#7 0x7f558c44 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) 2019-09-26T20:40:15: Client 0: read EOF
2019-09-26T20:40:15: Client 0: shut down complete - bye!

#0 indiduino::TimerHit (this=0x7f58bdd0) at /home/heidenrod/indi-drivers/indi-3rdparty/indi-duino/indiduino.cpp:218
#1 0xb6ed60b0 in timerfunc (t=<optimized out>) at /home/heidenrod/indi-drivers/indi/libs/indibase/defaultdevice.cpp:50
#2 0xb6ec7902 in checkTimer () at /home/heidenrod/indi-drivers/indi/eventloop.c:370
#3 oneLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:435
#4 0xb6ec79e0 in eventLoop () at /home/heidenrod/indi-drivers/indi/eventloop.c:106
#5 0xb6ec766e in main (ac=0, av=<optimized out>) at /home/heidenrod/indi-drivers/indi/indidrivermain.c:98
#6 0xb6c7cfe6 in __libc_start_main (main=0xb6ec75b5 <main>, argc=1, argv=0xbefff624, init=<optimized out>, fini=0x7f55e17d <__libc_csu_fini>, rtld_fini=0xb6fe1701 <_dl_fini>, stack_end=0xbefff624)
at libc-start.c:310
#7 0x7f558c44 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit



after adding above and below github.com/indilib/indi-3rdparty/blob/83...o/indiduino.cpp#L146

LOG_INFO("##### 1 #####")
sf->OnIdle();
LOG_INFO("##### 2 #####")

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #43911
From the driver debug log generated by Ekos:

INFO 18.646749 sec : ##### 1 ####
DEBUG 18.647005 sec : Firmata message, 3 bytes, E0
DEBUG 18.647173 sec : ANALOG_MESSAGE: pin 14 is A0 = 5655
DEBUG 18.647367 sec : Firmata message, 3 bytes, E1
DEBUG 18.647506 sec : ANALOG_MESSAGE: pin 15 is A1 = 5742
DEBUG 18.647640 sec : Firmata message, 3 bytes, E2
DEBUG 18.647772 sec : ANALOG_MESSAGE: pin 16 is A2 = 9631
DEBUG 18.647906 sec : Firmata message, 3 bytes, E3
DEBUG 18.648035 sec : ANALOG_MESSAGE: pin 17 is A3 = 5772
DEBUG 18.648169 sec : Firmata message, 3 bytes, E4
DEBUG 18.648299 sec : ANALOG_MESSAGE: pin 18 is A4 = 6860
DEBUG 18.648432 sec : Firmata message, 3 bytes, E5
DEBUG 18.648562 sec : ANALOG_MESSAGE: pin 19 is A5 = 5746
DEBUG 18.648694 sec : Firmata message, 3 bytes, E6
DEBUG 18.648823 sec : ANALOG_MESSAGE: pin 20 is A6 = 5632
DEBUG 18.648979 sec : Firmata message, 3 bytes, E7
DEBUG 18.649113 sec : ANALOG_MESSAGE: pin 21 is A7 = 0
DEBUG 18.649250 sec : Firmata message, 3 bytes, E8
DEBUG 18.649383 sec : ANALOG_MESSAGE: pin 22 is A8 = 100
DEBUG 18.649514 sec : Firmata message, 3 bytes, E9
DEBUG 18.649645 sec : ANALOG_MESSAGE: pin 23 is A9 = 5552
DEBUG 18.649777 sec : Firmata message, 3 bytes, EA
DEBUG 18.650390 sec : ANALOG_MESSAGE: pin 24 is A10 = 5772
INFO 18.652702 sec : ##### 2 ####


Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #44034
Jasem,

I have git cloned 1.8.0 compiled it and tried, all working fine.
I have git cloned 1.8.1 commit e1ee8df compiled and it's not working

git clone -n github.com/indilib/indi.git
git checkout 7297e36 (1.8.0 compiled / working)
git checkout e1ee8df (1.8.1 compiled / not working)

I've done a git bisect...

root@heidenrod-obs:/home/heidenrod/indi-drivers/indi# git bisect start
root@heidenrod-obs:/home/heidenrod/indi-drivers/indi# git bisect good 7297e36
root@heidenrod-obs:/home/heidenrod/indi-drivers/indi# git bisect bad e1ee8df
Bisecting: 65 revisions left to test after this (roughly 6 steps)
[558ce1c08bf542bfc52a7966214150632db5ceca] send newRaDec _after_ setting all the TrackState changes so that the EQNp property state is reflected in INDI::Telescope::newRaDec function
root@heidenrod-obs:/home/heidenrod/indi-drivers/indi#

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #44035
Just realised I tried e1ee8df which is the latest commit ... I need to try from 0e47ba6 ... back to the drawing board...

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
The following user(s) said Thank You knro

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
G_Gagnon
Senior Boarder
Senior Boarder
Posts: 40
More
Driver indi_duino: Impossible IPState #44056
I decided to install meteostationWEB, a few days ago, to find out if I had the same issues as you had but to a lesser degree from what I understand. I got only a few of the "impossible IPState" messages you got but I got a fair bit of "MinMax FAIL" messages that I can't explain, not knowing the code enough. Sorry I can't/couldn't be of better help.

If that interests you, I built my meteo station using the BME280 instead of the BMP280/DHT22 that where used, with minor changes to the arduino code. The BME280 measures temperature, pressure and humidity in a single I2C sensor. I am also considering changing the solar cell by a TSL2591 I2C light sensor that has a much larger dynamic range that the solar cell and could give a rough estimate of the sky quality (SQM).

Thanks and good luck in your debugging.
The following user(s) said Thank You knro

Please Log in or Create an account to join the conversation.

1 month 2 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1632
Karma: 6
More
Topic Author
Driver indi_duino: Impossible IPState #44132
You can ignore the "MinMax FAIL" messages, been there for a long time and we never managed to fix this.
I'll carry on the debugging in a few weeks as I have some urgent matters to attend, if anyone want to have a bash at it...

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+

Please Log in or Create an account to join the conversation.

Time to create page: 0.226 seconds