<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:58:04 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[PIPE2D-787] Invalid points can crash the DetectorMap code</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-787</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;With&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
/projects/HSC/PFS/Subaru/CALIB-SuNSS/DETECTORMAP/pfsDetectorMap-046270-b1.fits&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-python&quot;&gt;
detMap.findFiberId(geom.PointD(6000, -20000)) &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;crashes python in our C++:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
python3.7: src/ModelBasedDetectorMap.cc:177: virtual &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; pfs::drp::stella::ModelBasedDetectorMap::findFiberId(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; PointD&amp;amp;) &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;: Assertion `xNew &amp;gt; xLow &amp;amp;&amp;amp; xNew &amp;lt; xHigh&apos; failed.
Caught signal 6, backtrace follows:
/tigress/HSC/PFS/stack/current/stack/current/Linux64/utils/18.1.0/lib/libutils.so(+0x14a74) [0x2ba2eee49a74]
/lib64/libc.so.6(+0x36450) [0x2ba2dcf53450]
/lib64/libc.so.6(gsignal+0x37) [0x2ba2dcf533d7]
/lib64/libc.so.6(abort+0x148) [0x2ba2dcf54ac8]
/lib64/libc.so.6(+0x2f1a6) [0x2ba2dcf4c1a6]
/lib64/libc.so.6(+0x2f252) [0x2ba2dcf4c252]
/home/rhl/PFS/drp/stella/lib/libdrp_stella.so(pfs::drp::stella::ModelBasedDetectorMap::findFiberId(lsst::geom::Point&amp;lt;&lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt;, 2&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;) &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;+0x25f) [0x2ba33ba7bb0f]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="15475">PIPE2D-787</key>
            <summary>Invalid points can crash the DetectorMap code</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="price">price</assignee>
                                    <reporter username="rhl">rhl</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Mar 2021 15:37:44 +0000</created>
                <updated>Wed, 17 Mar 2021 19:40:49 +0000</updated>
                            <resolved>Wed, 17 Mar 2021 19:40:49 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="18886" author="price" created="Wed, 17 Mar 2021 15:47:37 +0000"  >&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
#0  0x00002aaaaaf213d7 in raise () from /lib64/libc.so.6
#1  0x00002aaaaaf22ac8 in abort () from /lib64/libc.so.6
#2  0x00002aaaaaf1a1a6 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00002aaaaaf1a252 in __assert_fail () from /lib64/libc.so.6
#4  0x00002aaafbe58807 in pfs::drp::stella::ModelBasedDetectorMap::findFiberId
    (point=..., &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;=0x555557c78a30) at include/pfs/drp/stella/DetectorMap.h:33
#5  pfs::drp::stella::ModelBasedDetectorMap::findFiberId (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;=0x555557c78a30, 
    point=...) at src/ModelBasedDetectorMap.cc:156
#6  0x00002aab0d559be3 in pybind11::cpp_function::cpp_function&amp;lt;&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;, pfs::drp::stella::DifferentialDetectorMap, lsst::geom::Point&amp;lt;&lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt;, 2&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::arg&amp;gt;(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; (pfs::drp::stella::DifferentialDetectorMap::*)(lsst::geom::Point&amp;lt;&lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt;, 2&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;) &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;, pybind11::name &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;, pybind11::is_method &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;, pybind11::sibling &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;, pybind11::arg &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;)::{lambda(pfs::drp::stella::DifferentialDetectorMap &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;*, lsst::geom::Point&amp;lt;&lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt;, 2&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;)#1}::&lt;span class=&quot;code-keyword&quot;&gt;operator&lt;/span&gt;()(pfs::drp::stella::DifferentialDetectorMap &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;*, lsst::geom::Point&amp;lt;&lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt;, 2&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&amp;amp;) &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; (
    &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;=&amp;lt;optimized out&amp;gt;, &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;=&amp;lt;optimized out&amp;gt;, args#0=..., c=&amp;lt;optimized out&amp;gt;)
    at /projects/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/pybind11/2.2.4.lsst1+2/include/pybind11/&lt;span class=&quot;code-keyword&quot;&gt;cast&lt;/span&gt;.h:491
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18887" author="price" created="Wed, 17 Mar 2021 16:15:59 +0000"  >&lt;p&gt;Fixed:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
(lsst-scipipe) pprice@tiger2-sumire:~ $ python -c &lt;span class=&quot;code-quote&quot;&gt;&apos;from pfs.drp.stella &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; DetectorMap; from lsst.geom &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Point2D; detMap = DetectorMap.readFits(&lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/Subaru/CALIB-SuNSS/DETECTORMAP/pfsDetectorMap-046270-b1.fits&quot;&lt;/span&gt;); detMap.findFiberId(Point2D(6000, -20000))&apos;&lt;/span&gt;
Traceback (most recent call last):
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;&amp;lt;string&amp;gt;&quot;&lt;/span&gt;, line 1, in &amp;lt;module&amp;gt;
lsst.pex.exceptions.wrappers.OutOfRangeError: 
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;src/ModelBasedDetectorMap.cc&quot;&lt;/span&gt;, line 159, in virtual &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; pfs::drp::stella::ModelBasedDetectorMap::findFiberId(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; PointD&amp;amp;) &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;
    Point is not on the image {0}
lsst::pex::exceptions::OutOfRangeError: &lt;span class=&quot;code-quote&quot;&gt;&apos;Point is not on the image&apos;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18906" author="hassan" created="Wed, 17 Mar 2021 18:48:40 +0000"  >&lt;p&gt;Review approved. Changes look fine.&lt;/p&gt;</comment>
                            <comment id="18909" author="price" created="Wed, 17 Mar 2021 19:40:49 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzs47y:zzzzzzzy</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>hassan</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="102">2DDRP-2021 A3</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>