[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:003282] Re: gfdnavi で描画領域が黒くなる



納多さま

報告ありがとうございます。

おそらく、
Xming
の問題ではないかと想像されます。

リモートで Xvfb を立ち上げ、それで描画させるとどうなりますでしょうか。
キャッシュをクリアする必要があるので、
rake clean
とした後で試してみてください。

= 参考
* Xvfb の立ち上げ方
Xvfb :99 -screen 0 640x480x8 -nolisten tcp >/dev/null 2>&1 &
* gfdnavi の設定
 config/gfdnavi.yml 中の DISPLAY のコメントアウトをとる
env:
  DISPLAY: ":99.0"


よろしくお願いいたします。

西澤誠也


2011/3/8 Satoshi Noda <055s457s@xxxxxxxxxxxxxxxx>:
> 納多です.
>
> Gfdnavi 2.1 で描画領域が真っ黒になる
> 不具合を見つけたので報告致します.
> 環境は以下のとおりです.
>
> * サーバ
>  * OS: Debian 6.0
>  * Web サーバ: Mongrel
>  * ブラウザ: Iceweasel 3.5.16
> * 手元
>  * OS: WinXP
>  * アプリケーション: Tera Term + Xming
>
> 再現方法は以下の通りです.
>
> * リモートで private server を立てたうえで
>  X で手元にブラウザの画面を飛ばす
> * Gfdnavi の Finder で /samples/reanalysis/ncep/T.jan.nc を参照
> * Anal/Viz を選択
> * T にチェックを入れる
> * draw! ボタンを選択
> * 描画領域が表示されるが真っ黒
>
> ちなみに, 範囲を変えて (lon を全領域 -> 10..350)
> 再描画すると期待通りの絵が出ます.
> その後念のため, 黒い絵が出た場合を再度描画してみましたが黒くなります.
>
> 少し長いですが,
> 黒い画面のときと期待通りのときのサーバのログを添付します.
>
> == 黒い画面のとき
>
> Processing AnalysisController#execute (for 127.0.0.1 at 2011-03-08 00:55:24) [GET]
>  Parameters: {"variables"=>{"/samples/reanalysis/ncep/T.jan.nc/T"=>"1"},
> "action"=>"execute", "analysis"=>{"line_line"=>"1", "tone_contour_log"=>"0",
> "tone_contour_max"=>"", "draw_map_radius"=>"", "draw_map_axis"=>"0,0,0",
> "line_lineindex"=>"1", "line_markerindex"=>"1", "draw_keep"=>"0",
> "tone_contour_interval"=>"", "tone_contour_levels"=>"", "tone_contour_nlev"=>"",
> "draw_viewport"=>"0.2, 0.8, 0.2, 0.8", "draw_anim"=>"0", "tone_contour_min"=>"",
> "line_linetype"=>"1", "line_max"=>"", "draw_z_axis"=>"level", "line_mark"=>"1",
> "histogram1D_max"=>"", "tone_contour_tone"=>"1", "draw_y_axis"=>"lat",
> "draw_share"=>"1", "line_exchange"=>"0", "tone_contour_color_bar"=>"1",
> "draw_map_window"=>"-180, 180, -75, 75", "draw_x_axis"=>"lon",
> "tone_contour_coloring"=>"0", "tone_contour_contour"=>"1",
> "draw_projection"=>"1", "line_markertype"=>"1", "line_min"=>"",
> "histogram1D_nbins"=>"", "draw_colormap"=>"1", "axes"=>{"lon"=>{"max"=>"350",
> "min"=>"0"}, "level"=>{"min"=>"1000"}, "lat"=>{"max"=>"-90", "min"=>"90"}},
> "line_markersize"=>"0.01", "histogram1D_min"=>"", "draw_size"=>"550,550",
> "draw_map_fit"=>"1", "draw_pileup"=>"0", "draw_method"=>"tone_contour"},
> "action_type"=>"draw", "controller"=>"analysis"}
> Completed in 227ms (View: 8, DB: 10) | 200 OK
> [http://0.0.0.0/analysis/execute?variables%5B%2Fsamples%2Freanalysis%2Fncep%2FT.jan.nc%2FT%5D=1&analysis%5Baxes%5D%5Blon%5D%5Bmin%5D=0&analysis%5Baxes%5D%5Blon%5D%5Bmax%5D=350&analysis%5Baxes%5D%5Blat%5D%5Bmin%5D=90&analysis%5Baxes%5D%5Blat%5D%5Bmax%5D=-90&analysis%5Baxes%5D%5Blevel%5D%5Bmin%5D=1000&analysis%5Bdraw_share%5D=0&analysis%5Bdraw_share%5D=1&analysis%5Bdraw_method%5D=tone_contour&analysis%5Bdraw_x_axis%5D=lon&analysis%5Bdraw_y_axis%5D=lat&analysis%5Bdraw_z_axis%5D=level&analysis%5Bdraw_anim%5D=0&analysis%5Bdraw_pileup%5D=0&analysis%5Bdraw_keep%5D=0&analysis%5Bdraw_projection%5D=1&analysis%5Bdraw_map_fit%5D=0&analysis%5Bdraw_map_fit%5D=1&analysis%5Bdraw_map_axis%5D=0%2C0%2C0&analysis%5Bdraw_map_radius%5D=&analysis%5Bdraw_map_window%5D=-180%2C%20180%2C%20-75%2C%2075&analysis%5Bdraw_size%5D=550%2C550&analysis%5Bdraw_viewport%5D=0.2%2C%200.8%2C%200.2%2C%200.8&analysis%5Bdraw_colormap%5D=1&analysis%5Btone_contour_tone%5D=0&analysis%5Btone_contour_tone%5D=1&analysis%5!
 Bt
> one_contour_contour%5D=0&analysis%5Btone_contour_contour%5D=1&analysis%5Btone_contour_min%5D=&analysis%5Btone_contour_max%5D=&analysis%5Btone_contour_nlev%5D=&analysis%5Btone_contour_log%5D=0&analysis%5Btone_contour_levels%5D=&analysis%5Btone_contour_interval%5D=&analysis%5Btone_contour_coloring%5D=0&analysis%5Btone_contour_color_bar%5D=0&analysis%5Btone_contour_color_bar%5D=1&analysis%5Bhistogram1D_nbins%5D=&analysis%5Bhistogram1D_min%5D=&analysis%5Bhistogram1D_max%5D=&analysis%5Bline_line%5D=0&analysis%5Bline_line%5D=1&analysis%5Bline_mark%5D=0&analysis%5Bline_mark%5D=1&analysis%5Bline_min%5D=&analysis%5Bline_max%5D=&analysis%5Bline_exchange%5D=0&analysis%5Bline_lineindex%5D=1&analysis%5Bline_linetype%5D=1&analysis%5Bline_markerindex%5D=1&analysis%5Bline_markertype%5D=1&analysis%5Bline_markersize%5D=0.01&action_type=draw]
>
> == 期待通りのとき
>
> Processing AnalysisController#execute (for 127.0.0.1 at 2011-03-08 00:56:13) [GET]
>  Parameters: {"variables"=>{"/samples/reanalysis/ncep/T.jan.nc/T"=>"1"},
> "action"=>"execute", "analysis"=>{"line_line"=>"1", "tone_contour_log"=>"0",
> "tone_contour_max"=>"", "draw_map_radius"=>"", "draw_map_axis"=>"0,0,0",
> "line_lineindex"=>"1", "line_markerindex"=>"1", "draw_keep"=>"0",
> "tone_contour_interval"=>"", "tone_contour_levels"=>"", "tone_contour_nlev"=>"",
> "draw_viewport"=>"0.2, 0.8, 0.2, 0.8", "draw_anim"=>"0", "tone_contour_min"=>"",
> "line_linetype"=>"1", "line_max"=>"", "draw_z_axis"=>"level", "line_mark"=>"1",
> "histogram1D_max"=>"", "tone_contour_tone"=>"1", "draw_y_axis"=>"lat",
> "draw_share"=>"1", "line_exchange"=>"0", "tone_contour_color_bar"=>"1",
> "draw_map_window"=>"-180, 180, -75, 75", "draw_x_axis"=>"lon",
> "tone_contour_coloring"=>"0", "tone_contour_contour"=>"1",
> "draw_projection"=>"1", "line_markertype"=>"1", "line_min"=>"",
> "histogram1D_nbins"=>"", "draw_colormap"=>"1", "axes"=>{"lon"=>{"max"=>"350",
> "min"=>"10"}, "level"=>{"min"=>"1000"}, "lat"=>{"max"=>"-90", "min"=>"90"}},
> "line_markersize"=>"0.01", "histogram1D_min"=>"", "draw_size"=>"550,550",
> "draw_map_fit"=>"1", "draw_pileup"=>"0", "draw_method"=>"tone_contour"},
> "action_type"=>"draw", "controller"=>"analysis"}
> Completed in 235ms (View: 8, DB: 5) | 200 OK
> [http://0.0.0.0/analysis/execute?variables%5B%2Fsamples%2Freanalysis%2Fncep%2FT.jan.nc%2FT%5D=1&analysis%5Baxes%5D%5Blon%5D%5Bmin%5D=10&analysis%5Baxes%5D%5Blon%5D%5Bmax%5D=350&analysis%5Baxes%5D%5Blat%5D%5Bmin%5D=90&analysis%5Baxes%5D%5Blat%5D%5Bmax%5D=-90&analysis%5Baxes%5D%5Blevel%5D%5Bmin%5D=1000&analysis%5Bdraw_share%5D=0&analysis%5Bdraw_share%5D=1&analysis%5Bdraw_method%5D=tone_contour&analysis%5Bdraw_x_axis%5D=lon&analysis%5Bdraw_y_axis%5D=lat&analysis%5Bdraw_z_axis%5D=level&analysis%5Bdraw_anim%5D=0&analysis%5Bdraw_pileup%5D=0&analysis%5Bdraw_keep%5D=0&analysis%5Bdraw_projection%5D=1&analysis%5Bdraw_map_fit%5D=0&analysis%5Bdraw_map_fit%5D=1&analysis%5Bdraw_map_axis%5D=0%2C0%2C0&analysis%5Bdraw_map_radius%5D=&analysis%5Bdraw_map_window%5D=-180%2C%20180%2C%20-75%2C%2075&analysis%5Bdraw_size%5D=550%2C550&analysis%5Bdraw_viewport%5D=0.2%2C%200.8%2C%200.2%2C%200.8&analysis%5Bdraw_colormap%5D=1&analysis%5Btone_contour_tone%5D=0&analysis%5Btone_contour_tone%5D=1&analysis%!
 5B
> tone_contour_contour%5D=0&analysis%5Btone_contour_contour%5D=1&analysis%5Btone_contour_min%5D=&analysis%5Btone_contour_max%5D=&analysis%5Btone_contour_nlev%5D=&analysis%5Btone_contour_log%5D=0&analysis%5Btone_contour_levels%5D=&analysis%5Btone_contour_interval%5D=&analysis%5Btone_contour_coloring%5D=0&analysis%5Btone_contour_color_bar%5D=0&analysis%5Btone_contour_color_bar%5D=1&analysis%5Bhistogram1D_nbins%5D=&analysis%5Bhistogram1D_min%5D=&analysis%5Bhistogram1D_max%5D=&analysis%5Bline_line%5D=0&analysis%5Bline_line%5D=1&analysis%5Bline_mark%5D=0&analysis%5Bline_mark%5D=1&analysis%5Bline_min%5D=&analysis%5Bline_max%5D=&analysis%5Bline_exchange%5D=0&analysis%5Bline_lineindex%5D=1&analysis%5Bline_linetype%5D=1&analysis%5Bline_markerindex%5D=1&analysis%5Bline_markertype%5D=1&analysis%5Bline_markersize%5D=0.01&action_type=draw]
>
>
> --
> 納多 哲史 (Satoshi Noda)
> 神戸大学 大学院理学研究科 地球惑星科学専攻 D4
> E-mail: noda@xxxxxxxxxxxxxx
>
>



-- 
Seiya Nishizawa
Center for Planetary Science, Kobe University
TEL : 078-803-6472
FAX : 078-803-5731