[FIXED] Server crash on 'WIPE

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Server crash on 'WIPE

Post by Xuri »

Lately 'WIPE has been acting strangely, taking forever to wipe even small areas - very strange. Also seems to make the server crash.

Unfortunately all I've gotten in callstack so far is this:
f00dbaad()
JS32! 1001e977()
8b24082f()
Last edited by Xuri on Sat Nov 26, 2005 10:57 pm, edited 1 time in total.
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Please let me know if this continues to happen....
Scott
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

I've experienced this issue and determined the cause.

It is a rather intricate problem with how we are handling object creation (and deletion/cleanup) in JS, and thus will take some time to fix. For now, just try not to 'wipe an excessive amount (I find with a full world one wipe nearly doubles the amount of RAM usage UOX3 has, and the second wipe generally crashes).
Scott
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Last post on this was november 25th....


Wipe still fails for me on v3.3.

Sometimes the frist area will work (50% of the time), second wipe always crashes.

While it's not a major deal, just a warning to those playing. use 'save before wiping the first time! hehehe.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

As giwo writes in this thread, there are currently some issues with the JS engine which cause this crash.

As a workaround, use 'AREACOMMAND WIPE instead of 'WIPE, since it uses a different way of iterating through the items, and shouldn't crash the server (at least, it hasn't for me).
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

This is fixed in 0.98-3.4, isn't it? At least, fixed for normal usage of it.
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Ideally the JS engine shouldn't crash at all, so I am still hoping there is some way to catch it before it crashes alltogether.... however, having said that, yes, normal usage of 'wipe should work fine now.
Scott
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

You can still let it crash. Run a command like 'cleanup while the machine is low on memory. As soon as windows starts to swap UOX3 crashes.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Running a program like UOX3 on a machine with low-memory is asking for it. :)


However, as I noted, I would like to find a way to check for enough free memory before allocating new JS Objects... sadly I have not yet found a way...
Scott
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

giwo wrote:Running a program like UOX3 on a machine with low-memory is asking for it. :)
My server machine has 512MB RAM and just for testing I multiplied the item spawns by 10 (simulating users that collect as much items as possible) and memory usage easly went way over 512MB when doing 'cleanup. Most affordable consumer server you can rent here have around 512MB RAM.
Locked