Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#490 Crash on starting new game

Latest Subversion
closed-out-of-date
nobody
Interface (116)
5
2011-07-22
2010-12-25
Anonymous
No

Game crashes on starting new game. After recompiling in debug mode crash disappeared (maybe something was not initialized correctly = garbage in release).
backtrace:
#0 0x08a85790 in ogdf::HierarchyLayoutModule::addBends(ogdf::GraphCopyAttributes&, ogdf::Hierarchy&) ()
#1 0x08a79fcb in ogdf::HierarchyLayoutModule::call(ogdf::Hierarchy&, ogdf::GraphAttributes&) ()
#2 0x08a77109 in ogdf::SugiyamaLayout::doCall(ogdf::GraphAttributes&, bool, ogdf::NodeArray<int>&) ()
#3 0x08a77918 in ogdf::SugiyamaLayout::call(ogdf::GraphAttributes&) ()
#4 0x089d65e1 in TechTreeWnd::LayoutPanel::Layout(bool, double) ()
#5 0x089d93c9 in TechTreeWnd::Update(Tech const*) ()
#6 0x0897dc57 in ResearchWnd::Refresh() ()

Ubuntu 10.10 32bit

Discussion

  • Geoff Topping
    Geoff Topping
    2010-12-26

    Please clarify what version of FreeOrion you're testing. Did you compile it yourself in release mode and get this crash, or are you comparing the latest SVN compiled by you to an older precompiled linux version?

    Could you also elaborate on "game crashes" ? Crashes how? Any error messages on the console?

     
  • Ivan Savenko
    Ivan Savenko
    2010-12-29

    At first I've compiled FreeOrion (SVN rev 3914) without any additional options to cmake:
    cmake; make; ./freeorion
    Got crash. Console log:
    FreeOrion server waiting for network events
    *** glibc detected *** freeorion: corrupted double-linked list: 0xb0584780 ***

    After this I decided to add debug info to find out exact location of crash:
    cmake -DBUILD_DEBUG=1; make; ./freorion
    No crash now.

     
  • Geoff Topping
    Geoff Topping
    2010-12-29

    That looks quite similar to this forum post: http://www.freeorion.org/forum/viewtopic.php?p=44845#p44845

    There's no much help on the thread, though.

    It's quite possible I've done something wrong in setting up the OGDF code that's causing that problem.

    I'm wondering if there is a freeorion.log and freeoriond.log in ~/.freeorion you could attach? I'm thinking that maybe there is a problem with reading the game techs.txt file that's leading to this problem? Something about that might be in the logs.

    Or, there could be an issue with the OGDF code, perhaps with your particular compiler version? I haven't found any references to OGDF and corrupted double-linkied lists with google, though...

     
  • Ivan Savenko
    Ivan Savenko
    2010-12-29

    Just checked last revision: crash still here
    Both log files present but I don't see any warnings\errors near Tech Tree messages.
    freeorion.log: http://pastebin.com/LQijjUFe
    freeoriond.log http://pastebin.com/s6tfqcuY
    Checked examples from OGDF mentioned in that thread: no crash, output files looks to be fine. May indeed be something compiler-specific (I have gcc 4.4.5)

     
  • Geoff Topping
    Geoff Topping
    2011-07-22

    • status: open --> closed-out-of-date