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

Error on project close (Segfault in /usr/lib/nvidia-304/libnvidia-glcore.so.304.131) #3998

Closed
AlexHolly opened this issue Mar 9, 2016 · 15 comments

Comments

@AlexHolly
Copy link
Contributor

Operating system or device:
Ubuntu 14.04 Unity 64-bit

Issue description (what happened, and what was expected):

WARNING: cleanup: ObjectDB Instances still exist!
At: core/object.cpp:1904.
ERROR: clear: Resources Still in use at Exit!
At: core/resource.cpp:357.

Steps to reproduce:

  1. Open a Project.
  2. Scene -> quit to project list.
  3. Open a Project while in the background the previous project is still closing.

I also get this error on

  1. Open a Project.
  2. Scene -> Quit
@neikeq
Copy link
Contributor

neikeq commented Mar 9, 2016

Just to clarify, does the editor crash (like mentioned in the tittle), or does it only prints that error?

@AlexHolly
Copy link
Contributor Author

Sometimes it crashes, maybe it is again a unity issue.
I can't see that it crashes on quit because it's closing anyway.

I will make a quick test with XUbuntu

Update:
So I think it is again the unity bug that crashes godot but the error is always there even when it's not crashing.

Is there a way to see what makes godot crash?

@AlexHolly AlexHolly changed the title Crash on project switch Error on project close Mar 9, 2016
@bojidar-bg
Copy link
Contributor

@AlexHolly ~ Yes, it is called a "GDB backtrace". You might want to search a bit, it isn't too hard 😄 .

@AlexHolly
Copy link
Contributor Author

Yes, I already tried with "GDB backtrace" but I always get a No stack. result.

@neikeq
Copy link
Contributor

neikeq commented Mar 10, 2016

@AlexHolly Could it be that you are debugging the project manager and not the editor?

If that's the case, you can run the editor from gdb like this:

gdb --args path/to/godot -path /path/to/project/ -e

@AlexHolly
Copy link
Contributor Author

You are right now the No stack message is gone.

This is the output on resize the running game -> game crashes with unity, engine still running

[New Thread 0x7fffe998b700 (LWP 4946)]
[Thread 0x7fffe998b700 (LWP 4946) exited]
^C
Program received signal SIGINT, Interrupt.
0x00007ffff5851f3d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
81  ../sysdeps/unix/syscall-template.S: File or Directory not found.
(gdb) bt
#0  0x00007ffff5851f3d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff58834a4 in usleep (useconds=<optimized out>)
    at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x0000000000522ad5 in OS_Unix::delay_usec (this=0x7fffffffd9a0, 
    p_usec=25000) at drivers/unix/os_unix.cpp:304
#3  0x000000000042be1e in Main::iteration () at main/main.cpp:1616
#4  0x00000000004109a3 in OS_X11::run (this=0x7fffffffd9a0)
    at platform/x11/os_x11.cpp:1773
#5  0x000000000040a39d in main (argc=4, argv=0x7fffffffddd8)
    at platform/x11/godot_x11.cpp:41

Is this right? Does it show something that could help? Should I (re)open one of the unity issues?

@akien-mga
Copy link
Member

The output shows that you used ^C to interrupt the process, so it did not crash.

@AlexHolly
Copy link
Contributor Author

The game crashed and not the engine how can I show bt without using ctrl+c? Or is it only possible to show the engine errors?

Freeze on engine resize

Program received signal SIGSEGV, Segmentation fault.
0x0000000001b69f20 in ?? ()
(gdb) bt
#0  0x0000000001b69f20 in ?? ()
#1  0x00007ffff3b4c186 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#2  0x00007ffff3b4c5b8 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#3  0x00007ffff3b4ca87 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#4  0x00007ffff6aedf83 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#5  0x00007ffff6aeeb08 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#6  0x00007ffff3ad86a4 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#7  0x00007ffff3ad8a1b in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#8  0x00007ffff3b9069d in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#9  0x00007ffff3b95b2b in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#10 0x00007ffff3b6cacc in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#11 0x00007ffff3bc786d in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#12 0x00007ffff3ae575c in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#13 0x00007ffff361ca62 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#14 0x00007ffff3634465 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#15 0x00007ffff3635b55 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#16 0x00007ffff36bf29d in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#17 0x00007ffff36bfae9 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#18 0x00007ffff34a4fab in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#19 0x00007ffff34a74d9 in ?? ()
   from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#20 0x000000000053a7d4 in RasterizerGLES2::texture_allocate (this=0x23dc7f0, 
    p_texture=..., p_width=16, p_height=16, p_format=Image::FORMAT_RGBA, 
    p_flags=4) at drivers/gles2/rasterizer_gles2.cpp:936
#21 0x0000000001347a7a in VisualServerRaster::texture_allocate (
    this=0x241cb10, p_texture=..., p_width=16, p_height=16, 
    p_format=Image::FORMAT_RGBA, p_flags=4)
    at servers/visual/visual_server_raster.cpp:55
#22 0x000000000139564c in VisualServerWrapMT::texture_allocate (
    this=0x245e0c0, p1=..., p2=16, p3=16, p4=Image::FORMAT_RGBA, p5=4)
---Type <return> to continue, or q <return> to quit---
    at servers/visual/visual_server_wrap_mt.h:89
#23 0x00000000010ae0f5 in ImageTexture::create_from_image (this=0x3452d90, 
    p_image=..., p_flags=4) at scene/resources/texture.cpp:225
#24 0x0000000000936244 in make_icon (
    p_png=0x189cea0 <icon_groove_joint_2d_png> "\211PNG\r\n\032\n")
    at tools/editor/editor_icons.cpp:2697
#25 0x000000000093ebc2 in editor_register_icons (p_theme=...)
    at tools/editor/editor_icons.cpp:2937
#26 0x00000000007eea70 in EditorNode::EditorNode (this=0x2e18020)
    at tools/editor/editor_node.cpp:5031
#27 0x0000000000428712 in Main::start () at main/main.cpp:1207
#28 0x000000000040a38a in main (argc=4, argv=0x7fffffffddd8)
    at platform/x11/godot_x11.cpp:40

@AlexHolly
Copy link
Contributor Author

Sometimes it is also crashing on XUbuntu

#0 0x00007ffff3613bd9 in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#1 0x00007ffff3646d2d in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#2 0x00007ffff3412f95 in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#3 0x00007ffff347f0dd in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#4 0x00007ffff37c7086 in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#5 0x00007ffff340b032 in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#6 0x00007ffff340c9a3 in ?? ()
from /usr/lib/nvidia-304/libnvidia-glcore.so.304.131
#7 0x000000000056267a in RasterizerGLES2::_update_framebuffer (this=0x241da40)
at drivers/gles2/rasterizer_gles2.cpp:10469
#8 0x000000000054bfe1 in RasterizerGLES2::begin_frame (this=0x241da40)
at drivers/gles2/rasterizer_gles2.cpp:4188
#9 0x00000000013773a0 in VisualServerRaster::draw (this=0x245dd60)
at servers/visual/visual_server_raster.cpp:7555
#10 0x00000000013a29a4 in VisualServerWrapMT::draw (this=0x249f2d0)
at servers/visual/visual_server_wrap_mt.cpp:134
#11 0x000000000042bbfa in Main::iteration () at main/main.cpp:1573
---Type to continue, or q to quit---
#12 0x00000000004109ef in OS_X11::run (this=0x7fffffffd990)
at platform/x11/os_x11.cpp:1775
#13 0x000000000040a39d in main (argc=4, argv=0x7fffffffddc8)
at platform/x11/godot_x11.cpp:41

@akien-mga
Copy link
Member

It crashes in your driver, so I guess your GPU does not support OpenGL 2.1+. Can you run glxinfo | grep -i OpenGL?

@AlexHolly
Copy link
Contributor Author

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 9300M GS/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 304.131
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3.0 NVIDIA 304.131
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:

@AlexHolly
Copy link
Contributor Author

AlexHolly commented Apr 29, 2016

I don't know why but it looks like I had an old driver selected. I recently made an update and expected to have the most recent driver...

So the first quick check looked fine.

Is there a documentation on gles2 errors with old drivers?

@reduz
Copy link
Member

reduz commented Jun 26, 2016

In some old GPUs using nvidia driver (i had this happen on a 9400 gpu), I noticed Godot crashes when the window is resized (or game window is resized). I could not find anything related to Godot as it seems to be related to the video driver running out of memory or something like that. I will leave this open but don't get your hopes up on it getting fixed.

@akien-mga akien-mga changed the title Error on project close Error on project close (Segfault in /usr/lib/nvidia-304/libnvidia-glcore.so.304.131) Jun 26, 2016
@AlexHolly
Copy link
Contributor Author

It's running very stable right now with nvidia 340.96 driver. I had some legacy driver selected, I think it was <=304.131

On Ubuntu 14.04
How to switch driver: System Settings -> Software & Updates -> Additional Drivers

http://askubuntu.com/questions/451221/ubuntu-14-04-install-nvidia-driver


This issue got a bit messy the initial issue was about errors that are shown on closing the editor.
I just checked and I can see new errors.

ERROR: get: Condition ' !elem ' is true. returned: __null
   At: core/rid.h:146.
ERROR: texture_allocate: Condition ' !texture ' is true.
   At: drivers/gles2/rasterizer_gles2.cpp:902.
ERROR: get: Condition ' !elem ' is true. returned: __null
   At: core/rid.h:146.
ERROR: texture_set_data: Condition ' !texture ' is true.
   At: drivers/gles2/rasterizer_gles2.cpp:958.
ERROR: get: Condition ' !elem ' is true. returned: __null
   At: core/rid.h:146.
ERROR: texture_allocate: Condition ' !texture ' is true.
   At: drivers/gles2/rasterizer_gles2.cpp:902.
ERROR: get: Condition ' !elem ' is true. returned: __null
   At: core/rid.h:146.
ERROR: texture_set_data: Condition ' !texture ' is true.
   At: drivers/gles2/rasterizer_gles2.cpp:958.
WARNING: cleanup: ObjectDB Instances still exist!
   At: core/object.cpp:1944.

@akien-mga
Copy link
Member

It's better to use another issue for those as they are not related. Closing this one as the initial issue (segfault) was fixed.

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

5 participants