在ubuntu8.04下开发游戏遇到的问题

为当前最终发行版之前的所有版本提供支持
回复
peigen
帖子: 234
注册时间: 2006-10-12 21:31
送出感谢: 0
接收感谢: 0

在ubuntu8.04下开发游戏遇到的问题

#1

帖子 peigen » 2008-07-05 7:40

我是用java的JME开发游戏。做小例子的时候出现的错误,看着不像是java的报的错误,我估计可能是Opengl的问题。
怀疑是GTK的错误。把出错log打出来大家给看看

2008-7-5 7:22:36 com.jme.app.BaseGame start
信息: Application started.
2008-7-5 7:22:36 com.jme.system.PropertiesIO <init>
信息: PropertiesIO created
2008-7-5 7:22:36 com.jme.system.PropertiesIO load
信息: Read properties
Warning: Cannot convert string "-b&h-luxi sans-medium-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct

(<unknown>:23774): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)

(<unknown>:23774): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(<unknown>:23774): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

(<unknown>:23774): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

(<unknown>:23774): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

(<unknown>:23774): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
2008-7-5 7:22:40 com.jme.input.joystick.DummyJoystickInput <init>
信息: Joystick support is disabled
2008-7-5 7:22:40 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
信息: LWJGL Display System created.
2008-7-5 7:22:40 com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode
信息: Selected DisplayMode: 1280 x 800 x 24 @60Hz
2008-7-5 7:22:40 com.jme.system.PropertiesIO save
信息: Saved properties
2008-7-5 7:22:40 com.jme.app.BaseSimpleGame initSystem
信息: jME version 1.0
2008-7-5 7:22:40 com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode
信息: Selected DisplayMode: 1280 x 800 x 24 @60Hz
2008-7-5 7:22:40 com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay
严重: Cannot create window
2008-7-5 7:22:40 class com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay()
严重: Exception
org.lwjgl.LWJGLException: X Error - serial: 422, error_code: BadMatch (invalid parameter attributes), request_code: 42, minor_code: 0
at org.lwjgl.opengl.LinuxDisplay.nCreateWindow(Native Method)
at org.lwjgl.opengl.LinuxDisplay.createWindow(LinuxDisplay.java:368)
at org.lwjgl.opengl.Display.createWindow(Display.java:260)
at org.lwjgl.opengl.Display.create(Display.java:757)
at org.lwjgl.opengl.Display.create(Display.java:709)
at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(Unknown Source)
at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(Unknown Source)
at com.jme.app.BaseSimpleGame.initSystem(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at test.helloNode.main(helloNode.java:26)
2008-7-5 7:22:40 com.jme.app.BaseSimpleGame initSystem
严重: Could not create displaySystem
com.jme.system.JmeException: Cannot create window: X Error - serial: 422, error_code: BadMatch (invalid parameter attributes), request_code: 42, minor_code: 0
at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(Unknown Source)
at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(Unknown Source)
at com.jme.app.BaseSimpleGame.initSystem(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at test.helloNode.main(helloNode.java:26)
Peigen废话
http://peigen.info
回复

回到 “老旧版本支持”