From: SourceForge.net <no...@so...> - 2009-01-02 21:00:30
|
Bugs item #2431312, was opened at 2008-12-15 17:58 Message generated for change (Comment added) made by ondrejr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=544942&aid=2431312&group_id=75752 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Latest Subversion Status: Open Resolution: None Priority: 9 Private: No Submitted By: Ondrej Riha (ondrejr) Assigned to: Zach Laine (tzlaine) Summary: GG::Font : Encountered malformed <rgba> formatting tag: <rgb Initial Comment: I get segmentation fault. In stdout it writes message: GG::Font : Encountered malformed <rgba> formatting tag: <rgba 0 255 0 255> Here is backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffc813f7730 (LWP 27700)] 0x00007ffc89cda0f2 in GG::Font::HandleTag (this=0x1709a10, tag=@0x1ba07f0, orig_color=0x7fff92e9d8f0, render_state=@0x7fff92e9db80) at src/Font.cpp:1182 1182 glColor(render_state.colors.top()); (gdb) bt #0 0x00007ffc89cda0f2 in GG::Font::HandleTag (this=0x1709a10, tag=@0x1ba07f0, orig_color=0x7fff92e9d8f0, render_state=@0x7fff92e9db80) at src/Font.cpp:1182 #1 0x00007ffc89cdb5bd in GG::Font::RenderText (this=0x1709a10, ul=@0x7fff92e9dc60, lr=@0x7fff92e9dc50, text=@0x18b81b0, format=@0x18b829c, line_data=@0x18b82a8, render_state=@0x7fff92e9db80, begin_line=0, begin_char=0, end_line=1, end_char=7) at src/Font.cpp:537 #2 0x00007ffc89ce1130 in GG::Font::RenderText (this=0x1709a10, ul=@0x7fff92e9dc60, lr=@0x7fff92e9dc50, text=@0x18b81b0, format=@0x18b829c, line_data=0x18b82a8, render_state=0x7fff92e9db80) at src/Font.cpp:502 #3 0x00007ffc89dca803 in GG::TextControl::Render (this=0x18b8190) at src/TextControl.cpp:170 #4 0x00007ffc89d2a219 in GG::GUI::RenderWindow (wnd=0x18b8190) at src/GUI.cpp:928 #5 0x00007ffc89d2a278 in GG::GUI::RenderWindow (wnd=0x18b08c0) at src/GUI.cpp:934 #6 0x00007ffc89d2a278 in GG::GUI::RenderWindow (wnd=0x16ed760) at src/GUI.cpp:934 #7 0x00007ffc89d2a49c in GG::GUI::Render (this=0x7fff92e9e5f0) at src/GUI.cpp:970 #8 0x00007ffc89ccb3ef in GG::EventPumpBase::LoopBody (this=0x7fff92e9e060, gui=0x7fff92e9e5f0, state=@0x7ffc8a1c6cd0, do_non_rendering=true, do_rendering=true) at src/EventPump.cpp:73 #9 0x00007ffc89ccb4b6 in GG::EventPump::operator() (this=0x7fff92e9e060) at src/EventPump.cpp:91 #10 0x00007ffc8a706dc3 in GG::SDLGUI::Run (this=0x7fff92e9e5f0) at src/SDL/SDLGUI.cpp:269 #11 0x00007ffc89d28ed2 in GG::GUI::operator() (this=0x7fff92e9e5f0) at src/GUI.cpp:572 #12 0x00007ffc8a707539 in GG::SDLGUI::operator() (this=0x7fff92e9e5f0) at src/SDL/SDLGUI.cpp:75 #13 0x000000000083f93f in main (argc=1, argv=0x7fff92e9f238) at client/human/chmain.cpp:84 ---------------------------------------------------------------------- >Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 22:00 Message: I did valgrind check when this bug happened. It is in attachment valgrind.zip File Added: valgrind.zip ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 14:14 Message: Another boost shared_ptr problem from boost mailing list which may be related to this problem(and bug [2482166]): http://lists.boost.org/boost-users/2008/10/41388.php ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 13:58 Message: I found that if I create new game and saved it and then it crashed during loading screen. But if I run FreeOrion and load this saved game, it loads, but then if I want to load it again(or 3 turn), it crashed. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 13:53 Message: Problem is still in FO revision 2712. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 13:36 Message: Problem may be similar(and maybe [2482166] bug too) with this boost bug: http://lists.boost.org/boost-users/2008/10/41732.php ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 13:06 Message: Geoff: No. I created new game and saved it. During loading screen it crashed. ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2009-01-02 11:31 Message: Are you loading a saved game that was saved with a version of FreeOrion from before the revisions of the last few days? Saved games with the SVN version probably aren't compatible with earlier versions, so you should test loading saves only with saves created with the same version of FreeOrion in this case. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2009-01-02 11:27 Message: Revision FO 2711 and GG 692: GG::Font : Encountered malformed <rgba> in console still happening and when I now I even can't load game because now loading screen freezes FreeOrion with this error message in console(architecture amd64): freeorion: src/Font.cpp:1361: void GG::Font::HandleTag(const boost::shared_ptr<GG::Font::FormattingTag>&, double*, GG::Font::RenderState&) const: Assertion `!render_state.colors.empty()' failed. Aborted I don't know if it is related to boost serialization on amd64, because I have boost 1.37(boost 1.36 is buggy on amd64 and linux vendors removed this version from repositories and replace it with 1.37). Others from FreeOrion forum on amd64 even can't compile FreeOrion due to scons can't find some boost libraries although they have it. I never have this problem. And this time after recent svn changes(and visible object patch) error message is different. ---------------------------------------------------------------------- Comment By: Zach Laine (tzlaine) Date: 2009-01-02 07:12 Message: Please reconfirm this against the latest SVN code. I can no longer reproduce this. I am hoping the recent changes have fixed it, but can't be sure, since I was never able to diagnose the problem. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2008-12-18 23:39 Message: I can simulate problem with freeorion: src/Font.cpp:1190: void GG::Font::HandleTag another way. Howto: Start new game with 10 stars and 9 AI. Save game. Load game. Load game. Crashed. ---------------------------------------------------------------------- Comment By: Zach Laine (tzlaine) Date: 2008-12-18 15:26 Message: I'm looking into this, but don't have much time for it. I might not be able to get to it before the start of the new year. Please keep gathering more info if you can. :) ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2008-12-18 11:18 Message: After switching boost to 1.37 bug is still ocurring(GiGi revision 688). I don't know if this bug happens only on amd64 architecture, but I know boost 1.36 has some problems on amd64 with serialization. Boost 1.37 should be OK. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2008-12-18 01:09 Message: After last GG update (fixed Font serialization) by tzlaine bug remains. But now it crashed with error message: freeorion: src/Font.cpp:1190: void GG::Font::HandleTag(const boost::shared_ptr<GG::Font::FormattingTag>&, double*, GG::Font::RenderState&) const: Assertion `!render_state.colors.empty()' failed. It happened when enemy scout arrives(10 stars, 9 AI, third turn). Also problem with malformed formatting tag remains. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2008-12-15 20:57 Message: Problem with crashing can be simulated by created new game and wait until enemy scout arrives or by research some technology and reseach complete dialog appears. ---------------------------------------------------------------------- Comment By: Ondrej Riha (ondrejr) Date: 2008-12-15 20:38 Message: Problem with crashing solved. I found problem in GiGi and created Font.patch Another problem with messages in console with malformed tags remains, but game is not crashing and are no messages in logs. This problem can be reproduced by creating new game and clicking on fleet icon. But everything works. File Added: Font.patch ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2008-12-15 19:22 Message: What do you do to cause this bug? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=544942&aid=2431312&group_id=75752 |