<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:27:09 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>[INSTRM-643] ccd r1 fee crash</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-643</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;ccd r1 crashed during biases exposure&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;{{2019-04-04 10:40:19 ccd_r1 f text=&quot;command failed: KeyError(&apos;fee&apos;,) in fee() at python/ccdActor/main.py:47&quot; }}&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;then tried disconnect/connect&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2019-04-04 10:40:48 cmdIn=ccd_r1 connect controller=fee 2019-04-04 10:40:49 ccd_r1 w controllers=&quot;ccd&quot; 2019-04-04 10:40:49 ccd_r1 w text=&quot;failed to connect controller fee&quot; 2019-04-04 10:40:49 ccd_r1 f text=&quot;command failed: RuntimeError(&apos;failed to arm for readout)&apos;,) in pyFPGA.FPGA.setClockLevels() at fpga/pyFPGA.pyx:127&quot; &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;then tried power off/on and connect but:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2019-04-04 10:45:14 ccd_r1 w controllers=&quot;ccd&quot;
2019-04-04 10:45:14 ccd_r1 w text=&quot;failed to connect controller fee&quot;
2019-04-04 10:45:14 ccd_r1 f text=&quot;command failed: RuntimeError(&apos;failed to arm for readout)&apos;,) in pyFPGA.FPGA.setClockLevels() at fpga/pyFPGA.pyx:127&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="13511">INSTRM-643</key>
            <summary>ccd r1 fee crash</summary>
                <type id="1" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10503&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/major.svg">Major</priority>
                        <status id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="cloomis">cloomis</assignee>
                                    <reporter username="fmadec">fmadec</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2019 10:52:09 +0000</created>
                <updated>Wed, 23 Dec 2020 20:09:14 +0000</updated>
                                                                            <component>ics_ccdActor</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="15237" author="fmadec" created="Thu, 4 Apr 2019 10:55:46 +0000"  >&lt;p&gt;a restart of ccd actor solved the issue...&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="15238" author="cloomis" created="Thu, 4 Apr 2019 12:25:42 +0000"  >&lt;p&gt;Slightly confused by the output; will look more carefully at the logs.&lt;/p&gt;</comment>
                            <comment id="15251" author="cloomis" created="Thu, 4 Apr 2019 15:02:46 +0000"  >&lt;p&gt;This is an amusing cluster of problems....&lt;/p&gt;

&lt;p&gt;Problem 0: the exposure after 15317 &quot;hung&quot;. Specifically, the background thread started to run the integration and readout never started the readout (hence no &lt;tt&gt;exposureState=readout&lt;/tt&gt;). This command/code path (running exposures in a background thread) is not used in production (or will not be after &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-626&quot; title=&quot;give up using ccd expose bias|dark command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-626&quot;&gt;&lt;del&gt;INSTRM-626&lt;/del&gt;&lt;/a&gt;). But the thread holds a reference to an instance of the FEE object, which caused the later problems. No, I do nto know why readout did not start, but it feels thread-y. There is a small chance that &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-640&quot; title=&quot;values following nan are not reported in FITS header&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-640&quot;&gt;&lt;del&gt;INSTRM-640&lt;/del&gt;&lt;/a&gt; is implicated, but since the transition to integration requires that the &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-640&quot; title=&quot;values following nan are not reported in FITS header&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-640&quot;&gt;&lt;del&gt;INSTRM-640&lt;/del&gt;&lt;/a&gt; header be complete I don&apos;t see how right now.&lt;/p&gt;

&lt;p&gt;Problem 1: the exposure did not finish, so the exposure was cleared and the fee reconnected. But it couldn&apos;t be reconnected, because the exposure thread was not really dead (python cannot kill stuck threads) and still had a reference to an old fee object, which had the hardware connection open.&lt;/p&gt;

&lt;p&gt;The two problems explain why there are two &quot;concurrent&quot; and very very different complaints about the FEE.&lt;/p&gt;

&lt;p&gt;What to do? I&apos;m inclined to instrument a few things better and make fee disconnection more violent/effective, but that&apos;s it. At first these look like very serious problems, but it is only because of the background thread which is going away. So understanding exactly &lt;em&gt;why&lt;/em&gt; that thread hung up is not worth working on. If there is an underlying problem, it will be much easier to see and fix without the thread.&lt;/p&gt;</comment>
                            <comment id="16563" author="arnaud.lefur" created="Tue, 17 Dec 2019 07:25:29 +0000"  >&lt;p&gt;It happened today, but I had an issue with spsaitActor, it&apos;s probably my fault, I have to check the logs...&lt;/p&gt;</comment>
                            <comment id="18205" author="cloomis" created="Wed, 23 Dec 2020 20:09:14 +0000"  >&lt;p&gt;Bump, maybe. Tx, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=arnaud.lefur&quot; class=&quot;user-hover&quot; rel=&quot;arnaud.lefur&quot;&gt;arnaud.lefur&lt;/a&gt;. The 2020-12-17 problems might well have happened because the file writing took forever, so the per-exposure thread never closed out. &lt;/p&gt;

&lt;p&gt;At the very least, new exposures should be rejected if an old exposure thread exists. What to do to better kill a stuck thread is still not clear.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="13400">INSTRM-626</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|zx004o:</customfieldvalue>

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