SAD部屋 - Ticket-2 Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

! Infinite loop by 'Buffer is damaged at unreadbuf'

:Priority:Normal
:Reporter:Akio Morita
:Status:New
:Assigned to:?
:Version:
:Milestone:?
:Created:2006-04-19

!! Description
KBFrame上の SADTerminal環境から、式の評価でエラーが出た後に、
SADTerminalからの入力に応答が無くなり、MenuButtonから Window->Promptを
選択し(内部的には TkReturn["ReturnToSAD"]が実行される)プロンプトに戻ると
コンソール上には
"" Buffer is damaged at unreadbuf.  1 11
が流れ続け入力を受け付けない状態になる

!!実例
*台本
**SADScriptプログラム({{attach_anchor('simFujiBT.sad')}})
**Lattice台本({{attach_anchor('FujiBT.sad')}})
*より簡単な例(commentより)
**SADScriptプログラム({{attach_anchor('test-Buffer.sad')}})
*''simFujiBT.sad''を '''/SAD/bin/gs'''に与えて、実行後''TkWait[]''で入力待ちになるのを待つ
.....
  ShowParam;
Beam Line Parameters...
Bend        Rotate     Angle     Edge1     Edge2
B150       -30.246    -9.099    -8.103    -8.103
B160_1      -0.315    -9.706    -8.103    -8.103
B160_2      -1.087    -9.706    -8.103    -8.103
B160_3      -1.847    -9.706    -8.103    -8.103
B160_4      -2.597    -9.706    -8.103    -8.103
B160_5      22.823    -9.706    -8.103    -8.103

Quad        Rotate  K1[m^-1]      L[m]   Bore[m]
Q1         -42.341     0.418     0.400     0.050
Q2          15.528    -0.423     0.400     0.050
Q3          14.831     0.423     0.400     0.050
Q4         -29.274     0.341     0.400     0.100
Q5          40.570     0.331     0.400     0.100
  
  TkWait[];
*MainFrameの MenuButtonから Window->SADTerminalを選んで SADTerminalを起動
*間違った入力式を与える(例えば''OpticsPlot[{ {"PBX", "PBY"} }]'')と、以降の入力に対する SADTerminalから応答が無くなる(例えば ''DISP'')
   In[1]:= OpticsPlot[{ {"PBX", "PBY"} }]
  ???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax[{ {"B","B","X","X","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""},{"B","B","Y","Y","","","","","","","","","","","","","","","","","","","","","", ...
???General::wrongtype:  Argument must be Real, Complex, or List of them in Max[Abs[min$3295],Abs[max$3295]]
???General::wrongtype:  Argument must be Real, Complex, or List of them in Max[Abs[min$3295],Abs[max$3295]]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","X","X","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","X","X","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","X","X","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","X","X","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","Y","Y","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","Y","Y","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","Y","Y","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Argument must be Real, Complex, or List of them in MinMax["B","B","Y","Y","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",
"","","","","","","","","","","","",""]
???General::wrongtype:  Further output of this message will be suppressed.
???General::abort:  Aborted:
OpticsPlot[{ {"PBX", "PBY"} }]
                             ^
   In[1]:= DISP
  
   In[1]:=
*MainFrameの MenuButtonから Window->Promptを選んでプロンプトに戻ると...
Out[2]:= "ReturnToSAD"
  Buffer is damaged at unreadbuf.  1 11
  Buffer is damaged at unreadbuf.  1 11
  Buffer is damaged at unreadbuf.  1 11
  Buffer is damaged at unreadbuf.  1 11
  ................
*'''WRITE'''文の埋め込みや、''gdb''を用いた調査では、''tfprint@tfprint.f''からの''unreadbuf''呼び出しでエラーメッセージが出力されている。その後呼び出される ''getwrd''ルーチン内では、''buffer(1:11)''は改行2個とそれに続く空白"'''?n?n         '''"が格納されている

!! Attachement files
{{attach_map('Ticket-2')}}
{{attach_form('','')}}

!! CommentsChangelog
*2006-04-19 (水) 14:53:17 Akio Morita : 無限ループの症状を緩和するパッチ({{attach_anchor('patch-hack:src:tfprint.f')}})
*2006-04-19 (水) 14:54:44 Akio Morita : 前記パッチを当てれば、プロンプトに戻って''TkWait[]''すると SADTerminalが応答するようになる
*2006-04-21 (金) 12:48:47 Akio Morita : このScript({{attach_anchor('test-Buffer.sad')}})でも発生した(1.0.8.22.5b@amsada)
*2006-04-21 (金) 12:51:00 Akio Morita : '''OpticsPlot[{ {"PBX"} }]'''でも発生する
{{comment}}
----
{{its_edit_ticket_form}}