bugGNU Astronomy Utilities - Bugs: bug #49588, Segfault in mesh interpolation

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #49588: Segfault in mesh interpolation

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Fri 11 Nov 2016 08:25:04 PM UTC
   
 
Category:  NoiseChisel Severity:  4 - Important
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Fri 11 Nov 2016 08:43:44 PM UTC, comment #1: 

The issue was fixed and has been pushed to the main repo.

Just to complete the explanation, the sample image was 30x30 pixels wide while the small mesh size was 32x32 pixels (the default value). So ultimately, the mesh library (through NoiseChisel in this case) will abort, but there will be an explanation to explain why it didn't complete.


astnoisechisel img.fits
NoiseChisel started on Fri Nov 11 21:30:56 2016
  - Using 8 CPU threads.
  - Input: test.fits (hdu: 1)
  - Kernel: FWHM=2 pixel Gaussian.
  - Convolved with kernel.                        0.000470 seconds
  - Starting to find initial detections.
astnoisechisel: Interpolating quantile threshold: only 0 mesh(s) are filled for interpolation in channel 0. Either set less restrictive requirements to get more interpolation points or decrease the number of nearest points to use for interpolation. Problem encountered on thread 0, for pixel 0. When running on multiple threads, This message might be repeated for different threads


In such cases, it might be useful to allow no interpolation when the mesh and image size are roughly similar (only one mesh) and the mesh could be given a value (task #14218).

Mohammad Akhlaghi <makhlaghi>
Group administrator
Fri 11 Nov 2016 08:25:04 PM UTC, original submission:  

This bug was reported by Nicolas Bouché.

When the input image is very small (about the same size as the mesh grid), then there will only be one mesh and NoiseChisel (which uses the mesh library) gives a segmentation fault:


$ astnoisechisel img.fits
NoiseChisel started on Thu Nov 10 21:00:12 2016
  - Using 4 CPU threads.
  - Input: img.fits (hdu: 0)
  - Kernel: FWHM=2 pixel Gaussian.
  - Convolved with kernel.                        0.000716 seconds
  - Starting to find initial detections.
Segmentation fault


Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-11 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2016-11-11 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code