bug: mudlet freezing for short period

Post Reply
Caled
Posts: 403
Joined: Thu Apr 09, 2009 4:45 am

bug: mudlet freezing for short period

Post by Caled »

At first I thought my mud was lagging, but in fact most parts of Mudlet is in fact freezing up. The script editor becomes inaccessible (if already open, it shows as a blank white square). It lasts 10-30 seconds, before coming good. This only seems to happen after Mudlet has been running for quite a while - a few hours at least.

If I try to close Mudlet, it tells me Mudlet is not responding, and asks me if I wish to wait, or to force quit.

If I force quit, this is what shows in the terminal window (incidentally, I've noticed that colour warning a lot, lately) - I included that first part just to show you that, though the freeze didn't happen until much later.

Because it does not actually crash, I can't get a backtrace and I'm not sure if there is any useful information there for you. Is there some way I can get more info when it actually happens next?

Code: Select all

pretty well thanks, yourself?", "clt mornin", "clan switch ttfn", "ct greetings", "gt greetings", "cwho", "gwho", "rn", "readnews ttfn 9", "rm") 
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
Warning: QColor::setRgb: RGB parameters out of range
TLuaInterpreter: compiling following code:
--------------------------------------------snip<
"show_elixlist()" 
>snip--------------------------------------------
after chop text=< "fill" > 
historyList= ("boilp 4 speed", "elix", "inc all skin", "harvest skin from snake;drop snake", "harvest skin from snake", "n", "say duanathar", "get corpse", "amon", "t snake", "fill empty from pot", "boilp 2 mending", "boilp 1 frost", "boilp 2 venom", "boilp 2 immunity", "get pot from pack", "inc sac", "inc all plant", "outc skin", "ic", "i", "carve 6165", "diagrams", "carve vial", "outc 30 wood", "secrete oculus;milk venom into empty", "secrete slike;milk venom into empty", "ab toxicology", "ab toxicology milking", "more", "elixlist", "empty empty;secrete xentio;milk venom into empty", "empty empty;secrete vernalius;milk venom into empty", "empty empty;secrete kalmia;milk venom into empty", "empty empty;secrete prefarar;milk venom into empty", "empty empty;secrete euphorbia;milk venom into empty", "empty empty;secrete epteth;milk venom into empty", "empty empty;secrete epseth;milk venom into empty", "empty empty;secrete curare;milk venom into empty", "secrete kalmia;milk venom into empty", "empty empty", "p empty", "secrete loki;milk venom into empty", "purge", "put gold in pack", "ing", "put pot in pack", "p pot", "get pot", "empty pot", "milk venom into empty", "secrete loki", "secrete aconite", "msc", "abt", "exit haven", "get 50 vial", "return to haven", "incline", "adyn hehe", "clt I'm all excited - all my envenoming except for spinning is working, and its breakfast time. GO food, go", "clwho", "contentsigh", "dat", "cal", "sal", "ldn", "cal s", "comecho on", "sal s", "inc rope", "inc wood", "msg moirean I think I accidentally disarmed 5 of your traps at four corners.", "oops", "beam paris", "ldk", "jibz designing a few combos in my head", "jibz pretty well. Working on my venom use at the moment", "snicker", "look", "jibz greetings", "tll", "tra", "tn", "def", "target left leg", "diag", "target nothing", "th", "trl", "stop", "Mf", "Ms", "se", "Mc", "nstat", "qw", "ct hello Alexina", "/look", "maul sdfsd", "t sdfsd", "dfsdf", "t sdfs", "m", "mj", "gt pretty well thanks, yourself?", "clt mornin", "clan switch ttfn", "ct greetings", "gt greetings", "cwho", "gwho", "rn", "readnews ttfn 9", "rm") 
[New Thread 0xaab7bb90 (LWP 31872)]
[New Thread 0xaa37ab90 (LWP 31873)]
[New Thread 0xa9b79b90 (LWP 31874)]
[Thread 0xaa37ab90 (LWP 31873) exited]
[Thread 0xaab7bb90 (LWP 31872) exited]
[New Thread 0xaab7bb90 (LWP 31875)]
[Thread 0xaab7bb90 (LWP 31875) exited]
[Thread 0xa9b79b90 (LWP 31874) exited]
[New Thread 0xa9b79b90 (LWP 31876)]
[New Thread 0xaab7bb90 (LWP 31877)]
[New Thread 0xaa37ab90 (LWP 31878)]
[New Thread 0xa521db90 (LWP 31879)]
[Thread 0xa9b79b90 (LWP 31876) exited]
[Thread 0xaab7bb90 (LWP 31877) exited]
[Thread 0xaa37ab90 (LWP 31878) exited]
[New Thread 0xaa37ab90 (LWP 31884)]
[Thread 0xaa37ab90 (LWP 31884) exited]
[Thread 0xa521db90 (LWP 31879) exited]

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb) bt
No stack.
(gdb) 

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: bug: mudlet freezing for short period

Post by Heiko »

1. You shouldn't be running Mudlet from a debugger (gdb) unless you are trying to track down a crash.
The debugger will slow down Mudlet incredibly and mess with a lot of internals.
2. Chances are that you are using a lot of console windows and your computer memory is running low. I'll add functions to set the buffer size of each window seperately via scripting. The default is 100.000 lines per window. Ronny has reported similar issues before he upgraded to more RAM when he had been running Mudlet for many hours with several user windows and had many Mozilla tab windows open at the same time.
Mozilla is a memory killer and Mudlet uses a fair bit of memory too - the more console windows you are using including the debug console - the more memory is being used. The new scripting functions will allow you to set appropriate buffer scrollback sizes to settle the problem. Try running htop to check your memory usage. Note that Mudlet does not have a memory leak and does not reserve buffer space that is not being used at this point. This is why memory problems only surface after many hours of intensive playing. The new memory management functions will give you more control to tweak your system with respect to your available RAM i. e. you can reduce the scrollback buffer of map or status windows that don't need much scrollback buffer.

eraldo
Posts: 43
Joined: Sun Jul 12, 2009 1:25 am

Re: bug: mudlet freezing for short period

Post by eraldo »

I had similar problems... and found that restarting mozilla and mudlet does the trick for quite some time :)
I would like to upgrade to more RAM but my motherboard does not support it and I decided to wait some more.
Not that I care much but I still wanted you to know.

Caled
Posts: 403
Joined: Thu Apr 09, 2009 4:45 am

Re: bug: mudlet freezing for short period

Post by Caled »

Thanks for the replies :)

Post Reply