Thomas Stibor replied to the topic 'Re:RE: Re:Announcing Ekos Live' in the forum. 1 week ago

Hi Jasem,

that is very impressive and another huge step towards making INDI/EKOS a big success.

Thanks for all your work !!!

Read More...

Thomas Stibor replied to the topic 'indi_canon_ccd ERROR:Unsufficient memory' in the forum. 2 weeks ago

Is there not a

RawProcessor.recycle()
missing at the end of
read_libraw()
before the function return 0 when successful?
I cannot see where the resources are free'd!
In other words:
int read_libraw(const char *filename, uint8_t **memptr, size_t *memsize, int *n_axis, int *w, int *h, int *bitsperpixel,                                                      
                char *bayer_pattern)                                                                                                                                          
{                                                                                                                                                                             
    int ret = 0;                                                                                                                                                              
    // Creation of image processing object                                                                                                                                    
    LibRaw RawProcessor;                                                                                                                                                      
                                                                                                                                                                              
    // Let us open the file                                                                                                                                                   
    if ((ret = RawProcessor.open_file(filename)) != LIBRAW_SUCCESS)                                                                                                           
    {                                                                                                                                                                         
        DEBUGFDEVICE(device, INDI::Logger::DBG_ERROR, "Cannot open %s: %s", filename, libraw_strerror(ret));                                                                  
        RawProcessor.recycle();                                                                                                                                               
        return -1;                                                                                                                                                            
    }                                                                                                                                                                         
                                                                                                                                                                              
    // Let us unpack the image                                                                                                                                                
    if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS)                                                                                                                      
    {                                                                                                                                                                         
        DEBUGFDEVICE(device, INDI::Logger::DBG_ERROR, "Cannot unpack %s: %s", filename, libraw_strerror(ret));                                                                
        RawProcessor.recycle();                                                                                                                                               
        return -1;                                                                                                                                                            
    }
...
...
  for (int i = 0; i < RawProcessor.imgdata.rawdata.sizes.height; i++)                                                                                                       
    {                                                                                                                                                                         
        memcpy(image, src, RawProcessor.imgdata.rawdata.sizes.width * 2);                                                                                                     
        image += RawProcessor.imgdata.rawdata.sizes.width;                                                                                                                    
        src += RawProcessor.imgdata.rawdata.sizes.raw_width;                                                                                                                  
    }                                                                                                                                                                         
  
   /* TODO: */
     RawProcessor.recycle()                                                                                                                                                                       
    return 0;                                                                                                                                                                 
}


Read More...

Thomas Stibor replied to the topic 'sudo make install failing for kstars' in the forum. 4 weeks ago

Well everything is written in the cmake error log:

>apt search libdc1394
Sorting... Done
Full Text Search... Done
libdc1394-22/stable,now 2.2.5-1 amd64 [installed]
  high level programming interface for IEEE 1394 digital cameras

libdc1394-22-dbg/stable 2.2.5-1 amd64
  debugging symbols for the libdc1394-22 library

libdc1394-22-dev/stable,now 2.2.5-1 amd64 [installed,automatic]
  high level programming interface for IEEE 1394 digital cameras - development

libdc1394-22-doc/stable 2.2.5-1 all
  high level programming interface for IEEE 1394 digital cameras - documentation

libdc1394-utils/stable 2.2.5-1 amd64
  utilities for IEEE 1394 digital cameras
>grep -r "dc1394" | grep incl
3rdparty/indi-ffmv/ffmv_ccd.h:#include <dc1394/dc1394.h>
3rdparty/indi-ffmv/ffmv_ccd.cpp:#include <dc1394/dc1394.h>
cmake_modules/FindDC1394.cmake:# - Try to find dc1394 library (version 2) and include files
macosx/INDI Server/INDI Server.xcodeproj/project.pbxproj:		59E530571C949FEF0071DE74 /* libdc1394.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libdc1394.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
>apt-file search dc1394/dc1394.h
libdc1394-22-dev: /usr/include/dc1394/dc1394.h

Thus !! package libdc1394-22-dev needs to installed (Debian 9.4)

Read More...

Thomas Stibor replied to the topic 'sudo make install failing for kstars' in the forum. 4 weeks ago

sudo apt-get install libqt5websockets5-dev


Read More...

Thomas Stibor replied to the topic 'sudo make install failing for kstars' in the forum. 4 weeks ago

It looks like the following package is missing:

>apt-file search Qt5WebSocketsConfig.cmake
libqt5websockets5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5WebSockets/Qt5WebSocketsConfig.cmake


Read More...

Thomas Stibor replied to the topic 'QHY driver crash on start' in the forum. 3 months ago

According to github date/time information, the latest drivers (SDK) are
https://github.com/qhyccd-lzr/QHYCCD_Linux_New

So probably the problem can be fixed in those version (1.1.1)

Read More...

Thomas Stibor replied to the topic 'QHY driver crash on start' in the forum. 3 months ago

There exists also the following github repo https://github.com/qhyccd-lzr/QHYCCD_Linux_New
with version 1.1.1, however, only for arch x86_64 and armv8.

The current one in libindi repo where pushed by Jasem

>git log -1 --follow libqhyccd_x86_64.bin
commit 5cd83c371be08ff5d8e4a1ba27c542f141d0b0fd
Author: Jasem Mutlaq <mutlaqja@ikarustech.com>
Date:   Thu Apr 19 18:18:04 2018 +0300

    QHY SDK 2.0.3 release

@Jasem, where did you get this version?

Read More...

Thomas Stibor replied to the topic 'QHY driver crash on start' in the forum. 3 months ago

I tried it with https://github.com/qhyccd-lzr/QHYCCD_Linux/blob/master/libqhy_64.bin
and it does not crash anymore.

Here with

>md5sum libqhyccd.so.2.0.3
62fa9d68e3bc39ba3378ec485aa52473  libqhyccd.so.2.0.3
>./qhy_ccd_test                                          master
QHY Test CCD using SingleFrameMode, Version: 1.00
SDK resources initialized.
*** Error in `./qhy_ccd_test': double free or corruption (fasttop): 0x000055755c42e230 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bfb)[0x7fbdfdddbbfb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76fc6)[0x7fbdfdde1fc6]
/lib/x86_64-linux-gnu/libc.so.6(+0x7780e)[0x7fbdfdde280e]
/opt/indi/master/lib/libqhyccd.so.2(ScanQHYCCD+0x152)[0x7fbdfee79913]
./qhy_ccd_test(main+0x9d)[0x55755abc918d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fbdfdd8b2e1]

and here with
>md5sum ./libqhyccd.so (libqhy_64.bin)
091ae907433626f6ca65ae415edf4d55  ./libqhyccd.so
>./qhy_ccd_test                                          master
QHY Test CCD using SingleFrameMode, Version: 1.00
SDK resources initialized.
No QHYCCD camera found, please check USB or power.

As mentioned before, this seems to me a problem of the proprietary Linux QHY library.

Read More...

Thomas Stibor replied to the topic 'QHY driver crash on start' in the forum. 3 months ago

Hi starrybird,

this looks like a problem with the (proprietary) libqhyccd_x86_64.bin (ibqhyccd.so.2.0.3)
According to your dump, there seems to be a free(...) on a NULL pointer in function ScanQHYCCD.
How about downloading the latest (or an version earlier) proprietary qhy lib and try with that version.
The current one in libindi is:

>md5sum libqhyccd.so.2.0.3
62fa9d68e3bc39ba3378ec485aa52473  libqhyccd.so.2.0.3

>md5sum libqhyccd_x86_64.bin
62fa9d68e3bc39ba3378ec485aa52473  libqhyccd_x86_64.bin

Cheers
Thomas

Read More...

Alfred is friends with Thomas Stibor

Thomas Stibor replied to the topic 'Question re FITS/CR2 conversion' in the forum. 3 months ago

Well I guess a simple hack would be as follows:
Copy one of your CR2 file to /tmp/myfile.CR2
Patch and recompile as shown below.
Start indiserver with gphoto2 driver take an image with EKOS or indi_setprop

Change in gphoto_ccd.cpp:

bool GPhotoCCD::grabImage()
{
...
if (read_libraw(tmpfile, &memptr, &memsize, &naxis, &w, &h, &bpp, bayer_pattern))                                                                                                                                           
to
bool GPhotoCCD::grabImage()
{
...
if (read_libraw("/tmp/myfile.CR2", &memptr, &memsize, &naxis, &w, &h, &bpp, bayer_pattern))                                                                                                                                           


Read More...

Niko Kivel thanked Thomas Stibor in topic SVD_MathPlugin error 3 months ago
Jasem Mutlaq thanked Thomas Stibor in topic SVD_MathPlugin error 3 months ago
Thomas Stibor replied to the topic 'SVD_MathPlugin error' in the forum. 3 months ago

Hi Niko,

the problem is here:

--- a/libindi/libs/indibase/alignment/MathPluginManagement.cpp
+++ b/libindi/libs/indibase/alignment/MathPluginManagement.cpp
@@ -361,7 +361,7 @@ void MathPluginManagement::EnumeratePlugins()
     #endif
 
     dp    = opendir(MATH_PLUGINS_DIRECTORY);
-    snprintf(MATH_PLUGINS_DIRECTORY, 2048 - 1, "%s%s", MATH_PLUGINS_DIRECTORY, "/");
+    snprintf(MATH_PLUGINS_DIRECTORY, 2048 - 1, "%s%s", INDI_MATH_PLUGINS_DIRECTORY, "/");
     if (dp)

I send a PR to Jasem Fix issue: cannot load plugin /libindi_SVD_MathPlugin.so
which fixes the problem:
>./indiserver -v indi_eqmod_telescope
2018-04-24T09:14:21: startup: ./indiserver -v indi_eqmod_telescope 
2018-04-24T09:14:21: Driver indi_eqmod_telescope: pid=20339 rfd=3 wfd=6 efd=7
2018-04-24T09:14:21: listening to port 7624 on fd 4
2018-04-24T09:14:21: Driver indi_eqmod_telescope: snooping on GPS Simulator.GEOGRAPHIC_COORD
2018-04-24T09:14:21: Driver indi_eqmod_telescope: snooping on GPS Simulator.TIME_UTC
2018-04-24T09:14:21: Driver indi_eqmod_telescope: snooping on Dome Simulator.DOME_PARK
2018-04-24T09:14:21: Driver indi_eqmod_telescope: snooping on Dome Simulator.DOME_SHUTTER
2018-04-24T09:14:21: Driver indi_eqmod_telescope: Using prefix /opt/indi/master/share/indi//indi_eqmod_sk.xml
2018-04-24T09:14:21: Driver indi_eqmod_telescope: Using prefix /opt/indi/master/share/indi//indi_align_sk.xml
2018-04-24T09:14:21: Driver indi_eqmod_telescope: Using prefix /opt/indi/master/share/indi//indi_eqmod_simulator_sk.xml
2018-04-24T09:14:21: Driver indi_eqmod_telescope: Using prefix /opt/indi/master/share/indi//indi_eqmod_scope_limits_sk.xml
2018-04-24T09:14:21: Driver indi_eqmod_telescope: EnumeratePlugins - found plugin SVD Math Plugin

Cheers
Thomas

Read More...

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!