Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
network and exception problems
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
network and exception problems
Hi there! I have something weird in my server.

Last build REV 2218

When I cast Meteor Swarm or Earthquake quickly (or when many creatures attacks me with magic) I got some errors in my Sphere and sometimes I got D/C

Code:
22:46:DEBUG:__ thread (5580) __ |  # | _____ function _____________ | ticks passed from previous function start ______
22:46:DEBUG:>>         5580     |  0 | NetworkManager::processAllInput | +0
22:46:DEBUG:>>         5580     |  1 |   NetworkInput::processInput | +0
22:46:DEBUG:>>         5580     |  2 |    NetworkInput::processData | +0
22:46:DEBUG:>>         5580     |  3 |    NetworkInput::processData | +0
22:46:DEBUG:>>         5580     |  4 | NetworkInput::processGameClientData | +0 <-- exception catch point (below is guessed and could be incorrect!)
22:46:DEBUG:>>         5580     |  5 | PacketDoubleClick::onReceive | +0
22:46:DEBUG:>>         5580     |  6 |   CClient::Event_DoubleClick | +0
22:46:DEBUG:>>         5580     |  7 |        CClient::Cmd_Use_Item | +0
22:46:DEBUG:>>         5580     |  8 |   CClient::addContainerSetup | +0
22:46:DEBUG:>>         5580     |  9 |     NetState::endTransaction | +0
22:46:DEBUG:>>         5580     | 10 | NetworkOutput::QueuePacketTransaction | +0
22:46:CRITICAL:"Access Violation" (0xfffeb0e8), in SUB: NetworkInput::Message::ProcessMessage()
22:46:DEBUG:b:Parsing Packet len=34 id=0x34 [2015/03/18 22:46:02]
        0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F
       -- -- -- -- -- -- -- --  -- -- -- -- -- -- -- --
0000   34 ed ed ed ed 04 00 00  a0 3d 6c 00 00 00 01 e1   4........=l.....
0010   00 00 00 a0 3d 15 57 03  cb 00 0e 00 82 06 40 00   ....=.W.......@.
0020   9f a7                                             ..
22:46:DEBUG:__ thread (5580) __ |  # | _____ function _____________ | ticks passed from previous function start ______
22:46:DEBUG:>>         5580     |  0 |         NetworkManager::tick | +0
22:46:DEBUG:>>         5580     |  1 |          NetworkThread::tick | +0
22:46:DEBUG:>>         5580     |  2 | NetworkOutput::processOutput | +0 <-- exception catch point (below is guessed and could be incorrect!)
22:46:DEBUG:>>         5580     |  3 | NetworkOutput::processPacketQueue | +0
22:46:DEBUG:>>         5580     |  4 |    NetworkOutput::sendPacket | +0
22:46:DEBUG:>>         5580     |  5 | NetworkOutput::sendPacketData | +0
22:46:DEBUG:>>         5580     |  6 |      CQueueBytes::AddNewData | +0
22:46:DEBUG:>>         5580     |  7 |  CQueueBytes::AddNewDataLock | +0
22:46:DEBUG:ActiveThread=0, TickCount=225
22:46:DEBUG:__ thread (5580) __ |  # | _____ function _____________ | ticks passed from previous function start ______
22:46:DEBUG:>>         5580     |  0 | NetworkManager::processAllInput | +0
22:46:DEBUG:>>         5580     |  1 |   NetworkInput::processInput | +0
22:46:DEBUG:>>         5580     |  2 |    NetworkInput::processData | +0
22:46:DEBUG:>>         5580     |  3 |    NetworkInput::processData | +0
22:46:DEBUG:>>         5580     |  4 | NetworkInput::processGameClientData | +0 <-- exception catch point (below is guessed and could be incorrect!)
22:46:DEBUG:>>         5580     |  5 | PacketDoubleClick::onReceive | +0
22:46:DEBUG:>>         5580     |  6 |   CClient::Event_DoubleClick | +0
22:46:DEBUG:>>         5580     |  7 |        CClient::Cmd_Use_Item | +0
22:46:DEBUG:>>         5580     |  8 |   CClient::addContainerSetup | +0
22:46:DEBUG:>>         5580     |  9 |     NetState::endTransaction | +0
22:46:DEBUG:>>         5580     | 10 | NetworkOutput::QueuePacketTransaction | +0
22:46:CRITICAL:"Access Violation" (0xfffeb0e8), in SUB: NetworkInput::Message::ProcessMessage()
22:46:DEBUG:b:Parsing Packet len=5 id=0x06 [2015/03/18 22:46:03]
        0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F
       -- -- -- -- -- -- -- --  -- -- -- -- -- -- -- --
0000   06 40 00 9f 23                                    .@..#
22:46:DEBUG:__ thread (5580) __ |  # | _____ function _____________ | ticks passed from previous function start ______
22:46:DEBUG:>>         5580     |  0 |         NetworkManager::tick | +0
22:46:DEBUG:>>         5580     |  1 |          NetworkThread::tick | +0
22:46:DEBUG:>>         5580     |  2 | NetworkOutput::processOutput | +16 <-- exception catch point (below is guessed and could be incorrect!)
22:46:DEBUG:>>         5580     |  3 | NetworkOutput::processPacketQueue | +0
22:46:DEBUG:>>         5580     |  4 |    NetworkOutput::sendPacket | +0
22:46:DEBUG:>>         5580     |  5 | NetworkOutput::sendPacketData | +0
22:46:DEBUG:>>         5580     |  6 |      CQueueBytes::AddNewData | +0
22:46:DEBUG:>>         5580     |  7 |  CQueueBytes::AddNewDataLock | +0


What Can be?

[Image: 2hy9q0y.png]
(This post was last modified: 03-19-2015 12:38 PM by Lazarus.)
03-19-2015 11:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: network and exception problems
I got this right now, not sure what it is...

Code:
00:19:DEBUG:__ thread (4640) __ |  # | _____ function _____________ | ticks passed from previous function start ______
00:19:DEBUG:>>         4640     |  0 |               CWorld::OnTick | +0
00:19:DEBUG:>>         4640     |  1 |              CSector::OnTick | +47
00:19:DEBUG:>>         4640     |  2 |                CChar::OnTick | +0
00:19:DEBUG:>>         4640     |  3 |           CChar::OnTickEquip | +0
00:20:DEBUG:>>         4640     |  4 |                CItem::OnTick | +0
00:20:DEBUG:>>         4640     |  5 |             CItem::OnTrigger | +0
00:20:DEBUG:>>         4640     |  6 |  CScriptObj::OnTriggerScript | +0
00:20:DEBUG:>>         4640     |  7 |  CScriptObj::OnTriggerRunVal | +0
00:20:DEBUG:>>         4640     |  8 |     CScriptObj::OnTriggerRun | +0
00:20:DEBUG:>>         4640     |  9 |     CScriptObj::OnTriggerRun | +0
00:20:DEBUG:>>         4640     | 10 |     CScriptObj::OnTriggerRun | +0
00:20:DEBUG:>>         4640     | 11 |     CScriptObj::OnTriggerRun | +0
00:20:DEBUG:>>         4640     | 12 |   CScriptTriggerArgs::r_Verb | +0
00:20:DEBUG:>>         4640     | 13 |                CChar::r_Verb | +0
00:20:DEBUG:>>         4640     | 14 |         CChar::OnSpellEffect | +0
00:20:DEBUG:>>         4640     | 15 |    CChar::Spell_Resurrection | +0
00:20:DEBUG:>>         4640     | 16 |             CChar::OnTrigger | +0
00:20:DEBUG:>>         4640     | 17 |  CScriptObj::OnTriggerScript | +0
00:20:DEBUG:>>         4640     | 18 |  CScriptObj::OnTriggerRunVal | +0
00:20:DEBUG:>>         4640     | 19 |     CScriptObj::OnTriggerRun | +0
00:20:DEBUG:>>         4640     | 20 | CScriptObj::OnTriggerForLoop | +390
00:20:DEBUG:>>         4640     | 21 |     CScriptObj::OnTriggerRun | +7550
00:20:DEBUG:>>         4640     | 22 |        CScriptObj::ParseText | +0
00:20:DEBUG:>>         4640     | 23 |            CChar::r_WriteVal | +0 <-- exception catch point (below is guessed and could be incorrect!)
00:20:CRITICAL:(E_Events_Players.scp,1207)"Access Violation" (0xea63), in CChar::WriteVal()
00:20:DEBUG:command 'ISPLAYER' ret '' [00000000]

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
03-20-2015 04:42 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: network and exception problems
we need a better description to check if there's something wrong (maybe a screenshot, or what exactly you have done to get these errors)

do you had clicked on any item? any custom behavior on @Click / @ItemClick triggers?
try enable/disable COMBAT_ELEMENTAL_ENGINE / MAGICF_OSIFORMULAS to check if it can fix these errors
03-20-2015 05:59 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: network and exception problems
I'm not using the new combat flags..
Yes I have custom @click and @itemclick but its not the cause.
The problem occurred when:

@Resurrect
FORCHARS 18
IF (<ISPLAYER>)
..
ENDIF
ENDFOR

Basicaly, don't know why in the hell <ISPLAYER> returned the error because never happened AND the for loop is for chars, so returns 0 or 1.

But I improved the code and shouldn't give me error.

Anyway, I need your contact Coruja, I want to ask you something.

Thanks

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
03-20-2015 08:27 AM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #5
RE: network and exception problems
(03-20-2015 05:59 AM)Coruja Wrote:  we need a better description to check if there's something wrong (maybe a screenshot, or what exactly you have done to get these errors)

do you had clicked on any item? any custom behavior on @Click / @ItemClick triggers?
try enable/disable COMBAT_ELEMENTAL_ENGINE / MAGICF_OSIFORMULAS to check if it can fix these errors

1. I will put a album from imgur with the errors.
2. How to reproduce the error: When I cast some earthquakes or I put some magical cretures attacking an another NPC [or player] (with Magic) then I got this errors.
3. Yes, I have a custom Click and ItemClick but I'm not clicking anything when I cast.
4. Tried with Combat_Elem_engine, and magicf_osiformulas and still happening.


http://imgur.com/a/MhAme

EDIT: took out the events of players and NPC's with the Itemclick and ItemDclick behaviour. Still errors...
EDIT2: still happening with default script folder 56c. So... I guess... Is a bug Tongue

[Image: 2hy9q0y.png]
(This post was last modified: 03-20-2015 02:39 PM by Lazarus.)
03-20-2015 02:13 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #6
RE: network and exception problems
@Lazarus:
I've tried with 20 balrons and 10 lichs casting me constantly for over 10 minutes and casting earthquakes to them from time to time and had no errors, however these errors are related to item dclick and container opening which makes me guess this could be related to opening a now unexisting container? which is weird because execution must be stopped first.

@Extreme
Give a full detailed code example, don't let it be at our imaginations ...
03-20-2015 06:30 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #7
RE: network and exception problems
(03-20-2015 06:30 PM)XuN Wrote:  @Lazarus:
I've tried with 20 balrons and 10 lichs casting me constantly for over 10 minutes and casting earthquakes to them from time to time and had no errors, however these errors are related to item dclick and container opening which makes me guess this could be related to opening a now unexisting container? which is weird because execution must be stopped first.

@Extreme
Give a full detailed code example, don't let it be at our imaginations ...

o.O

Look I do this:

-New Folder with Sphere REV 2219 (defaults scripts, default system)
-fresh sphere.ini
-put the ip in serv...

still buggs.
[Add some many ettins and cast earthquake]

EDIT: FOUND IT!

Is when you try to open some corpses! (and when NPC's try too) (This is the Dclick that you talk about)
Tested in a FULL FRESH SPHERE REV 2219


@XuN: You didn't found it because I had the Auto-Open Corpse from UOStream ticked. Now I tried again, without and nothing happends, then, I tried to open quickly corpses and POOOF! bug bugbugbug

[Image: 2hy9q0y.png]
(This post was last modified: 03-21-2015 12:29 AM by Lazarus.)
03-21-2015 12:04 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #8
RE: network and exception problems
UPDATE: I guess is when you try to open the corpse and you don't have the distance enought!

UPDATE2: Can be that is only with Client 7.0.10.3 o.O? fuck.

UPDATE3: Yes. Is my client 7.0.10.3. The strange thing is that is the default one o.O

[Image: 2hy9q0y.png]
(This post was last modified: 03-21-2015 05:26 AM by Lazarus.)
03-21-2015 05:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #9
RE: network and exception problems
probably it's related to the "open container" packet, OSI changed this packet on HS clients >= 7.0.9.0 and its a bit tricky to make it work on both classic clients pre/past 7.0.9.0 + enhanced clients at the same time

did you get any error using clients < 7.0.9.0?

EDIT: confirmed, this problem occours on clients post-7.0.9 but not on pre-7.0.9. So maybe the problem is really this packet change on clients > 7.0.9.0
(This post was last modified: 03-21-2015 01:06 PM by Coruja.)
03-21-2015 12:23 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #10
RE: network and exception problems
I don't have such programs, you can try to change ASSERT(pContainer); in addContainerSetup() to if (!pContainer) return false; and see if its still happening? just to be sure its not aiming at one unexisting (at this moment) container.
03-21-2015 06:05 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)