It is currently Tue Dec 02, 2008 5:15 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Bad allocation
PostPosted: Fri Aug 10, 2007 3:55 pm 
Offline

Joined: Fri Aug 10, 2007 3:30 pm
Posts: 9
Hello,

We are trying to convert our shard(095 core) to current 097, so we updated scripts, convert polhook to packethooks, and so on.
Now when we copied data from 095 to 097, logged in and after few minutes this happened:

Code:
Exception in: scripts/control/iconbookcontrol.ecl!done: bad allocation
PC < nLines: (k_ = false
Client#3: Exception in message handler 0x02: bad allocation
Client#5: Exception in message handler 0x02: bad allocation
Client disconnected (2 connections)
Client disconnected (1 connections)
Thread exception: bad allocation


after this we have been disconnected although server has been running on and we can connect again, but when we connected we cannot use any command or skill, just walking or writing.

So we restarted server and this happened:

Code:
[08/11 00:04:16] Account Keryan selecting character Keryan
[08/11 00:05:18] Exception in: pkg/npcs/animals/ai_animal_barker.ecl: bad allocation
PC < nLines: (ferencepe 1792:  1792: global #13
1793:  1793: get member 'z'
1794:  1794: 20L
1795:  1795: 7L
1796:  1796: "britannia"
1797:  1797: Func(3,41): ListMobilesNearLocationEx
1798: >1798: initforeach @1804
1799:  1799: local #0
1800:  1800: get member 'npctemplate'
1801:  1801: if true goto 1804
1802:  1802: 0L
Exception in: pkg/npcs/animals/ai_animal_barker.ecl: bad allocation
PC < nLines: (ferencepe 1792:  1792: global #13
1793:  1793: get member 'z'
1794:  1794: 20L
1795:  1795: 7L
1796:  1796: "britannia"
1797:  1797: Func(3,41): ListMobilesNearLocationEx
1798: >1798: initforeach @1804
1799:  1799: local #0
1800:  1800: get member 'npctemplate'
1801:  1801: if true goto 1804
1802:  1802: 0L
Exception in: pkg/npcs/animals/ai_animal_barker.ecl: bad allocation
PC < nLines: (ferencepe 1792:  1792: global #13
1793:  1793: get member 'z'
1794:  1794: 20L
1795:  1795: 7L
1796:  1796: "britannia"
1797:  1797: Func(3,41): ListMobilesNearLocationEx
1798: >1798: initforeach @1804
1799:  1799: local #0
1800:  1800: get member 'npctemplate'
1801:  1801: if true goto 1804
1802:  1802: 0L
Exception in: pkg/npcs/animals/ai_animal_barker.ecl: bad allocation
PC < nLines: (ferencepe 1792:  1792: global #13
1793:  1793: get member 'z'
1794:  1794: 20L
1795:  1795: 7L
1796:  1796: "britannia"
1797:  1797: Func(3,41): ListMobilesNearLocationEx
1798: >1798: initforeach @1804
1799:  1799: local #0
1800:  1800: get member 'npctemplate'
1801:  1801: if true goto 1804
1802:  1802: 0L
Exception in: pkg/npcs/animals/ai_animal_barker.ecl: bad allocation
PC < nLines: (ferencepe 1792:  1792: global #13
1793:  1793: get member 'z'
1794:  1794: 20L
1795:  1795: 7L
1796:  1796: "britannia"
1797:  1797: Func(3,41): ListMobilesNearLocationEx
1798: >1798: initforeach @1804
1799:  1799: local #0
1800:  1800: get member 'npctemplate'
1801:  1801: if true goto 1804
1802:  1802: 0L
[08/11 00:05:19] Unhandled Exception! Writing Minidump file.
This file with explanation and last lines from log files should be given to the development team.
Saved dump file to 'POL097-2007-07-15 RC4 Coregina-20070810235238-0.dmp'
Last Script: pkg/npcs/animals/ai_animal_barker.ecl PC: 1797
[08/11 00:05:26] Logfile opened.
POL097-2007-07-15 RC4 Coregina (VS.NET 2003) compiled on Jul 15 2007 17:20:26 running.


I dont think there is problem with this AI, becouse without data from 095 its run just fine, so do you know what it can be ?

Our shard has something around 200 players on peeks, and memory usage is about 1,7GB.


Attachments:
POL097-2007-07-15 RC4 Coregina-20070810235238-0.dmp [34.47 KiB]
Not downloaded yet
Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 12, 2007 1:01 am 
Offline

Joined: Thu May 24, 2007 2:12 pm
Posts: 46
Location: South Africa
Check your NPC scripts, especially the creation of NPC's. If you are using array {} you will need to convert that to struct. Check the changelog.txt.

Regards
Justae


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 3:35 pm 
Offline

Joined: Fri Aug 10, 2007 3:30 pm
Posts: 9
Justae wrote:
Check your NPC scripts, especially the creation of NPC's. If you are using array {} you will need to convert that to struct. Check the changelog.txt.

Regards
Justae


Thank you for idea, but we converted arrays to struct in npc creation long time ago ( about one month ), so there is no problem, and i dont think that problem is in scripts at all.

I tryed to run server without npcs - so I deleted npcs.txt/.bak and npcequip.txt/.bak from data. After that server runs fine, without any problem. So I thought problem is in npc data, but then I tried to put only npcs.txt and npcequip.txt to data ( and some accounts ), without items and server runs fine too.

So where can be problem? Can it be that we are having just too large data - its about 1,7GB in memory, so maybe its too large for POL to handle? ( but then - why it works on pol095 and on 097 not? )


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 10:22 pm 
Offline

Joined: Thu Jan 18, 2007 2:34 am
Posts: 91
I get bad allocation too. Doesn't crash mine, just freezes it basically :P Either get this or a crash referencing a hook. In my case both are from the same cause, the 097 pol memory leak problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 5:52 am 
Offline

Joined: Thu May 24, 2007 2:12 pm
Posts: 46
Location: South Africa
My shard uses POL 096.7 now and does not have the issue you describe. However, it does still have to be restarted at least once every two days due to memory leak issue.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 1:08 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
bad allocation sounds like not enough memory. the memory leak was fixed - a new core will be available asap.

Shinigami


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl