The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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: 9 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: 9 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)