#1495 closed defect (fixed)
Crash on Linux setting a sequence of rally points
Reported by: | vts | Owned by: | vts |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 11 |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description (last modified by )
halcyonXIII encountered a crash when setting a sequence of rally points for a structure, using svn rev. 11951.
Steps to reproduce:
- Select a building which can produce or garrison units.
- Hold down the Shift key, and set a chain of rally points anywhere.
- Usually on about the 5th rally point, 0AD crashes.
Occasionally, the crash produces this log:
Function call failed: return value was -120000 (Handle index completely out of bounds) Location: h_mgr.cpp:197 (h_data_from_idx) Call stack: (0x7f4caa) ./pyrogenesis() [0x7f4caa] (0x79fc11) ./pyrogenesis() [0x79fc11] (0x7a08ee) ./pyrogenesis() [0x7a08ee] (0x7a00e9) ./pyrogenesis() [0x7a00e9] (0x7c33f3) ./pyrogenesis() [0x7c33f3] (0x7cad95) ./pyrogenesis() [0x7cad95] (0x5e81e4) ./pyrogenesis() [0x5e81e4] (0x675537) ./pyrogenesis() [0x675537] (0x65aade) ./pyrogenesis() [0x65aade] (0x65ad39) ./pyrogenesis() [0x65ad39] (0x65b62c) ./pyrogenesis() [0x65b62c] (0x6510c4) ./pyrogenesis() [0x6510c4] (0x65191f) ./pyrogenesis() [0x65191f] (0x587fa1) ./pyrogenesis() [0x587fa1] (0x41d9b3) ./pyrogenesis() [0x41d9b3] (0x4135d7) ./pyrogenesis() [0x4135d7] errno = 0 (No error reported here) OS error = ?
The crash is confirmed to be reproducible on Linux (tested on flavors of Ubuntu), but not on Windows.
Change History (9)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
I can also reproduce this bug on Ubuntu 11.10 x86_64 when placing 5 rally point flags in sequence, with the following error message:
Program received signal SIGSEGV, Segmentation fault. 0x00000000009b750e in CTexture::TryLoad (this=0xfffaffffd22e1e20) at ../../../source/graphics/TextureManager.cpp:544 544 if (m_State == UNLOADED || m_State == PREFETCH_NEEDS_LOADING || m_State == PREFETCH_NEEDS_CONVERTING)
and this backtrace:
(gdb) bt #0 0x00000000009b750e in CTexture::TryLoad (this=0xfffaffffd22e1e20) at ../../../source/graphics/TextureManager.cpp:544 #1 0x00000000009b74cf in CTexture::GetHandle (this=0xfffaffffd22e1e20) at ../../../source/graphics/TextureManager.cpp:535 #2 0x0000000000aecfb4 in CTexturedLineRData::Render (this=0xf9d16f0, shader=...) at ../../../source/renderer/TexturedLineRData.cpp:44 #3 0x0000000000a7ed64 in OverlayRenderer::RenderTexturedOverlayLines (this=0x16130f0, shader=..., alwaysVisible=true) at ../../../source/renderer/OverlayRenderer.cpp:470 #4 0x0000000000a7eb97 in OverlayRenderer::RenderTexturedOverlayLines (this=0x16130f0) at ../../../source/renderer/OverlayRenderer.cpp:440 #5 0x0000000000a7e7e1 in OverlayRenderer::RenderOverlaysAfterWater (this=0x16130f0) at ../../../source/renderer/OverlayRenderer.cpp:385 #6 0x0000000000a4d741 in CRenderer::RenderSubmissions (this=0x1612230) at ../../../source/renderer/Renderer.cpp:1460 #7 0x0000000000a4e448 in CRenderer::RenderScene (this=0x1612230, scene=...) at ../../../source/renderer/Renderer.cpp:1664 #8 0x00000000009ac7d8 in CGameView::Render (this=0x3a1d160) at ../../../source/graphics/GameView.cpp:494 #9 0x000000000093eb79 in Render () at ../../../source/ps/GameSetup/GameSetup.cpp:228 #10 0x000000000070af72 in Frame () at ../../../source/main.cpp:413 #11 0x000000000070b6f6 in RunGameOrAtlas (argc=2, argv=0x7fffffffe1c8) at ../../../source/main.cpp:529 #12 0x000000000070b9dc in main (argc=2, argv=0x7fffffffe1c8) at ../../../source/main.cpp:572
comment:3 by , 12 years ago
Description: | modified (diff) |
---|
comment:6 by , 12 years ago
Similar error on OS X / llvm, when placing the second queued rally point.
comment:7 by , 12 years ago
Cc: | removed |
---|
comment:9 by , 12 years ago
Milestone: | Backlog → Alpha 11 |
---|
Note:
See TracTickets
for help on using tickets.
Historicbruno reports the following:
Sometimes I get a slightly different error, again while placing the 5th waypoint flag:
With this call stack (thread 1 is the relevant bit):