×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

[SOLVED] ASI ZWO driver keeps restarting

  • Posts: 434
  • Thank you received: 156
Ah well, just as I feared. If I remember correctly back in the day Linux on ARM used to work in such a way that unaligned memory accesses (trying to access for example 32-bit data that is not in 32-bit aligned address) caused trap in the kernel and depending on options the kernel either fixed up the access or raised SIGBUS as it's usually a bug and slow in any case and older ARM processors didn't support unaligned access at all.

I made a short test program that does exactly this and it works on both my Raspberries (Pi 4 running 64-bit and Pi 3 running 32-bit RaspberryOS). It needs to be renamed to unaligned.c (forum doesn't allow .c files) and compiled with -O0 or the compiler optimizes the access away and just prints the value. It should print "Value 0x8010203". This might be totally red herring and have nothing to do with the issue, but checking that on the problematic platforms would at least narrow the search a bit.

File Attachment:

File Name: unaligned.txt
File Size:0 KB
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
4 months 1 week ago #84714
Attachments:

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

  • Posts: 964
  • Thank you received: 128
"Value 0x8010203" is what I get here (Pi4, openSUSE Tumbleweed 64bit). As reported, on my Pi4 indi_asi_ccd terminates with SIGBUS.
openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI2600/1600/290mini+EFW+EAF
The following user(s) said Thank You: Jarno Paananen
4 months 1 week ago #84716

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

  • Posts: 279
  • Thank you received: 54
I get the "Value 0x8010203" from unaligned.c on an ODroid N2 (Ubuntu Mate 20.04 LTS).

Haven't checked the latest ASI library on that platform though, still running 1.22.
4 months 1 week ago #84717

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

  • Posts: 376
  • Thank you received: 55

I get Value 0x8010203.
on Ubuntu 20.04.4 LTS
Linux 4.9.312-125 aarch64. arm64
120 MM Skywatcher Esprit + Celestron CGX, ZWO ASI 224MC guiding, Pegasus FocusCube+PPBA
Nikon Z7 8256 x 5504 4.34 um. Triad Ultra Quad NB Filter
1) MeLE Quieter3C 8G Ubuntu-mate 22.04.1 2) Odroid-N2. 3) StellarMate RPI4 8G
The good, the bad, the ugly at sciencedowneast.no-ip.ca/zenphoto/
4 months 1 week ago #84719

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

  • Posts: 5
  • Thank you received: 0
This is the line in my log file:
[2022-07-26T21:47:14.018 MST DEBG ][ org.kde.kstars.indi] - INDI Server: "2022-07-27T04:47:13: Driver indi_asi_ccd: indi_asi_ccd: symbol lookup error: indi_asi_ccd: undefined symbol: _ZN4INDI3CCD15addFITSKeywordsEP8fitsfilePNS_7CCDChipE"

Running Ubuntu 20.04 LTS
Kstars Bleeding ...
4 months 1 week ago #84727

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

  • Posts: 434
  • Thank you received: 156
The undefined symbol error is common for having a 3rd-party driver and base INDI library out of sync (C++ is notorious for introducing ABI-incompatibilities when pretty much anything in the base class changes), recompiling the 3rd-party driver fixes it.
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
4 months 6 days ago #84736

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

I asked ZWO to look into this, and they said they are checking it out. We'll see if they can reproduce the arm64 issue.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You: Gilles Gagnon
4 months 6 days ago #84758

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

  • Posts: 5
  • Thank you received: 0
I am running Ubuntu 20.04 LTS --- bleeding ...
I'm a bit confused... and a new moon is going to waste.
I think the indi_asi_ccd dirver is closed source and we are dependant on ZWO to fix this.Please confirm.

If I am mistaken and a compile from source will fix this, then I need to verify that this URL links to the latest source building instructions for my architecture.
indilib.org/forum/general/210-howto-buil...st-libindi-ekos.html
... finally, Is there a simple way to switch to an earlier INDI version that will allow me to use a 6200MC camera with a CEM40 mount.
Thanks
4 months 5 days ago #84767

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

  • Posts: 964
  • Thank you received: 128
No, indi_asi_ccd is open source, but it links against the binary-only libASICamera2, which seems to be the cause of the crashes. So yes, ZWO has to fix this. Recompiling everything yourself won't.
Until then, on aarch64 you need to downgrade to an earlier version of that library (1.22 is safe).
In doubt set your package manager to keep downloaded packages, so you can easily downgrade in case of issues. Can't give you guides to that though, as I'm RPM-based....
If you can compile yourself, it is enough to compile libasi from indi-3rdparty. You just need to check out a version with the proper lib (that would be commit 33bb2a3ec71)
openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI2600/1600/290mini+EFW+EAF
4 months 5 days ago #84770

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

  • Posts: 202
  • Thank you received: 45

Replied by nou on topic ASI ZWO driver keeps restarting

Jasem reverted libASICamera2 to 1.22 for arm8 like hour ago. So compiling latest indi-3rdparty should work now.
The following user(s) said Thank You: Alfred, Peter Sütterlin
4 months 4 days ago #84771

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

  • Posts: 434
  • Thank you received: 156
There is now a new SDK available and change log mentions fixing this issue. I made a pull request at github.com/indilib/indi-3rdparty/pull/626 if you want to test before it's merged to main branch.
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
3 months 4 weeks ago #85068

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

  • Posts: 964
  • Thank you received: 128
Don't know how to check out such a PR, but I downloaded the SDK from ZWO and installed (only) armv8/libASICamera2.so.1.26 on my Pi4.
Indeed I can again connect to my two cameras (290MMmini and 183MC), take images etc.
Thanks!
openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI2600/1600/290mini+EFW+EAF
The following user(s) said Thank You: Jarno Paananen, David Swinnard
3 months 4 weeks ago #85070

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

Time to create page: 1.274 seconds