お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2016-01-24 13:09:17

hiroppy
メンバ
From: 東京
登録日: 2009-03-09

GPS将棋で途中で消えてしまう。

こんにちは。

http://zusann123.blogspot.jp/2012/10/ubuntu1204.htmlを参考にLinuxにGPS将棋を導入しました。

端末上で下記の様になり、GPS将棋が閉じてしまいます。

パソコンはDellのInspiron-5459 64bit  corei5です。

コード:

hiroppy@hiroppy-Inspiron-5459 ~/Shogidokoro $ mono Shogidokoro.exe
libpng warning: tRNS chunk not allowed with alpha channel
libpng warning: tRNS chunk not allowed with alpha channel
libpng warning: tRNS chunk not allowed with alpha channel
libpng warning: tRNS chunk not allowed with alpha channel
libpng warning: tRNS chunk not allowed with alpha channel
libpng warning: tRNS chunk not allowed with alpha channel
libpng warning: tRNS chunk not allowed with alpha channel
new position 1 position startpos moves 7g7f
WeightTracer  Move: +7776FU Sun Jan 24 13:00:48 2016

book: 0->3
P1-KY-KE-GI-KI-OU-KI-GI-KE-KY
P2 * -HI *  *  *  *  * -KA * 
P3-FU-FU-FU-FU-FU-FU-FU-FU-FU
P4 *  *  *  *  *  *  *  *  * 
P5 *  *  *  *  *  *  *  *  * 
P6 *  * +FU *  *  *  *  *  * 
P7+FU+FU * +FU+FU+FU+FU+FU+FU
P8 * +KA *  *  *  *  * +HI * 
P9+KY+KE+GI+KI+OU+KI+GI+KE+KY
-

book 2 candidates

random number: 7126
book 40.7441% (c.f. 59.2559 -3334FU)
WeightTracer  Move: -8384FU Sun Jan 24 13:00:48 2016

book: 3->254
sent: bestmove 8c8d
new position 3 position startpos moves 7g7f 8c8d 6i7h
WeightTracer  Move: +6978KI Sun Jan 24 13:00:54 2016

book: 254->2495
P1-KY-KE-GI-KI-OU-KI-GI-KE-KY
P2 * -HI *  *  *  *  * -KA * 
P3-FU * -FU-FU-FU-FU-FU-FU-FU
P4 * -FU *  *  *  *  *  *  * 
P5 *  *  *  *  *  *  *  *  * 
P6 *  * +FU *  *  *  *  *  * 
P7+FU+FU * +FU+FU+FU+FU+FU+FU
P8 * +KA+KI *  *  *  * +HI * 
P9+KY+KE+GI * +OU+KI+GI+KE+KY
-

book 3 candidates

random number: 622
book 57.6058%
WeightTracer  Move: -4132KI Sun Jan 24 13:00:54 2016

book: 2495->2496
sent: bestmove 4a3b
*** Error in `mono': double free or corruption (out): 0x00007f4a08030ad0 ***
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Mono.Audio.AlsaDevice.snd_pcm_sw_params_free (intptr) <0xffffffff>
  at Mono.Audio.AlsaDevice.Dispose (bool) <0x00033>
  at Mono.Audio.AlsaDevice.Finalize () <0x0001d>
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono() [0x4b73d8]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f4a2ee1c340]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f4a2ea7dcc9]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f4a2ea810d8]
    /lib/x86_64-linux-gnu/libc.so.6(+0x73394) [0x7f4a2eaba394]
    /lib/x86_64-linux-gnu/libc.so.6(+0x7f66e) [0x7f4a2eac666e]
    [0x4074ca4b]

Debug info from gdb:

new position 5 position startpos moves 7g7f 8c8d 6i7h 4a3b 2g2f
WeightTracer  Move: +2726FU Sun Jan 24 13:00:59 2016

book: 2496->261
P1-KY-KE-GI-KI-OU * -GI-KE-KY
P2 * -HI *  *  *  * -KI-KA * 
P3-FU * -FU-FU-FU-FU-FU-FU-FU
P4 * -FU *  *  *  *  *  *  * 
P5 *  *  *  *  *  *  *  *  * 
P6 *  * +FU *  *  *  * +FU * 
P7+FU+FU * +FU+FU+FU+FU * +FU
P8 * +KA+KI *  *  *  * +HI * 
P9+KY+KE+GI * +OU+KI+GI+KE+KY
-

book 2 candidates

random number: 3942
book 56.7057%
WeightTracer  Move: -8485FU Sun Jan 24 13:00:59 2016

book: 261->262
sent: bestmove 8d8e
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: 許可されていない操作です.
No threads.

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

input stream closed
--- trying safe shutdown in 10s. ---
warning stop ignored (go 3 times, bestmove 3 times)
中止

どうしたら良いでしょう?

オフライン

 

#2 2016-01-24 16:15:44

hiroppy
メンバ
From: 東京
登録日: 2009-03-09

Re: GPS将棋で途中で消えてしまう。

こんにちは。

管理者権限で

コード:

#mono Shogidokoro.exe

としたら動く様になりました。

オフライン

 

Board footer

Powered by FluxBB