Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with the "View" menu in 3D mode #8489

Closed
jmf opened this issue Apr 22, 2017 · 6 comments
Closed

Issues with the "View" menu in 3D mode #8489

jmf opened this issue Apr 22, 2017 · 6 comments

Comments

@jmf
Copy link
Contributor

jmf commented Apr 22, 2017

Operating system or device - Godot version:
Linux 4.10.8, Godot b474646

Issue description:
The "View" menu in the bar over the viewport in 3D mode is partially not working:

  • Multiple viewports doesn't work at all
  • Display Normal/Wireframe/Overdraw/Shadeless don't have an effect
  • Clicking the option "Settings" causes a segfault (backtrace below)
Thread 1 "godot.x11.tools" received signal SIGSEGV, Segmentation fault.
0x0000000000f8d02f in RasterizerSceneGLES3::_post_process (this=0x31498e0, env=0x0, p_cam_projection=...) at drivers/gles3/rasterizer_scene_gles3.cpp:3204
3204            glBindFramebuffer(GL_DRAW_FRAMEBUFFER, storage->frame.current_rt->effects.mip_maps[0].sizes[0].fbo);
(gdb) bt
#0  0x0000000000f8d02f in RasterizerSceneGLES3::_post_process (this=0x31498e0, env=0x0, p_cam_projection=...) at drivers/gles3/rasterizer_scene_gles3.cpp:3204
#1  0x0000000000f907f7 in RasterizerSceneGLES3::render_scene (this=0x31498e0, p_cam_transform=..., p_cam_projection=..., p_cam_ortogonal=true, p_cull_result=0x7ffff0b1d088, p_cull_count=1, p_light_cull_result=0x7ffff0c25088, p_light_cull_count=1, p_reflection_probe_cull_result=0x7ffff0c2d090, 
    p_reflection_probe_cull_count=0, p_environment=..., p_shadow_atlas=..., p_reflection_atlas=..., p_reflection_probe=..., p_reflection_probe_pass=-1) at drivers/gles3/rasterizer_scene_gles3.cpp:3924
#2  0x0000000001cb9179 in VisualServerScene::_render_scene (this=0x7ffff0b1d020, p_cam_transform=..., p_cam_projection=..., p_cam_orthogonal=true, p_force_environment=..., p_visible_layers=1048575, p_scenario=..., p_shadow_atlas=..., p_reflection_probe=..., p_reflection_probe_pass=-1)
    at servers/visual/visual_server_scene.cpp:2149
#3  0x0000000001cb788f in VisualServerScene::render_camera (this=0x7ffff0b1d020, p_camera=..., p_scenario=..., p_viewport_size=..., p_shadow_atlas=...) at servers/visual/visual_server_scene.cpp:1663
#4  0x0000000001ca29d6 in VisualServerViewport::_draw_viewport (this=0x31359e0, p_viewport=0x63012c0) at servers/visual/visual_server_viewport.cpp:93
#5  0x0000000001ca36b0 in VisualServerViewport::draw_viewports (this=0x31359e0) at servers/visual/visual_server_viewport.cpp:275
#6  0x0000000001c80365 in VisualServerRaster::draw (this=0x3135740) at servers/visual/visual_server_raster.cpp:90
#7  0x0000000000bfb869 in Main::iteration () at main/main.cpp:1604
#8  0x0000000000bdb35b in OS_X11::run (this=0x7fffffffe6b0) at platform/x11/os_x11.cpp:1917
#9  0x0000000000bd39d0 in main (argc=2, argv=0x7fffffffeb68) at platform/x11/godot_x11.cpp:49
(gdb) 
@avril-gh
Copy link
Contributor

Can confirm for Windows 7 32bit

godot_view

  • changing Viewport - no effect,
  • changing Display Mode - no effect
  • settings option - crashes with errors below
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL Type: Error ID: 1282 Severity: High  Message: GL_INVALID_OPERATION error generated. The required buffer is missing. At: drivers/gles3/rasterizer_gles3.cpp:123
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL Type: Error ID: 1282 Severity: High  Message: GL_INVALID_OPERATION error generated. At: drivers/gles3/rasterizer_gles3.cpp:123
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL Type: Error ID: 1282 Severity: High  Message: GL_INVALID_OPERATION error generated. The requi red buffer is missing. At: drivers/gles3/rasterizer_gles3.cpp:123
ERROR: operator[]: Condition ' p_index < 0 || p_index >= size() ' is true. retur ned: aux At: core/vector.h:139

@novemberist
Copy link

novemberist commented Apr 24, 2017

btw, duplicate of #8195. this description is better and cleaner than mine though.

@Ahmed0425
Copy link

Ahmed0425 commented Apr 25, 2017

This bug happens on all PCs that encountered a black screen at startup before these commits 7ba71fb 1c48069
I can also guess that this is not a GPU problem ... perhaps the processor?
I've got a lenovo s510p laptop with 4th gen core i3 (Desktop has 2nd gen core i3 which godot doesn't work on)
I'll test it tomorrow then will comment again
as a super noob (godot is my first try in development and gamedev) and planning to learn godot after this bugfix, alpha release and docs reorganization ... I can't help with much info ... sorry :(

final note you forgot to mention is these errors at godot start up
these appears when the project manager open

EditorSettings::_get - Warning, not found: import/pvrtc_texture_tool
EditorSettings::_get - Warning, not found: import/pvrtc_texture_tool

when the project editor opens these errors appears
this error BEFORE activating opengl 3.3

ERROR: There are still MemoryPool allocs in use at exit!
At: core\dvector.cpp:69

only one of each error

ERROR: Invalid new child position: 2
At: scene\main\node.cpp:318
ERROR: ClassDB::get_parent_class: Condition ' !ti ' is true. returned: StringName()
At: core\class_db.cpp:274
ERROR: EditorData::get_edited_scene_root: Index current_edited_scene out of size (edited_scene.size()).
At: editor\editor_data.cpp:600
ERROR: ClassDB::get_parent_class: Condition ' !ti ' is true. returned: StringName()
At: core\class_db.cpp:274
ERROR: RasterizerSceneGLES3::environment_set_tonemap: Condition ' !env ' is true.
At: drivers\gles3\rasterizer_scene_gles3.cpp:923

spam of this error

ERROR: ClassDB::get_parent_class: Condition ' !ti ' is true. returned: StringName()
At: core\class_db.cpp:274

then again one of this error

ERROR: Invalid new child position: 2
At: scene\main\node.cpp:318

a spam of this note

save presets

a spam of this error (again and only 4)

ERROR: ClassDB::get_parent_class: Condition ' !ti ' is true. returned: StringName()
At: core\class_db.cpp:274

then (again and finally) this

EditorSettings::_get - Warning, not found: import/pvrtc_texture_tool
EditorSettings::_get - Warning, not found: import/pvrtc_texture_tool

@Ahmed0425
Copy link

Just tested with lenovo S510p (4th gen core i3 & intel vga hd 4400)
Same errors except for one thing
getting a huge spam of this error when I hover over any button or area

ERROR: _gl_debug_print: GL ERROR: Source: OpenGL Type: Error ID: 1282 Severity: High Message: Error has been generated. GL error GL_INVALID_OPERATION in DisableVertexAttribArray: (ID: 3860911800) Generic error
At: drivers\gles3\rasterizer_gles3.cpp:12

this is getting really annoying -_-

@Zylann
Copy link
Contributor

Zylann commented May 1, 2017

Got a crash too when clicking View -> Settings. Repro 100% so far.
Windows 10 64 bits, nVidia geForce 940M

ERROR: _gl_debug_print: GL ERROR: Source: OpenGL        Type: Error     ID: 1282        Severity: High  Message: GL_INVALID_OPERATION error generated. The required buffer is missing.
   At: drivers\gles3\rasterizer_gles3.cpp:123
mesege
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL        Type: Error     ID: 1282        Severity: High  Message: GL_INVALID_OPERATION error generated.
   At: drivers\gles3\rasterizer_gles3.cpp:123
mesege
ERROR: _gl_debug_print: GL ERROR: Source: OpenGL        Type: Error     ID: 1282        Severity: High  Message: GL_INVALID_OPERATION error generated. The required buffer is missing.
   At: drivers\gles3\rasterizer_gles3.cpp:123
ERROR: Vector<struct RasterizerStorageGLES3::RenderTarget::Effects::MipMaps::Size>::operator []: Condition ' p_index < 0 || p_index >= size() ' is true. returned: aux
   At: d:\projets\info\godot\engine\godot_fork\core\vector.h:139

image

@reduz
Copy link
Member

reduz commented Jun 12, 2017

This is now fixed.

@reduz reduz closed this as completed Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants