Author Topic: [non-issue] Development version r1804: Segfault when hitting E (for screenshot)  (Read 953 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
The following crash occurred when I was a client in a multi-player game and hit the E key to make a screen shot:

Code: [Select]
Core was generated by `./glest.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f3c2e30da98 in ?? () from /lib/libc.so.6
#0  0x00007f3c2e30da98 in ?? () from /lib/libc.so.6
#1  0x00007f3c2e310254 in calloc () from /lib/libc.so.6
#2  0x00007f3c26ce1ed8 in _mesa_PushAttrib (mask=<value optimised out>) at main/attrib.c:424
#3  0x000000000051cb1f in Glest::Game::Renderer::renderSurface (this=0xa30920, renderFps=<value optimised out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:1854
#4  0x00000000004cf400 in Glest::Game::Game::render3d (this=0x7f3c182a3360) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1597
#5  0x00000000004d9636 in Glest::Game::Game::renderWorker (this=0x7f3c182a3360) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:916
#6  0x00000000005446dd in Glest::Game::Program::loopWorker (this=0x2363640) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:260
#7  0x0000000000543b4f in Glest::Game::ExceptionHandler::handleRuntimeError(char const*) ()
#8  0x0000000000538242 in Glest::Game::handleSIGSEGV (sig=<value optimised out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:458
#9  <signal handler called>
#10 0x00007f3c26dd90d4 in fast_read_rgba_pixels (ctx=<value optimised out>, x=<value optimised out>, y=0, width=1366, height=<value optimised out>, format=<value optimised out>, type=5121, pixels=0x7f3bfbb32460, packing=0x7fffdf851a20, transferOps=0) at swrast/s_readpix.c:241
#11 0x00007f3c26dd9752 in read_rgba_pixels (ctx=0x2393630, x=0, y=0, width=1366, height=768, format=6407, type=5121, packing=0x23a3350, pixels=0x7f3bfbb32460) at swrast/s_readpix.c:321
#12 _swrast_ReadPixels (ctx=0x2393630, x=0, y=0, width=1366, height=768, format=6407, type=5121, packing=0x23a3350, pixels=0x7f3bfbb32460) at swrast/s_readpix.c:563
#13 0x00007f3c26c94b75 in intelReadPixels (ctx=0x2393630, x=<value optimised out>, y=<value optimised out>, width=1366, height=768, format=<value optimised out>, type=5121, pack=0x23a3350, pixels=0x7f3bfbb32460) at intel_pixel_read.c:203
#14 0x00007f3c26d44b38 in _mesa_ReadPixels (x=<value optimised out>, y=<value optimised out>, width=1366, height=768, format=6407, type=5121, pixels=0x7f3bfbb32460) at main/readpix.c:206
#15 0x000000000050c795 in Glest::Game::Renderer::saveScreen (this=0xa30920, path=<value optimised out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:3818
#16 0x000000000053a7ef in Glest::Game::MainWindow::eventKeyDown (this=<value optimised out>, key=<value optimised out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:703
#17 0x00000000007103a1 in Shared::Platform::Window::handleEvent () at /home/user1/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/window.cpp:188
#18 0x000000000054103a in Glest::Game::glestMain (argc=<value optimised out>, argv=<value optimised out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:1768
#19 0x0000000000541cc6 in glestMainWrapper (argc=1, argv=0x7fffdf852648) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:1822
#20 main (argc=1, argv=0x7fffdf852648) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:1834
« Last Edit: 7 March 2011, 00:33:11 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Tomreyn this is the same type of crash as they other you mention, did you recently update mesa drivers or something? It crashing on regular opengl API calls that have not changed for a long time.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Hmm, no, I have not recently updated libmesa or anything regarding X or the intel i915 drivers. There have been security updates (only) some time ago but those /should/ not cause this (though I admit this would be the only logical explanation right now, since I have been running the same versions for a while now). Summing up, I was running the original Ubuntu 10.10. packages (though with security patches) when it occurred.

I have now upgraded to the latest stable X and GPU drivers/packages. Namely, I have activated this Ubuntu repository: ppa:ubuntu-x-swat/x-updates. I also tried to use the ppa:xorg-edgers/drivers-only repository but it does not provide any packages for Ubuntu 10.10. Let's see if this helps getting more stability...

When upgrading, the following relevant packages were upgraded as a result of adding the new repository:
Quote
intel-gpu-tools:amd64 (1.0.2+git20100830+c935c60-0ubuntu0sarvatt~lucid, 1.0.2+git20100830+c935c60-0ubuntu0sarvatt)
xserver-xorg-video-intel:amd64 (2.12.0-1ubuntu5.2, 2.13.901-2ubuntu2~xup~maverick)
libdrm2:amd64 (2.4.21-1ubuntu2.1, 2.4.22-2ubuntu1)
libdrm-dev:amd64 (2.4.21-1ubuntu2.1, 2.4.22-2ubuntu1)
libdrm-intel1:amd64 (2.4.21-1ubuntu2.1, 2.4.22-2ubuntu1)
libkms1:amd64 (2.4.21-1ubuntu2.1, 2.4.22-2ubuntu1)
« Last Edit: 6 March 2011, 15:28:11 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Just an update: I can no longer reproduce this with my updated drivers. Sorry for the false alert.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·