UFO: Alien Invasion Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
OPEN  Bug report #2829  -  radiant SIGSEGV after failing to load ufoai.game
Posted Mar 17, 2011 - updated Jan 28, 2013
mattn (tlh2000) has been working on this issue since January 28, 2013 (20:47)
Issue details
  • Type of issue
    Bug report
  • Status
     
    Open
  • Assigned to
     mattn
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     kavol
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Map Editor (UFORadiant)
  • Resolution
    Not determined
  • Priority
    3. Normal
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
Issue description
Item 2829 imported from sourceforge.net tracker on 2013-01-28 19:50:51

1) ufoai-2.3.1-source.tar.bz2

2) Fedora 14, integrated Intel Core i7 M620 graphics (if that matters ...)

3) just run uforadiant compiled from source -

the subject says it all ... after failing to load ufoai.game, the game segfaults on trying to display the error dialog - the line 186 says:

gtkutil::errorDialog(GlobalRadiant().getMainWindow(), _("XML parser failed ufoai.game"));

(gdb) run Starting program: /usr/bin/uforadiant debugging using libthread_db enabled I/O warning : failed to load external entity "/home/kvolny/Projects/RPM_Fusion/nonfree/ufoai/F-14/ufoai-2_3_1-2_fc14/games/ufoai.game"

Program received signal SIGSEGV, Segmentation fault. 0x000000000052e6d6 in CGameDialog::Init (this=<value optimized out>) at src/tools/radiant/radiant/settings/preferences.cpp:186 186 gtkutil::errorDialog(GlobalRadiant().getMainWindow(), _("XML parser failed ufoai.game")); (gdb) bt full
  1. 0 0x000000000052e6d6 in CGameDialog::Init (this=<value optimized out>) at src/tools/radiant/radiant/settings/preferences.cpp:186
        strGameFilename = "/home/kvolny/Projects/RPM_Fusion/nonfree/ufoai/F-14/ufoai-2_3_1-2_fc14/games/ufoai.game"
        pDoc = 0x0
  1. 1 0x00000000005095a4 in main (argc=1, argv=0x7fffffffdf48) at src/tools/radiant/radiant/main.cpp:482
No locals.

and in addition, I do not see any check for success of Init neither for value of g_pGameDescription so it may be used unitialised when pDoc is null (but I haven&#039;t studied the sources in depth, I&#039;m not a C++ programmer ...)
Comments Ported from Sourceforge  ⇑ top
kavol (2011-03-17 10:23:53)  ⇑ top
"the game segfaults" - I mean uforadiant segfaults of course
Steps to reproduce this issue
Nothing entered.