最近、Python で使用するグラフィック ライブラリを探していました。panda3d と pyglet をテストしている間、サンプルを実行することさえできませんでした。これが同じ問題によるものかどうかは正確にはわかりませんが、共通の問題があるようです。残念ながら、私はこの問題を解決するのに十分な経験がないため、助けが必要です。
次のエラーが発生しました。
ピグレット:
Speicherzugriffsfehler (Speicherabzug geschrieben)
このコードの実行:
from pyglet import window
window = window.Window
パンダ3d:
Starting the game.
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:display:x11display(error): BadRequest (invalid request code or no such operation)
...
ca. 140 times
...
:display:x11display(error): BadRequest (invalid request code or no such operation)
:display:glxdisplay(error): Could not find a usable pixel format.
:display:glxdisplay(error): No GLX context: cannot open window.
:display:x11display(error): BadRequest (invalid request code or no such operation)
...
ca. 20 more times
...
:display:x11display(error): BadRequest (invalid request code or no such operation)
:ShowBase(warning): Unable to open 'onscreen' window.
Traceback (most recent call last):
File "Tut-Asteroids.py", line 13, in <module>
import direct.directbase.DirectStart
File "/usr/share/panda3d/direct/directbase/DirectStart.py", line 4, in <module>
base = ShowBase.ShowBase()
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 244, in __init__
self.openDefaultWindow(startDirect = False, props=props)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 880, in openDefaultWindow
self.openMainWindow(*args, **kw)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 916, in openMainWindow
self.openWindow(*args, **kw)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 671, in openWindow
raise StandardError, 'Could not open window.'
StandardError: Could not open window.
[xcb] Unknown sequence number while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python: ../../src/xcb_io.c:161: append_pending_request: Zusicherung »!xcb_xlib_unknown_seq_number« nicht erfüllt.
Abgebrochen (Speicherabzug geschrieben)
Asteroids の例を実行しています。
(Ubuntu 12.04 と python 2.7.3 を使用しています。)
情報: 「Speicherzugriffsfehler (Speicherabzug geschrieben)」は、おおよそ「メモリ アクセス エラー (コア ダンプ)」を意味します。
助けてくれてありがとう、マックス
PS: このトピックに関して私が見つけた他のすべての投稿は、主にポインタ/直接メモリ アクセスに問題がある C/C++ に関するものでした。私は基本的な例しか使用していないので、ライブラリに何か問題があるに違いありません-疑いがあります-または、どこかでパッケージ構成が間違っているか、ドライバーが壊れています。別のオプションは、ウィンドウの作成自体の問題であり、残念ながら私も十分に知りません。さらに情報を投稿する必要があるかどうか教えてください。