VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Bugs Server Bugs Server Bugs (Closed)
  • Search

NT Crash Thread

Closed Server Bugs

Moderators: Community Managers, Developers

Locked
  • Print view
Advanced search
136 posts
  • Page 5 of 14
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 14
  • Next
User avatar
Moldew
Content Designer
Content Designer
Posts: 670
Joined: Sat May 24, 2014 10:51 am
Location: Seattle, WA
Re: NT Crash Thread
  • Quote

Post by Moldew » Tue Jan 13, 2015 4:38 pm

Is that my cue to come break something?!?
Haiku is easy -
But sometimes it makes no sense.
Refridgerator.
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: NT Crash Thread
  • Quote

Post by Lokked » Wed Jan 14, 2015 1:56 am

See this thread: viewtopic.php?f=22&t=1180
Top

User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Re: NT Crash Thread
  • Quote

Post by John Adams » Wed Jan 14, 2015 5:08 pm

Tons of people on (YAY) for a long period of time, but finally the world had to collapse

Stack:

Code: Select all

>	WorldServer.exe!WorldCharacter::GetInventory() Line 1788	C++
 	WorldServer.exe!ChunkServer::HandleClientInvMove(std::shared_ptr<Client> & client, PacketStruct * packet) Line 2186	C++
 	WorldServer.exe!ChunkServer::ProcessPackets() Line 516	C++
 	WorldServer.exe!ChunkPacketThread(void * data) Line 134	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 77	C++
 	WorldServer.exe!_callthreadstart() Line 255	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!7689338a()	Unknown
 	[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	
 	ntdll.dll!76f99f72()	Unknown
 	ntdll.dll!76f99f45()	Unknown
Another place we are setting objects, then using them without checking they are valid.

Empty:

Code: Select all

auto origin_character = client->GetCharacter();
Crash, ChunkServer.cpp, Line 2186

Code: Select all

Inventory* char_inventory = origin_character->GetInventory();
Whether we should have to or not, it is 90% of our crashes. We should probably just check them all every time we add one.


Edit: Oh, this code has changed on SVN -- nm, I think Zippy already found it
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: NT Crash Thread
  • Quote

Post by Lokked » Wed Jan 14, 2015 5:10 pm

As a reminder, any GetCharacter, GetCurrentChunk and GetClient should then be checked in the next line.

This is because these are general std::weak_ptr<>.lock calls. If the object doesn't exist in the first place, .lock will return a nullptr.
Top

User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Re: NT Crash Thread
  • Quote

Post by John Adams » Wed Jan 14, 2015 5:12 pm

For those waiting, give me 5 mins to reconfig the firewalls. I am moving NT to a dedicated bare metal box.
Top

User avatar
Cyrcle
Data Collector
Data Collector
Posts: 288
Joined: Fri Jan 31, 2014 1:51 pm
Re: NT Crash Thread
  • Quote

Post by Cyrcle » Wed Jan 14, 2015 5:14 pm

[quote="John Adams"]For those waiting, give me 5 mins to reconfig the firewalls. I am moving NT to a dedicated bare metal box.[/quote]
Woohoo
Top

zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: NT Crash Thread
  • Quote

Post by zippyzee » Wed Jan 14, 2015 5:16 pm

Crap! I hate that I broke the streak. I have been going back in and trying to find all of these. On the other hand, there should always be a character, correct? They initiated the inventory move. So when it fails to get the character, is that just a symptom of another issue or are there instances where there just will be no character there (chunking, exiting the client) and all else is good?
Top

User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Re: NT Crash Thread
  • Quote

Post by John Adams » Wed Jan 14, 2015 5:18 pm

[quote="Cyrcle"][quote="John Adams"]For those waiting, give me 5 mins to reconfig the firewalls. I am moving NT to a dedicated bare metal box.[/quote]
Woohoo[/quote]
Online, please test logging in.


[quote="zippyzee"]Crap! I hate that I broke the streak. I have been going back in and trying to find all of these. On the other hand, there should always be a character, correct? They initiated the inventory move. So when it fails to get the character, is that just a symptom of another issue or are there instances where there just will be no character there (chunking, exiting the client) and all else is good?[/quote]
zippy, never assume anything with stupid_ptr's
Top

zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: NT Crash Thread
  • Quote

Post by zippyzee » Wed Jan 14, 2015 5:22 pm

I'll make it a priority to check everywhere else. If the new revision is up there should be some significant item system stabilization and general bug-squashage.
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: NT Crash Thread
  • Quote

Post by Lokked » Wed Jan 14, 2015 5:26 pm

[quote="zippyzee"]Crap! I hate that I broke the streak. I have been going back in and trying to find all of these. On the other hand, there should always be a character, correct? They initiated the inventory move. So when it fails to get the character, is that just a symptom of another issue or are there instances where there just will be no character there (chunking, exiting the client) and all else is good?[/quote]

First, a very calm and collected "No" because with a multithreaded environment in development, it's difficult to rely on object lifetimes. However, once we sort out a few things, then these types of situations should never occur.

Second, a loud and obnoxious "NO" because stability is very low. What happened is his chunk client probably failed, due to this who ResendPacket issue, and so it's object was destroyed. This destroys his character object. He was still connected and producing packets to the server because his World Client was still connected.

It's confusing, but .... I have no positive comment to add after making that statement
Top


Locked
  • Print view

136 posts
  • Page 5 of 14
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 14
  • Next

Return to “Server Bugs (Closed)”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD