Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: current canary/otservbr-global master branches crash server on attacking monster #277

Closed
1 task done
ghost opened this issue Mar 22, 2022 · 14 comments
Closed
1 task done

Comments

@ghost
Copy link

ghost commented Mar 22, 2022

What happened?

current canary/otservbr-global master branches crash server on attacking monster

How to Reproduce?

attack any monster

Relevant log output

2022-03-22 20:23:12 -  scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/others/boss_reward_chest.lua:callback]
2022-03-22 20:23:12 -  timerEvent: []
2022-03-22 20:23:12 -   callbackId:[]
2022-03-22 20:23:12 -  function: [Scripts Interface]
2022-03-22 20:23:12 -  error [Creature not found
2022-03-22 20:23:12 -  stack traceback:] 
2022-03-22 20:23:12 -  [2022-22-03 20:23:12.032] [error] Lua script error: 
2022-03-22 20:23:12 -  scriptInterface: [Scripts Interface]
2022-03-22 20:23:12 -  scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/quests/cults_of_tibia/leiden_heal.lua:callback]
2022-03-22 20:23:12 -  timerEvent: []
2022-03-22 20:23:12 -   callbackId:[]
2022-03-22 20:23:12 -  function: [Scripts Interface]
2022-03-22 20:23:12 -  error [Creature not found
2022-03-22 20:23:12 -  stack traceback:] 
2022-03-22 20:23:12 -  [2022-22-03 20:23:12.032] [error] Lua script error: 
2022-03-22 20:23:12 -  scriptInterface: [Scripts Interface]
2022-03-22 20:23:12 -  scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/quests/cults_of_tibia/pillar_health.lua:callback]
2022-03-22 20:23:12 -  timerEvent: []
2022-03-22 20:23:12 -   callbackId:[]
2022-03-22 20:23:12 -  function: [Scripts Interface]
2022-03-22 20:23:12 -  error [Creature not found
2022-03-22 20:23:12 -  stack traceback:]

Attach any relevant file

No response

Version

12.x (Default)

What OS are you seeing the problem on?

Linux

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dudantas
Copy link
Contributor

Try use this fix: b79a612

@dudantas
Copy link
Contributor

Please come back with the answer if this commit fix it.

@ghost
Copy link
Author

ghost commented Mar 22, 2022

It's merged into master, I downloaded latest version master 2 hours ago and crash occurs

@dudantas
Copy link
Contributor

dudantas commented Mar 22, 2022

In that case you need to give more details. How do we reproduce the crash? Just playing the log there doesn't help much!

@ghost
Copy link
Author

ghost commented Mar 22, 2022

it happens after attacking monster, I checked on 2 characters - one attacking sandcrawler, other one attacking earth elemental, both caused instant server crash

@dudantas
Copy link
Contributor

image
No crash.

@ghost
Copy link
Author

ghost commented Mar 22, 2022

I'll check again, and update on more conditions

@ghost
Copy link
Author

ghost commented Mar 22, 2022

[2022-22-03 21:39:16.357] [error] Lua script error: 
scriptInterface: [Scripts Interface]
scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/others/boss_reward_chest.lua:callback]
timerEvent: []
 callbackId:[]
function: [Scripts Interface]
error [Creature not found
stack traceback:] 
[2022-22-03 21:39:16.357] [error] Lua script error: 
scriptInterface: [Scripts Interface]
scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/quests/cults_of_tibia/leiden_heal.lua:callback]
timerEvent: []
 callbackId:[]
function: [Scripts Interface]
error [Creature not found
stack traceback:] 
[2022-22-03 21:39:16.357] [error] Lua script error: 
scriptInterface: [Scripts Interface]
scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/quests/cults_of_tibia/pillar_health.lua:callback]
timerEvent: []
 callbackId:[]
function: [Scripts Interface]
error [Creature not found
stack traceback:] 
Segmentation fault (core dumped)

Steps I did:
Logged into god, killed 2 earth elementals, nothing happened
Logged in into regular character, killed 4 sandcrawlers, nothing
Rolled for prey and chose random one
Killed 2 more earth elementals with regular character - crashed

@dudantas
Copy link
Contributor

Can you get the crash log using debug?

@ghost
Copy link
Author

ghost commented Mar 22, 2022

Could you explain to me how to run it debug?

@omeranha
Copy link
Contributor

Could you explain to me how to run it debug?

which weapon you used to attack the monster?

@ghost
Copy link
Author

ghost commented Mar 22, 2022

exori flam and wand of dragonbreath

@ghost
Copy link
Author

ghost commented Mar 22, 2022

debug log:

[2022-23-03 00:49:31.541] [file /home/ubuntu/server69/bagno_canary/src/lua/functions/lua_functions_loader.cpp:105] [func reportError] [thread 174348] [error] Lua script error: 
scriptInterface: [Scripts Interface]
scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/others/boss_reward_chest.lua:callback]
timerEvent: []
 callbackId:[]
function: [Scripts Interface]
error [Creature not found
stack traceback:] 
[2022-23-03 00:49:31.541] [file /home/ubuntu/server69/bagno_canary/src/lua/functions/lua_functions_loader.cpp:105] [func reportError] [thread 174348] [error] Lua script error: 
scriptInterface: [Scripts Interface]
scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/quests/cults_of_tibia/leiden_heal.lua:callback]
timerEvent: []
 callbackId:[]
function: [Scripts Interface]
error [Creature not found
stack traceback:] 
[2022-23-03 00:49:31.541] [file /home/ubuntu/server69/bagno_canary/src/lua/functions/lua_functions_loader.cpp:105] [func reportError] [thread 174348] [error] Lua script error: 
scriptInterface: [Scripts Interface]
scriptId: [/home/ubuntu/server69/bagno_live/data/scripts/creaturescripts/quests/cults_of_tibia/pillar_health.lua:callback]
timerEvent: []
 callbackId:[]
function: [Scripts Interface]
error [Creature not found
stack traceback:] 

Thread 2 "canary" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff79ce700 (LWP 174348)]

@ghost
Copy link
Author

ghost commented Mar 23, 2022

revert #278 fixed issue

@ghost ghost closed this as completed Mar 23, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants