openastroproject / openastro

Open Astro Project
GNU General Public License v3.0
91 stars 27 forks source link

ZWO ASI183MC Segfault #381

Closed pijulius closed 5 years ago

pijulius commented 5 years ago

Hi Guys,

Just received the new ZWO ASI183MC cam and unfortunately even with the latest oaCapture 1.6 I have a segfault right away when I try to connect the camera.

I had another ZWO before and with that it perfectly worked (had a lot less resolution so not sure if that's the reason) and also can confirm it works with AstroDMX and FireCapture but I'm an oaCaptura fan for a lot of reasons so could you please help me figure out how to fix this?

I'm attaching the core dump maybe it helps, the fail happens at: oaZWASI2InitCamera ()

Thanks in advance and thanks for this app!

Regards, Julius coredump.zip

pijulius commented 5 years ago

FYI: just compiled oaCapture from source and not sure what it does but commenting out the following does make it work:

File: liboacam/zwo/ZWASI2connect.c Line: 1270

//cameraInfo->frameSizes[2].sizes[0].x = 2748; //cameraInfo->frameSizes[2].sizes[0].y = 1836; //cameraInfo->frameSizes[2].numSizes = 1;

openastroproject commented 5 years ago

That should be an acceptable temporary fix.

I think I've fixed the problem in development. Just need to check. If so I'll compile a new version.

pijulius commented 5 years ago

Thanks for confirming, I just checked the file here: https://github.com/openastroproject/openastro/blob/master/liboacam/zwo/ZWASI2connect.c

but still see the three lines there for: ZWOCAM_ASI183MM

In any case thanks for the new compilation in advance and forgot to tell you it's Fedora 30 that I'm on right now.

openastroproject commented 5 years ago

The actual fix should be this one here:

https://github.com/openastroproject/openastro/commit/736fe9e0294ad44f1e6d4e18858b82860581807c

pijulius commented 5 years ago

Unfortunately with the git version it now says "open of camera 0 failed" and wont connect to the camera. Please let me know if there are any tests I can do to help.

Sorry, Never mind! Had to restart for wathever reason but works just fine now with the git version! Thanks again for the quick fix and help!