Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debug error on console
Author Message
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 8 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #1
Debug error on console
Our server just crash 2 consecutive days with this debug:

Where I can find the value of 3044?

THX!

We have this error:
Code:
19:35:DEBUG:__ thread (3044) __ |  # | _____________ function _____________ | __ ticks passed from previous function start __
19:35:DEBUG:>>         3044     |  0 |                        CChar::OnTick | +0
19:35:DEBUG:>>         3044     |  1 |                    CChar::Skill_Done | +0
19:35:DEBUG:>>         3044     |  2 |                   CChar::Skill_Stage | +0
19:35:DEBUG:>>         3044     |  3 |                CChar::Skill_Fighting | +0
19:35:DEBUG:>>         3044     |  4 |                  CChar::Fight_HitTry | +0
19:35:DEBUG:>>         3044     |  5 |                     CChar::Fight_Hit | +0
19:35:DEBUG:>>         3044     |  6 |                  CChar::OnTakeDamage | +0
19:35:DEBUG:>>         3044     |  7 |                     CChar::OnTrigger | +0
19:35:DEBUG:>>         3044     |  8 |          CScriptObj::OnTriggerScript | +0
19:35:DEBUG:>>         3044     |  9 |          CScriptObj::OnTriggerRunVal | +0
19:35:DEBUG:>>         3044     | 10 |             CScriptObj::OnTriggerRun | +0
19:35:DEBUG:>>         3044     | 11 |             CScriptObj::OnTriggerRun | +0
19:35:DEBUG:>>         3044     | 12 |         CScriptObj::OnTriggerForLoop | +0
19:35:DEBUG:>>         3044     | 13 |             CScriptObj::OnTriggerRun | +15

It continue to | 2220 | and this

19:35:CRITICAL:(Tooltips.scp,4)"Stack Overflow" (0x757ab42f), in CCharPlayer::WriteVal()

https://www.uocryptonite.com/
01-09-2020 11:06 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: #2
RE: Debug error on console
Are you using something that can cause some conflict with internal functions inside combat triggers like @HitTry, @Hit, @GetHit, etc?

because this line
Code:
CScriptObj::OnTriggerRun | +15
means that the internal script parser is calling an trigger, and the +15 means that sphere is already stuck doing this same action for 15 ticks

and this line
Code:
CCharPlayer::WriteVal()
means that the script is setting an property or calling some function on an player character

So this error is being caused by script, probably something wrong inside some combat trigger
01-13-2020 04:34 PM
Find all posts by this user Like Post Quote this message in a reply
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 8 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #3
RE: Debug error on console
Yes we using lot of @HitTry, @Hit, @GetHit, with our custom weapon system.
You gave us a BIG hints! THX


But how you know all these debug code?

There is some documentation for all these code?

Thx.

https://www.uocryptonite.com/
01-16-2020 05:13 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: #4
RE: Debug error on console
These lines are just printing the name/order of the internal functions being called from C++ source code

You can find all these functions on the source code, like this function here
Code:
19:35:DEBUG:>>         3044     | 13 |             CScriptObj::OnTriggerRun | +15
https://github.com/Sphereserver/Source/b...j.cpp#L532

So if you know that the error is thrown after this function or know if sphere is stuck on this same function for many ticks, it means the problem is here on this function. And "OnTriggerRun" is the internal function to read triggers from scripts, but reading other lines of the console exception you can see that some skills and combat functions are also called, so probably it's something related script triggers called on combat (@HitTry, @Hit, @GetHit, etc)
01-16-2020 09:03 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Forum Jump:


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