Page 3 of 3 FirstFirst 1 2 3
Results 21 to 25 of 25

Thread: Mafia freezes and becomes unplayable, don't know if it is with Mafia or my system

  1. #21
    Developer
    Join Date
    Aug 2009
    Posts
    2,722

    Default

    Nothing appears to be saturated in the task manager (CPU <10%, Memory < 50%, Disk ~0%, Network ~0%, GPU ~0%). I too initially wondered if it was an issue with my system (desktop), hence I tried running Mafia on my laptop (which worked fine before I encountered this issue), but the same lag/freezing also surfaced there.

    ...

    The UI is responsive. While logged in, it is possible to type in the gCLI, which allows for the queuing of additional scripts (although none of the scripts actually run). It is also possible to open the relay browser to carry out actions (which are reflected and recorded on the gCLI) while the scripts freeze.
    Originally Posted by WARriorer View Post
    Hm. If it occurs across systems, I'm leaning more toward to a network issue, although it's strange that Mafia hangs waiting for requests -- I'd expect them to time out after ~30s (and throw an IOException). Any weird firewall in play? Does this persist if you take your laptop to e.g. starbucks public wifi?

    UI responsiveness rules out (I think) memory pressure for the JVM, although as frono suggests, a threading issue is still possible.

  2. #22
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    3,870

    Default

    My current thinking is that this thread and http://kolmafia.us/showthread.php?22...atic-behaviour have similar causes.

    That hypothesis leads me to suggest it does not have anything to do with a particular computer, which OS is used, or network lag, or a lack of system resources.

    We fear that which we do not understand. I know enough about threads to manage them sometimes and program defensively in some cases but I don't know as much as I should, so I will point a finger at threads. I will furthermore suggest an inventory management function might be involved.

    Since I can't reproduce it on my system, all I can bring to bear is manual code inspection and static analysis but I am slowly doing that. The evil and lazy part of me wishes it would happen to Veracity but the more noble part just asks "What Would Veracity Do?" and is very glad she has a job she enjoys.

    I will also note that there have been concerns about threading at least as far back as 2012 which is when hola suspected an issue and told people about jstack in hopes of gathering data.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  3. #23
    Junior Member
    Join Date
    Nov 2017
    Location
    Singapore
    Posts
    7

    Default

    Hm. If it occurs across systems, I'm leaning more toward to a network issue, although it's strange that Mafia hangs waiting for requests -- I'd expect them to time out after ~30s (and throw an IOException). Any weird firewall in play? Does this persist if you take your laptop to e.g. starbucks public wifi?

    UI responsiveness rules out (I think) memory pressure for the JVM, although as frono suggests, a threading issue is still possible.
    Originally Posted by heeheehee View Post
    I am also considering the possibility of a network issue, and I do intend to test it out on a public Wi-Fi. However, I've been running some (unrelated) simulations on my laptop for the past few days (and will carry on running the simulations for the next few days at full capacity), so I can only report back in a week or so.

    Edit: I also suspect no weird firewall is in play. I have created exceptions for www.kingdomofloathing.com and turned off my anti-virus in my debugging of the issue (also to note - I have no issues on Vanilla KOL so it doesn't seem like my network has any issues retrieving data directly from the KOL servers).
    Last edited by WARriorer; 02-16-2018 at 05:36 AM.

  4. #24
    Developer
    Join Date
    Aug 2009
    Posts
    2,722

    Default

    By "weird firewall", I'm suggesting something might be throttling the rate of requests you might make to a given domain -- with a script, Mafia has the potential to make many more requests than you're likely to trigger by just playing in the vanilla browser. Generally difficult to test, although opening e.g. holderofsecrets's display case might do the trick (fetching and rendering lots of images, in particular).

  5. #25
    Developer
    Join Date
    Apr 2010
    Posts
    4,257

    Default

    Also some might also need exclusions for 127.0.0.1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •