godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.38k stars 21.26k forks source link

[Solved] Godot crash as soon as empty project is opened #38769

Closed emanuele-scarsella closed 4 years ago

emanuele-scarsella commented 4 years ago

Godot version: 3.2.1 OS/device including version: OS: Ubuntu 18.04 LTS CPU: Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz x86_64 GPU: Core Processor Integrated Graphics Controller (generation: Arrandale)

Issue description: as soon as Godot starts i get these errors but the launcher works fine. opening the editor (with an empty project set for using OpenGL ES 2.0) it seems to start properly but just after the editor is rendered it crushes.

here is the terminal logs (in verbose "-v" mode):

Godot Engine v3.2.1.stable.official - https://godotengine.org
XInput: Refreshing devices.
XInput: No touch devices found.
Detecting GPUs, set DRI_PRIME in the environment to override GPU detection logic.
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  28
  Current serial number in output stream:  25
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  28
  Current serial number in output stream:  25
Only one GPU found, using default.
ERROR: initialize: Condition "ctxErrorOccurred || !p->glx_context" is true. Returned: ERR_UNCONFIGURED
   At: platform/x11/context_gl_x11.cpp:190.
Failed loading custom cursor: size_bdiag
Failed loading custom cursor: size_fdiag
Using GLES2 video driver
OpenGL ES 2.0 Renderer: Mesa DRI Intel(R) HD Graphics (ILK)
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL    Type: Error ID: 7   Severity: High  Message: GL_INVALID_OPERATION in glTexImage2D(bad target for texture)
   At: drivers/gles2/rasterizer_gles2.cpp:133.
PulseAudio: detected 2 channels
PulseAudio: audio buffer frames: 512 calculated latency: 11ms

CORE API HASH: 10822102301860774635
EDITOR API HASH: 14982495073158502407
Loading resource: /home/emanuele/.config/godot/editor_settings-3.tres
EditorSettings: Load OK!
EditorSettings: Save OK!
Loaded builtin certs
Editing project: /home/emanuele/Documenti/Godot/Prova1 (::home::emanuele::Documenti::Godot::Prova1)
Godot Engine v3.2.1.stable.official - https://godotengine.org
EditorSettings: Save OK!
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  28
  Current serial number in output stream:  25
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  28
  Current serial number in output stream:  25
OpenGL ES 2.0 Renderer: Mesa DRI Intel(R) HD Graphics (ILK)

i965: Failed to submit batchbuffer: Input/output error

running it with multiple verbose mode "-vv" a popup appear saying:

Your video card driver does not support any of the supported OpenGL versions. Please update your drivers or if you have a very old or integrated GPU upgrade it.

but that's not true according with glxinfo that says:

...
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics (ILK)
OpenGL version string: 2.1 Mesa 20.2.0-devel (git-ea62c23 2020-05-15 bionic-oibaf-ppa)
OpenGL shading language version string: 1.20 
...
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.2.0-devel (git-ea62c23 2020-05-15 bionic-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
...

my hardware (and drivers) are on the edge or the requirements but these are still satisfied at least on paper so I'm not sure it is not due to same wrong configuration. in the next days I'm gonna try to install it on windows10 on this same machine to see if the mesa implementation of openGL is what causes the problem but I really would like to run it on linux, i will update about it.

Steps to reproduce: it's not step-related for sure but anyway...

Minimal reproduction project: empty project

akien-mga commented 4 years ago

Seems like your drivers are broken. Can you run any OpenGL application?

emanuele-scarsella commented 4 years ago

i have tried some openGL demo and application an indeed some of these worked fine and same not. then i have tried the same programs and Godot on windows to be sure that is not a problem with the gpu and everything worked fine so is clear that the problem is in my drivers installed on linux, I'll figure out how to reinstall and fix them. thank you for the support (-:

Calinou commented 4 years ago

GPU: Core Processor Integrated Graphics Controller (generation: Arrandale)

This is a very old graphics adapter. It probably only handles OpenGL 1.x applications well.

emanuele-scarsella commented 4 years ago

GPU: Core Processor Integrated Graphics Controller (generation: Arrandale)

This is a very old graphics adapter. It probably only handles OpenGL 1.x applications well.

for sure it will not work well with OpenGL 2.0 but i need to use it just for practicing with Godot (i was using Unity3D before but i want to switch). of course I will use my desktop computer for actually doing something more then this but at the moment i have no access to it. regarding the support of OpenGL 2.0 by this gpu I'm pretty confident it's supported because booting with windows (I have a doble-boot) it have the proper drivers and support for the 2.0 as also declared by Kronos themself but in fact I'll not be surprised if mesa don't have a driver for a 2011 intel gpu. anyway thank you for the good point but don't worry, I'm conscious of what a garbage my laptop hes become ;-)