View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000952 | SkyChart | 1-Software | public | 12-02-24 09:08 | 12-03-04 19:25 |
| Reporter | Jerzy Rokicki | Assigned To | Patrick Chevalley | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | x86_64 | OS | Ubuntu | OS Version | 10.10 |
| Product Version | 3.5 SVN | ||||
| Target Version | 3.6 | Fixed in Version | 3.5 SVN | ||
| Summary | 0000952: Displaying DSS images downloaded from DSS SkyView does not work | ||||
| Description | Displaying DSS images downloaded from DSS SkyView and others, does not work, the application downloads the image and hangs burdening one processor core, At default settings, the application after downloading the image changes fov and displays the image in the form of the wave :) | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
|
I cannot reproduce this problem, for me all the DSS images download and display correctly. Can you upload here a zip or tar file containing the following: - a saved chart just before you request the image(menu File/Save as...) - your file ~/.skychart/skychart.ini - the downloaded file ~/.skychart/pictures/$temp.fit.gz if not too big. |
|
|
What is your linux testing platform? |
|
|
I think, problem appears after implementation wcstools. |
|
|
I not have an Ubuntu 10.10 at hand but I tested your files on x86_64 Ubuntu 11.10 and 10.04 right now and all is working fine. The wcstools library is compiled on the Ubuntu 10.04 using gcc 4.4.3. It as very little dependency (libc,libm) so I don't think this can be a problem as it still work with 11.10. But you can check the dependency by running ldd /usr/lib/libcdcwcs.so Can you try to reduce the size of the window to a small portion of the screen and try to load the picture, this greatly reduce the number of computation to do. And also what processor do you use ? how much memory ? do the "free" command show any amount of swap used? |
|
|
I changed fov to 9 seconds and wait 0000027:0000060 seconds, effect is a wave, i have screenshot. Stable version (3.4) is woking fine. I'm thinking about dedicated virtual machine to run app for now (thats why I asked for testing platform) and I'm waiting waiting for 12.04 LTS to upgrade OS -------------------------------------------------------------------------- CPU model name : Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz total used free shared buffers cached Mem: 3008224 2445048 563176 0 9104 433128 -/+ buffers/cache: 2002816 1005408 Swap: 5859324 217956 5641368 -------------------------------------------------------------------------- linux-vdso.so.1 => (0x00007ffff4ba7000) libc.so.6 => /lib/libc.so.6 (0x00007fee0ffab000) libm.so.6 => /lib/libm.so.6 (0x00007fee0fd28000) /lib64/ld-linux-x86-64.so.2 (0x00007fee105d8000) Version information: /usr/lib/libcdcwcs.so: libc.so.6 (GLIBC_2.4) => /lib/libc.so.6 libc.so.6 (GLIBC_2.7) => /lib/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6 libm.so.6 (GLIBC_2.2.5) => /lib/libm.so.6 /lib/libc.so.6: ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2 /lib/libm.so.6: libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6 |
|
|
Can you upload the wave screenshot? You have a good processor so it is strange the time it take to load the image. I do two more testing: one with an Atom netbook and Ubuntu 11.10 i386, the other on my Ubuntu 12.04 test virtual machine. Both work fine, it take about 5 seconds on the netbook to load the image but this is a single core first generation atom. |
|
|
Screenshot attached |
|
|
Ok this give more information. It probably wrongly read the fits header, this result in this stupidly hight FOV of 13813 degrees. I will probably give you a link to a test version with more range checking and specific debug trace tonight. |
|
|
I make a test version that do more debug check than the usual build and add logging of the values returned by libcdcwcs that are used to compute the FOV and chart center. Download the file from: http://www.ap-i.net/pub/tmp/test.tar.bz2 Extract anywhere you want (in your home or /tmp, do not replace /usr/bin/skychart) run in a terminal with ./skychart Reopen your M3 fits file. Tar and upload here the console output. |
|
|
I attached archive with output and screenshot. |
|
|
Have you thought about a command line switch --debug. If someone reports a problem needs to perform an action on a program with the switch and attach the result. Many GNU programs have such a solution. |
|
|
This is not just a question of writing some information lines, the debug version I send you include a lot of supplementary code added by the compiler at each variable assignment and use, like the "range check" that break in your case. I prefer to use it only when need because this has a negative impact on performance So it break because the WCS return a pixel scale of zero, this give a floating point infinite for the FOV, then it break on the range check when it need the integer FOV in pixel. The pixel scale is zero because all the floating point values returned by the library are truncated to the integer value: My: cdcwcs_getinfo 0 ra:205.55000 de:28.38333 w:1538 h:755 s:1.170351 Your: cdcwcs_getinfo 0 ra:205.00000 de:28.00000 w:1538 h:732 s:0.000000 I am interested by the result if you can compile the library on your system. It just need gcc, anything else. - download the source from: http://www.ap-i.net/pub/tmp/cdcwcs.tgz - extract at a temporary location. - cd to the cdcwcs directory - type: make sudo cp libcdcwcs.so /usr/lib/ sudo ldconfig then run the debug version and look at this cdcwcs_getinfo line in the trace. |
|
|
2012-02-24T20:47:00.830 cdcwcs_getinfo 0 ra:205.00000 de:28.00000 w:1538 h:732 s:0.000000 2012-02-24T20:47:01.408 Center to FITS image ra:205.00000 de:28.00000 fov:0.000000 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) |
|
|
OK, now I want to test if the data lost is in the library itself or in the library interface with the program. Please download and extract : http://www.ap-i.net/pub/tmp/test2.tgz run ./wcshead ~/.skychart/pictures/\$temp.fit Copy the result line here, for me it give: RA---TAN DEC--TAN 205.550 28.383 FK5 769.50 378.00 -1.1704 1.1704 0.0000 Copy the included libcdcwcs.so to /usr/lib , run skychart from a terminal, load you fits file and copy the output line with cdcwcs_getinfo and the previous line. My result: 205.5500 28.3833 1.1704 205.5500 28.3833 1.1704 2012-02-25T10:33:53.801 cdcwcs_getinfo 0 ra:205.55000 de:28.38333 w:1538 h:755 s:1.170351 |
|
|
it's the fits file from first attachment ./wcshead \$temp.fit.gz $temp.fit.gz 1538 755 RA---TAN DEC--TAN 205.550 28.383 FK5 769.50 378.00 -1.1704 1.1704 0.0000 =============================================================================== before launch the program sudo cp libcdcwcs.so /usr/lib/ sudo ldconfig Result from skychart: 2012-02-25T17:20:18.802 m3_30s Paint 205,0000 28,0000 0,0000 205,0000 28,0000 0,0000 2012-02-25T17:20:22.234 cdcwcs_getinfo 0 ra:205.00000 de:28.00000 w:1538 h:732 s:0.000000 205,0000 28,0000 0,0000 205,0000 28,0000 0,0000 2012-02-25T17:20:24.370 cdcwcs_getinfo 0 ra:205.00000 de:28.00000 w:1538 h:732 s:0.000000 205,0000 28,0000 0,0000 205,0000 28,0000 0,0000 2012-02-25T17:20:26.853 cdcwcs_getinfo 0 ra:205.00000 de:28.00000 w:1538 h:732 s:0.000000 |
|
|
Ha! this remember me something! Decimal value show as 205.00000 in CdC but 205,0000 in the library. CdC force the decimal dot at startup even if your environment say it's a coma. This is to ensure the compatibility with catalog and ephemeris text files that use the dot. But it look like the library do not use the main program environment. I have reproduced the problem on my system by setting a locale that use the coma. But I need to investigate more because it look like the result depend on the way the program is launched (icon or terminal). Can you try to change your regional setting to set the decimal dot separator, reconnect your session and try again with the fits file. |
|
|
I did two things, I changed the regional setting on the terminal and run the program, displaying works correctly. I changed the system locale to English logged in again ran the program with an icon - the program works correctly. I have two comments not related to this issue. How can I contact you on this? |
|
|
Nice, I have committed a change for the library to force the numeric format and for me this solve the problem: http://svn.origo.ethz.ch/viewvc/skychart?view=rev&revision=2140 I also make a few change in the main program to be more robust if such an error occur elsewhere. I make a new beta tomorrow that include the change. Please test and reopen if necessary. You can contact me at: pch [at] freesurf [dot] ch |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 12-02-24 09:08 | Jerzy Rokicki | New Issue | |
| 12-02-24 10:15 | Patrick Chevalley | Note Added: 0001954 | |
| 12-02-24 10:15 | Patrick Chevalley | Assigned To | => Patrick Chevalley |
| 12-02-24 10:15 | Patrick Chevalley | Status | new => feedback |
| 12-02-24 10:32 | Jerzy Rokicki | File Added: skychart.tar.gz | |
| 12-02-24 10:33 | Jerzy Rokicki | Note Added: 0001955 | |
| 12-02-24 10:33 | Jerzy Rokicki | Status | feedback => assigned |
| 12-02-24 10:36 | Jerzy Rokicki | Note Added: 0001956 | |
| 12-02-24 11:58 | Patrick Chevalley | Note Added: 0001957 | |
| 12-02-24 11:58 | Patrick Chevalley | Status | assigned => feedback |
| 12-02-24 12:47 | Jerzy Rokicki | Note Added: 0001958 | |
| 12-02-24 12:47 | Jerzy Rokicki | Status | feedback => assigned |
| 12-02-24 13:17 | Patrick Chevalley | Note Added: 0001959 | |
| 12-02-24 13:17 | Patrick Chevalley | Status | assigned => feedback |
| 12-02-24 13:35 | Jerzy Rokicki | File Added: zrzut_ekranu-3.png | |
| 12-02-24 13:36 | Jerzy Rokicki | Note Added: 0001960 | |
| 12-02-24 13:36 | Jerzy Rokicki | Status | feedback => assigned |
| 12-02-24 14:44 | Patrick Chevalley | Note Added: 0001961 | |
| 12-02-24 14:45 | Patrick Chevalley | Target Version | 0.3.0 => 3.6 |
| 12-02-24 17:31 | Patrick Chevalley | Note Added: 0001962 | |
| 12-02-24 17:32 | Patrick Chevalley | Status | assigned => feedback |
| 12-02-24 19:37 | Jerzy Rokicki | File Added: debug.tar.gz | |
| 12-02-24 19:42 | Jerzy Rokicki | Note Added: 0001963 | |
| 12-02-24 19:42 | Jerzy Rokicki | Status | feedback => assigned |
| 12-02-24 19:49 | Jerzy Rokicki | Note Added: 0001964 | |
| 12-02-24 20:37 | Patrick Chevalley | Note Added: 0001965 | |
| 12-02-24 20:51 | Jerzy Rokicki | Note Added: 0001966 | |
| 12-02-25 10:36 | Patrick Chevalley | Note Added: 0001967 | |
| 12-02-25 10:36 | Patrick Chevalley | Status | assigned => feedback |
| 12-02-25 17:27 | Jerzy Rokicki | Note Added: 0001968 | |
| 12-02-25 17:27 | Jerzy Rokicki | Status | feedback => assigned |
| 12-02-25 19:52 | Patrick Chevalley | Note Added: 0001969 | |
| 12-02-25 19:52 | Patrick Chevalley | Status | assigned => feedback |
| 12-02-25 19:52 | Patrick Chevalley | Note Edited: 0001969 | |
| 12-02-25 21:49 | Jerzy Rokicki | Note Added: 0001970 | |
| 12-02-25 21:49 | Jerzy Rokicki | Status | feedback => assigned |
| 12-02-25 22:25 | Patrick Chevalley | Note Added: 0001971 | |
| 12-02-25 22:25 | Patrick Chevalley | Status | assigned => resolved |
| 12-02-25 22:25 | Patrick Chevalley | Resolution | open => fixed |
| 12-02-25 22:25 | Patrick Chevalley | Fixed in Version | 0.3.0 => 3.5 SVN |
| 12-03-04 19:25 | Patrick Chevalley | Status | resolved => closed |