Mattia replied to the topic 'PPBA Error' in the forum. 2 days ago
Mattia replied to the topic 'PPBA Error' in the forum. 2 days ago

Yeah makes sense and they shipped a fix in the meanwhile so should work now

Read More...

Mattia replied to the topic 'PPBA Error' in the forum. 2 days ago

Thanks! Let's see what mantainers say

Read More...

Mattia replied to the topic 'PPBA Error' in the forum. 2 days ago

there unfortunately it's a bit more complicated. I have seen sometimes things working and then breaking after some update to the main stream so possibly builds are not equal to each other.
Now, to my knowledge this issue relates only to the Pegasus driver hence my doubts - possibly this is very hard to catch since very few users use arch for kstars and probably only me and you use the ppba.
I think raising an issue may be a starting point tho, if you do so can you share the link? Thanks!

Read More...

Mattia replied to the topic 'PPBA Error' in the forum. 2 days ago

Hi, I messed a lot with kstars/ekos on ArchLinux and I think I know why these errors happen (I opened the thread you linked).
These errors seem to come from the c++ code itself, archlinux uses by default a lot of flags to compile packages with optimization, if you drop most of them the package will compile without causing Kstars to crash.

Also, if this of any interest to you github.com/devDucks/astroarch

I mantain some astropackages in a repo I made, those should work with no issue

Read More...

Mattia created a new topic ' need help with driver debugging' in the forum. 4 months ago

Hi all!

So, today my distro (archlinux) has bumped libindi to 1.9.5, after installing it tho it seems I got again some weird issues with the pegasus ppba driver, which is always crashing.

I tried to compile libindi 1.9.5 from source and here's the funny story, if I compile it by hand according to the instructions it works, if I use makepkg it crashes. Before getting to the arch forum and ask I would like to dive a bit deeper and try to understand exactly why it fails, but it seems I can't debug that driver so here I am to ask for some help.

This is what I tried when debugging:

  • compiled indi with -DCMAKE_BUILD_TYPE=Debug
  • made sure I am not stripping any symbol (confirmed later through gdb)
  • running gdb with 
    gdb --ex run --eval-command="set follow-fork-mode child" --args indiserver -vvv indi_pegasus_ppba
  • I then start kstars and try to connect the equipment, it fails immediately and the pegasus tab won't be in the indi tab
  • going back to the debugger, but it doesn't seem the crash has been caught, it seems it is running fine and I need to ctrl+c to step into the debugger, which leads to no backtrace

the only error I see is: stderr EOF

How can I force to be dropped into the debugger when it crashes?
Also, starting indiserver by hand doesn't lead to any crash, the crash only happens when ekos tries to connect and (probably?) ask for the device properties

Read More...

for anybody who will get this error in the future, this was coming straight from the kernel, it's not entirely clear why to me yet, but using the ArchLinux ARM kernel does something to FTDI devices that INDI does not like. I moved to `linux-rpi` and `linux-rpi-headers` and it started to work properly

Read More...

Mattia replied to the topic 'crash with the pegasus PPBA Genv2' in the forum. 4 months ago

today, I am also seeing the following thing, but not sure if it is a real error or not

No ISwitch 'CONNECTION_TCP' in Pegasus PPBA.CONNECTION_MODE


Read More...

Mattia created a new topic ' crash with the pegasus PPBA Genv2' in the forum. 4 months ago

Hi!

I am trying to make my pegasus functioning but it seems the driver keeps crashing, I am not really sure why, but when I start ekos and it tries to connect to the PPBA kstars just dies.

I was able to turn debugging on for the driver and this is what I getç

 ✘  ~  cat .indi/logs/2022-02-28/indi_pegasus_ppba/indi_pegasus_ppba_16:10:51.log 
INFO    130.758886 sec    : Session log file /home/matt/.indi/logs/2022-02-28/indi_pegasus_ppba/indi_pegasus_ppba_16:10:51.log
DEBUG    138.001118 sec    : Toggle Logging Level -- Driver Debug
DEBUG    146.667466 sec    : Connecting to /dev/serial/by-id/usb-Pegasus_Astro_PPBADV_Gen2A_PPBA671O4R-if00-port0 @ 9600
DEBUG    146.691271 sec    : Port FD 4
DEBUG    146.691300 sec    : Connection successful, attempting handshake...
DEBUG    146.691307 sec    : CMD <P#>
>EBUG    146.725863 sec    : RES <PPBA_OK
DEBUG    146.725891 sec    : Handshake failed.
DEBUG    148.224981 sec    : Connecting to /dev/serial/by-id/usb-Pegasus_Astro_PPBADV_Gen2A_PPBA671O4R-if00-port0 @ 9600
DEBUG    148.248330 sec    : Port FD 4
DEBUG    148.248381 sec    : Connection successful, attempting handshake...
DEBUG    148.248393 sec    : CMD <P#>
>EBUG    148.278172 sec    : RES <PPBA_OK
DEBUG    148.278213 sec    : Handshake failed.
DEBUG    148.751050 sec    : Connecting to /dev/serial/by-id/usb-Pegasus_Astro_PPBADV_Gen2A_PPBA671O4R-if00-port0 @ 9600
DEBUG    148.774322 sec    : Port FD 4
DEBUG    148.774373 sec    : Connection successful, attempting handshake...
DEBUG    148.774385 sec    : CMD <P#>
>EBUG    148.806155 sec    : RES <PPBA_OK
DEBUG    148.806196 sec    : Handshake failed.

I also tried to start kstars with gdb and while I wasn't able to discover much (as if I give a step it exists the app) I was able to see the following error:
SIGSEGV in strlen() hexcodehere /usr/lib/libc.so.6

anybody had the same issue? any idea on what could be wrong?

Read More...

Mattia replied to the topic 'Monitoring kstars - astromonitor' in the forum. 6 months ago

That is neat! I wasn't aware og such thing. I think by default the watchdog covers what I'd like to implement.

My solution tho, wants to be something that works if any if kstars/indi goes down and as you said, I'd like to have some smart introspection to be able to restart the session from where it left. I think having a dedicated program instead of a bunch of scripts may help with a couple of things

Read More...

Mattia replied to the topic 'Monitoring kstars - astromonitor' in the forum. 6 months ago

Hi John! If you are thinking of a kernel watchdog, this, in this state is somewhat similar, but with the exception that restarting a service, for kstars, specifically, cannot fully recover from a crash.

My idea is to add a bunch of custom logic to this program with time so it will eventually fit everybody's need, and eventually, one day, being able to restore a sessione to a pre-crash state

Read More...

Mattia created a new topic ' Monitoring kstars - astromonitor' in the forum. 6 months ago

Hi people!

I had some free time lately and I decided to start a small side project to solve one of the issue I face sometimes when using kstars, crashing.

To be clear, I don't recall having any crash on my PC (arch) but I get a lot of them on my raspberry pi and most of the time they seem to be random, this has caused me some issues in the past, the most dangerous IMO:
 - scope hitting the tripod cause the mount continue tracking after
 - sessions interrupted in half

So to the point, what I am providing?

Not much at the moment, for now I am just monitoring kstars every 15s and notify people via telegram if the process stops.

I have some other ideas for the next year like expanding to different notifications type (email, sms), restarting indi and do some recovery actions (parking) and other things that may be needed, but in the meanwhile, if you want to be notified if kstars crashes on your Linux/MacOS/raspberry you can try it :)

You can find the project here github.com/MattBlack85/astro_monitor should you have any issue installing please reach out

It is compiled so you don't need to install any dependency, the oneliner for installing works on my linux64 box and on my raspberry 32bit, haven't tried on aarch64 and MacOS!

Should you have any issue or ideas, please open an issue on github and I'll have a look!

Best,
Mattia

Read More...

that is impressive, thaknks for checking that out. I am gathering more data at the moment from my colleagues, different kstars version/raspberry versions and will report back soon maybe plotting more data.

In the meanwhile, what would be the suggested right thing to do for those who owns only a raspberry? using a single star SEP? PHD2?

Read More...