Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample code SingleFrameSampletest gets segfault with QHY5IIL-m #13

Open
ykm2006 opened this issue Aug 14, 2015 · 0 comments
Open

sample code SingleFrameSampletest gets segfault with QHY5IIL-m #13

ykm2006 opened this issue Aug 14, 2015 · 0 comments

Comments

@ykm2006
Copy link

ykm2006 commented Aug 14, 2015

Testing 0.1.6 of QHYCCD_Linux with QHY5IIL-m on host IC8300 Linux (IC8300_debian_desktop_20150519.img) environment. Compiled the sample code SingleFrameSampletest.cpp with a modification to ignore IC8300 main camera detection and detect QHY5IIL-m instead, it produces a segmentation fault error. Following is the execution log:

root@ic8300# ./SingleFrameSampletest 
Init SDK success!
Yes!Found QHYCCD,the num is 2 
connected to the first camera from the list,id is QHY5LII-M-6037d510f33c7353
Open QHYCCD success!
Init QHYCCD success!
GetQHYCCDChipInfo success!
CCD/CMOS chip information:
Chip width 4.800000 mm,Chip height 3.600000 mm
Chip pixel width 3.750000 um,Chip pixel height 3.750000 um
Chip Max Resolution is 1280 x 960,depth is 8
SetQHYCCDResolution success!
SetQHYCCDBinMode success!
Segmentation fault
root@ic8300#

The modification I made in the SingleFrameSampletest.cpp just sets the starting counter from 1, as follows:

40c40
<     for(int i = 0;i < num;i++)

---
>     for(int i = 1;i < num;i++)

Since no source code is available for the library, no further investigation is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant