IPB Style© Fisana

Jump to content


0AD crashes when setting a sequence of rally points for a structure.


  • Please log in to reply
8 replies to this topic

#1 halcyonXIII

halcyonXIII

  • Community Members
    Pip

  • Discens
    (27 posts)

Posted 08 June 2012 - 11:27 PM

I encountered a crash when setting a sequence of rally points for a structure, using svn rev. 11951.

Steps to reproduce:
1) Select a building which can produce or garrison units.
2) Hold down the Shift key, and set a chain of rally points anywhere.
3) 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 = ?


#2 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,930 posts)

Posted 09 June 2012 - 03:46 AM

Hmm, I just placed about 50 of them on a civ centre with no errors... which OS are you using? Is there a chance you can run the game in a debuger (e.g. gdb) and get the real call stack as described here?
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#3 halcyonXIII

halcyonXIII

  • Community Members
    Pip

  • Discens
    (27 posts)

Posted 09 June 2012 - 07:37 AM

I knew I forgot something.. I'm using Kubuntu 12.04 (Linux 3.2.0-24-generic). I've attatched the call stack.

Attached Files



#4 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,930 posts)

Posted 09 June 2012 - 11:08 PM

OK I just reproduced this crash on Ubuntu, looking into it. For some reason it doesn't occur in Windows, perhaps a GCC/Linux only bug?
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#5 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,930 posts)

Posted 09 June 2012 - 11:38 PM

Sometimes I get a slightly different error, again while placing the 5th waypoint flag:
Function call failed: return value was -120003 (Handle tag mismatch (stale reference?))
Location: h_mgr.cpp:245 (h_data_tag)

With this call stack (thread 1 is the relevant bit):
Spoiler

Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#6 vts

vts

  • WFG Programming Team

  • Sesquiplicarius
    (110 posts)

Posted 11 June 2012 - 06:21 PM

(Now tracking this bug at http://trac.wildfire...com/ticket/1495)
Jeroen DR [ aka vts ]
Wildfire Games Programmer
Contact me: jeroen@wildfiregames.com


‹Mythos_Ruler› Give that batch some uniforms. Batches love uniforms.

#7 vts

vts

  • WFG Programming Team

  • Sesquiplicarius
    (110 posts)

Posted 17 June 2012 - 03:50 AM

Should be fixed as of r11979. HalcyonXIII, can you confirm the fix?
Jeroen DR [ aka vts ]
Wildfire Games Programmer
Contact me: jeroen@wildfiregames.com


‹Mythos_Ruler› Give that batch some uniforms. Batches love uniforms.

#8 halcyonXIII

halcyonXIII

  • Community Members
    Pip

  • Discens
    (27 posts)

Posted 18 June 2012 - 10:16 PM

Hi vts.

I've just updated to revision 11983 and was able to set a chain of ~100 rally points with no problems, so I can confirm that your fix has worked. Thanks!

#9 vts

vts

  • WFG Programming Team

  • Sesquiplicarius
    (110 posts)

Posted 19 June 2012 - 06:59 PM

Cool, thanks for reporting :)
Jeroen DR [ aka vts ]
Wildfire Games Programmer
Contact me: jeroen@wildfiregames.com


‹Mythos_Ruler› Give that batch some uniforms. Batches love uniforms.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users