bugBattle for Wesnoth - Bugs: bug #18715, Game hangs at loading screen after...

 
 
Show feedback again

bug #18715: Game hangs at loading screen after flushing caches and save index and pressing F5

Submitted by:  Steven Panek <espreon>
Submitted on:  Thu 22 Sep 2011 05:21:39 AM UTC  
 
Category: BugSeverity: 4 - Important
Priority: 5 - NormalItem Group:  None of the others
Status: ConfirmedPrivacy: Public
Assigned to: Ignacio R. Morelle <shadowmaster>Open/Closed: Open
Release: 1.9.9+svn (51251)Operating System: Sabayon Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 13 Dec 2011 08:52:11 PM UTC, comment #9:

My bad, I hadn't noticed the cache part and only tried after removing the saves index. I can confirm it now, and the saves index is clearly unrelated.

Unfortunately I'm not quite sure what the best way to address this issue would be. As the comment anonymissimus found points out, the game isn't really prepared for certain directories disappearing during runtime.

I may try to add an additional check for the cache management code later to ensure all directories exist before working on them, although I'm really curious in what kind of situation you truly need to physically destroy the cache before reloading WML. (If some changes aren't properly detected, than that should be filled as a separate bug.)

Ignacio R. Morelle <shadowmaster>
Project AdministratorIn charge of this item.
Tue 13 Dec 2011 08:13:28 PM UTC, comment #8:

I can still reproduce this on Linux. The same method I used before was used this time.

Steven Panek <espreon>
Project Member
Tue 13 Dec 2011 04:59:55 PM UTC, comment #7:

Reproduces for me in r52267. Marking none.

how-to: start up wesnoth to titlescreen, delete the userdata/cache dir (in a source tree on a windows system), press F5
wesnoth starts to hang as soon as attempting to write the first file in the cache dir, judging from the --log-debug=all.

Anonymissimus <anonymissimus>
Project Member
Mon 12 Dec 2011 06:48:28 PM UTC, comment #6:

I can't reproduce this here, so I'll assume it's Fixed unless you can confirm otherwise before 1.9.13.

Ignacio R. Morelle <shadowmaster>
Project AdministratorIn charge of this item.
Wed 12 Oct 2011 07:26:07 PM UTC, comment #5:

I believe that this has rather always been present, not only since last year. There's a comment by shadowmaster filesystem.cpp:627 addressing it, and it seems the engine is generally not prepared for the user deleting stuff from BfW's directories while BfW is running, not only for the cache dir. I wonder why the OS allows deleting at all, usually programs disallow modifying the files they need while running I think. Maybe only the stuff reread or recreated when pressing F5 should be allowed to be modified while running.

Anonymissimus <anonymissimus>
Project Member
Mon 10 Oct 2011 03:03:50 PM UTC, comment #4:

This probably needs re-fixing due to token changes revert. See also r51296.

Anonymissimus <anonymissimus>
Project Member
Mon 26 Sep 2011 08:44:22 PM UTC, comment #3:

This has been fixed.

Steven Panek <espreon>
Project Member
Mon 26 Sep 2011 07:58:39 PM UTC, comment #2:

I was able to duplicate it by not restarting wesnoth after deleting the cache directory. It that case when wesnoth tries to regenerate the config_cache, it notices that it can't read the old file and tries to write a new to non-existent directory, throws an exception in the write_config constructor and tries unsuccessfully to call the destructor of the gzip compression filter from within the constructor. All in all, not good.

I fixed it by rebuilding the cache directory each time.

That particular problem has been floating around since July 2010, but now I think it is fixed.

Thonsew <thonsew>
Project Member
Sat 24 Sep 2011 10:04:56 PM UTC, comment #1:

Even at HEAD it still hangs.

Steven Panek <espreon>
Project Member
Thu 22 Sep 2011 05:21:39 AM UTC, original submission:

While in game, when I press F5 after deleting save_index.gz and ~/.cache/wesnoth, the game hangs at the loading screen.

Steven Panek <espreon>
Project Member

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by anonymissimus (Posted a comment)
  • -unavailable- added by thonsew (Updated the item)
  • -unavailable- added by espreon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 Dec 2011 08:52:11 PM UTCshadowmasterStatusNone=>Confirmed
      Assigned toNone=>shadowmaster
    Tue 13 Dec 2011 04:59:54 PM UTCanonymissimusStatusWorks For Me=>None
    Mon 12 Dec 2011 06:48:28 PM UTCshadowmasterStatusNone=>Works For Me
    Mon 10 Oct 2011 03:04:05 PM UTCanonymissimusOpen/ClosedClosed=>Open
    Mon 10 Oct 2011 03:03:50 PM UTCanonymissimusStatusFixed=>None
      Assigned tothonsew=>None
    Mon 26 Sep 2011 09:16:39 PM UTCthonsewOpen/ClosedOpen=>Closed
    Mon 26 Sep 2011 08:44:22 PM UTCespreonStatusWorks For Me=>Fixed
    Mon 26 Sep 2011 07:58:39 PM UTCthonsewStatusNone=>Works For Me
    Sat 24 Sep 2011 10:04:56 PM UTCespreonStatusWorks For Me=>None
    Sat 24 Sep 2011 07:22:09 PM UTCthonsewStatusNone=>Works For Me
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup