worldserver crash

Welcome in the osRose emulator Project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

worldserver crash

Postby Soul on Sun Sep 07, 2008 5:47 pm

hi guys, this is my first post ^^


i wanted ask if some one can help me with my prob

i compiled the exex and set the offline configs

i run the client ver 112 can past login and stay on the char select screen.

When i try connecting to the world it crash, i debuged it and this comes

Call Stack
#0 0041A096 ??() (??:??)
#1 00D38118 ??() (??:??)
#2 000000DE ??() (??:??)
#3 00D380E8 ??() (??:??)
#4 0022EB48 ??() (??:??)
#5 00431EBC ??() (??:??)
#6 00590020 ??() (??:??)
#7 00000002 ??() (??:??)
#8 000000DE ??() (??:??)
#9 006EF7B4 ??() (??:??)
#10 1003F2A0 mysql_embedded() (C:\Dokumente und Einstellungen\Besitzer\Desktop\osrose revs\osprose\Binary\libmysql.dll:??)
#11 0022EB04 ??() (??:??)
#12 10028D66 mysql_embedded() (C:\Dokumente und Einstellungen\Besitzer\Desktop\osrose revs\osprose\Binary\libmysql.dll:??)
#13 00D21320 ??() (??:??)
#14 00000007 ??() (??:??)
#15 1E1EF2A0 ??() (??:??)
#16 201E1E1E ??() (??:??)
#17 037C5008 ??() (??:??)
#18 100029B0 mysql_free_result() (C:\Dokumente und Einstellungen\Besitzer\Desktop\osrose revs\osprose\Binary\libmysql.dll:??)
#19 038E85F0 ??() (??:??)
#20 006EF790 ??() (??:??)
#21 00590020 ??() (??:??)
#22 038E85F0 ??() (??:??)
#23 0022F468 ??() (??:??)
#24 004547A3 ??() (??:??)
#25 037C5008 ??() (??:??)
#26 00D38041 ??() (??:??)
#27 00000010 ??() (??:??)
#28 038E8F25 ??() (??:??)
#29 7C9292EF ntdll!RtlDuplicateUnicodeString() (C:\WINDOWS\system32\ntdll.dll:??)


did i somethingwrong ?
Soul
Little soul
Little soul
 
Posts: 7
Joined: Sun Sep 07, 2008 5:18 pm

Re: worldserver crash

Postby Drakia on Sun Sep 07, 2008 6:15 pm

In CodeBlocks (if you're using it) go to Project->Build Options, and then under the "Compiler Settings" tab, check the "Produce Debugging Symbols [-g]" option, then hit "Rebuild". This will make the debug output actually tell us what's wrong.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: worldserver crash

Postby Soul on Sun Sep 07, 2008 8:01 pm

i activated debugging symbols but it looks still the same. i think it does crash in mysql.dll
Soul
Little soul
Little soul
 
Posts: 7
Joined: Sun Sep 07, 2008 5:18 pm

Re: worldserver crash

Postby lmame on Sun Sep 07, 2008 8:03 pm

Show some screenshots of the servers, do they log something?
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: worldserver crash

Postby Soul on Sun Sep 07, 2008 8:30 pm

Attachments
log.rar
logs
(3.92 KiB) Downloaded 371 times
Soul
Little soul
Little soul
 
Posts: 7
Joined: Sun Sep 07, 2008 5:18 pm

Re: worldserver crash

Postby Drakia on Sun Sep 07, 2008 8:32 pm

Ok, well, run the other two servers outside of CodeBlocks, and then in C::B with the WorldServer project open, click Debug->Start (Or press F8) and it should give lots more into, hopefully o.O

Oh, wait, I know the problem. When you go to "Build Options" on the left, click "default" and enable debugging symbols in there, also disable "Strip all symbols" and "optimize fully". That should make it show us exactly what function call is dieing.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: worldserver crash

Postby Soul on Sun Sep 07, 2008 10:20 pm

thx the debug have now more informations

  1.  
  2. #0 00421735 CWorldServer::IsValidItem(this=0xa00020, type=2, id=222) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/World Server/extrafunctions.cpp:1008)
  3. #1 0043B06C CPlayer::loaddata(this=0x3c21190) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/World Server/playerdata.cpp:163)
  4. #2 004571A3 CWorldServer::pakDoIdentify(this=0xa00020, thisclient=0x3c21190, P=0x3c1f174) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/World Server/worldpackets.cpp:261)
  5. #3 00476755 CWorldServer::OnReceivePacket(this=0xa00020, thisclient=0x3c1f128, P=0x3c1f174) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/World Server/worldserver.cpp:874)
  6. #4 00401A43 CClientSocket::ReceiveData(this=0x3c1f128) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/Common/SocketClient.cpp:101)
  7. #5 004032A4 CServerSocket::HandleClients(this=0xa00020, fds=0x22f940) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/Common/SocketServer.cpp:378)
  8. #6 0047357A CWorldServer::ServerLoop(this=0xa00020) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/World Server/worldserver.cpp:408)
  9. #7 00402B55 CServerSocket::StartServer(this=0xa00020) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/Common/SocketServer.cpp:186)
  10. #8 004342CC main(argc=1, argv=0x3f3f60) (C:/Dokumente und Einstellungen/Besitzer/Desktop/osrose revs/osprose/World Server/main.cpp:71)
Soul
Little soul
Little soul
 
Posts: 7
Joined: Sun Sep 07, 2008 5:18 pm

Re: worldserver crash

Postby Drakia on Sun Sep 07, 2008 11:17 pm

Huh... that's not right, it shouldn't be crashing there, I just looked at the code and there's quite a few checks o.O
Open extrafunctions.cpp, and on line 1001 (Just inside the function IsValidItem, after the opening curly brace "{") add this
  1. Log(MSG_INFO, "Type: %d  ID: %d", type, id);

It will tell you exactly what item type and item id is crashing the server. Hopefully it'll also let us know what is screwing it up, because from the looks of things, it should be between 0-9 for type, and 0-4999 for id, which should all be index'd. Post what the results are when it crashes :)
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: worldserver crash

Postby Soul on Mon Sep 08, 2008 7:29 pm

added the log and here is the results

Image



pic link:

http://img118.imageshack.us/my.php?imag ... nntgq9.jpg
Soul
Little soul
Little soul
 
Posts: 7
Joined: Sun Sep 07, 2008 5:18 pm

Re: worldserver crash

Postby Maxxon on Tue Sep 09, 2008 8:09 am

That is indeed a bit strange i dont see a error there nor an obious error where EquipList gets populated. What STB did you use for osprose?
Image
an anymous comment on a program called reloader:
what if a fatal error happens, will it restart it?
User avatar
Maxxon
Hawker's pet
Hawker's pet
 
Posts: 1305
Joined: Sat Nov 10, 2007 12:42 pm

Next

Return to Support - OspRose Emulator

Who is online

Users browsing this forum: No registered users and 9 guests