Godot engine very slow, crashes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Godot engine very slow, crashes

agis
Greetings,

I'm running OpenBSD 6.4 on a Thinkpad X230 and I want to use Godot.

My problem is that it runs very slowly (2+ secs to respond to mouse
clicks) and then crashes when I load a sample project.

The X server is hw-accelerated. I see the following in my logs:
> (II) glamor: OpenGL accelerated X.org driver based.
> (II) glamor: EGL version 1.4 (DRI2):
> (II) modeset(0): glamor initialized

Other X apps (e.g. Inkscape) run smooth and fast.

Is anybody else experiencing the same?
Any workarounds?

Reply | Threaded
Open this post in threaded view
|

Re: Godot engine very slow, crashes

agis
> This may be hardware-related or not.

dmesg output for my graphics card:

inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09

> - OpenBSD 6.4 as in -release/-stable, or a snapshot?

I'm on the 6.4 release, running the GENERIC.MP kernel.

> how much ram?

real mem = 8382627840 (7994MB)
avail mem = 8119304192 (7743MB)

> does it swap?

I have the default layout's swap partition:

b: 7883.0M 71507968 swap # none

> - Is the slowness there from the start, or only after a while?

From the very moment I hit Enter after typing "godot" in the shell.

> In 2D or only in 3D mode?

I didn't get to run a game. I opened the editor and tried to load the 2D
Kinematic Collision demo.

Observing the shell, I see the following when I start the editor:

libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
OpenGL ES 3.0 Renderer: Gallium 0.4 on softpipe
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.


And the following after I load the project:


OPENING: /home/agis/xyz (::home::agis::xyz)
Failed to attach audio driver. Falling back to dummy driver.
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
OpenGL ES 3.0 Renderer: Gallium 0.4 on softpipe
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
tankard$ err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
err status: 8cdd
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6282.
ERROR: operator[]: FATAL: Index p_index=0 out of size (size()=0)
   At: core/vector.h:138.
handle_crash: Program crashed with signal 4
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] 0xd005cf15005 (??:0)
[2] Physics2DServerSW::_shape_col_cbk(Vector2 const&, Vector2 const&, void*) (??:0)
[3] Physics2DServerSW::_shape_col_cbk(Vector2 const&, Vector2 const&, void*) (??:0)
[4] Physics2DServerSW::_shape_col_cbk(Vector2 const&, Vector2 const&, void*) (??:0)
[5] Physics2DServerSW::_shape_col_cbk(Vector2 const&, Vector2 const&, void*) (??:0)
[6] Physics2DServerSW::_shape_col_cbk(Vector2 const&, Vector2 const&, void*) (??:0)
[7] 0xcfe54036104 <__register_frame_info+211924> at /usr/local/bin/godot (??:0)
[8] b2d_decompose(Vector<Vector2> const&) (??:0)
[9] b2d_decompose(Vector<Vector2> const&) (??:0)
[10] b2d_decompose(Vector<Vector2> const&) (??:0)
[11] b2d_decompose(Vector<Vector2> const&) (??:0)
[12] b2d_decompose(Vector<Vector2> const&) (??:0)
[13] BroadPhase2DHashGrid::_create() (??:0)
[14] Node::_notification(int) (??:0)
[15] Node::_notification(int) (??:0)
[16] 0xcfe5403607b <__register_frame_info+211787> at /usr/local/bin/godot (??:0)
[17] 0xcfe5400d777 <__register_frame_info+45639> at /usr/local/bin/godot (??:0)
[18] 0xcfe5400275a <__register_frame_info+554> at /usr/local/bin/godot (??:0)
[19] 0xcfe54002526 <+86> at /usr/local/bin/godot (??:0)
-- END OF BACKTRACE --

Reply | Threaded
Open this post in threaded view
|

Re: Godot engine very slow, crashes

agis
In reply to this post by agis
> > In 2D or only in 3D mode?
>
> I didn't get to run a game. I opened the editor and tried to load the 2D
> Kinematic Collision demo.
>
> Observing the shell, I see the following when I start the editor:
>
> libGL error: MESA-LOADER: failed to retrieve device information
> libGL error: Version 4 or later of flush extension not found
> libGL error: failed to load driver: i915
> libGL error: failed to open drm device: Permission denied
> libGL error: failed to load driver: i965

Turns out, the problem is wholly unrelated to Godot:
I wasn't starting X from ttyC0 like my /etc/fbtab expects me to.

Thomas, sorry to waste your time and thanks for setting me on the right
track to figure it out.