Register for your free account! | Forgot your password?

You last visited: Today at 17:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Deadlock in logs

Discussion on Deadlock in logs within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2018
Posts: 33
Received Thanks: 11
Deadlock in logs

Can't seem to figure out why this issue is happening which is causing a mass dc/rollback at random times. Here are the logs


Any help at this point would be appreciated and yes ive looked on epvp for fixes and none of them are working
Phzyx is offline  
Old 03/22/2019, 14:37   #2
 
elitonfarol9's Avatar
 
elite*gold: 0
Join Date: Oct 2016
Posts: 59
Received Thanks: 36
Try this :


USE [PS_GameData]
GO

/****** Object: StoredProcedure [dbo].[usp_Save_Char_Info_E] Script Date: 03/22/2019 10:40:12 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO



ALTER Proc [dbo].[usp_Save_Char_Info_E]

@CharID int,
@Level int, @Point smallint, @ smallint, @ smallint,
@Dex smallint,
@Rec smallint,
@Int smallint, @ smallint,
@Luc smallint,
@Hp smallint,
@Mp smallint,
@Sp smallint,
@Map smallint,
@Dir smallint,
@Exp int,
@Money int,
@Posx real,
@Posy real,
@Posz real,
@Hg int,
@Vg int,
@Cg int,
@Og int,
@Ig int,
@K1 int = null,
@K2 int = null,
@K3 int = null,
@K4 int = null,
@KillLevel tinyint,
@DeadLevel tinyint

AS

SET NOCOUNT ON

DECLARE @ID int
SET @ID = 1

UPDATE Chars
SET [Level] = @Level, StatPoint = @Point, SkillPoint = @,
[Str] = @, dex = @Dex, Rec = @Rec, [int] = @Int, Wis = @, Luc = @Luc,
HP = @Hp, Mp = @Mp, Sp = @Sp,
Map = @Map, dir = @Dir, [exp] = @Exp, [money] = @Money,
PosX = @Posx, PosY = @PosY, PosZ = @PosZ, hg = @Hg, vg = @Vg, cg = @Cg, og = @Og, ig = @Ig,
KillLevel=@KillLevel, DeadLevel=@DeadLevel,LeaveDate=GETDATE()
WHERE CharID = @CharID

IF( (@K1 IS NOT NULL) AND (@K2 IS NOT NULL) AND (@K3 IS NOT NULL) AND (@K4 IS NOT NULL))
BEGIN
UPDATE Chars SET K1=@K1, K2=@K2, K3=@K3, K4=@K4 WHERE CharID=@CharID
END

--EXEC PS_USERDB01.PS_UserData_IDC_T3.dbo.usp_Update_Char sPVPData_E @ID = @ID, @CharID = @CharID, @K1 = @K1, @K2 = @K2, @K3 = @K3, @K4 = @K4

IF(@@ERROR = 0 AND @@ROWCOUNT = 1)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END

SET NOCOUNT OFF


GO
elitonfarol9 is offline  
Thanks
1 User
Old 03/22/2019, 15:11   #3
 
elite*gold: 0
Join Date: Jul 2018
Posts: 33
Received Thanks: 11
Quote:
Originally Posted by elitonfarol9 View Post
Try this :


USE [PS_GameData]
GO

/****** Object: StoredProcedure [dbo].[usp_Save_Char_Info_E] Script Date: 03/22/2019 10:40:12 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO



ALTER Proc [dbo].[usp_Save_Char_Info_E]

@CharID int,
@Level int, @Point smallint, @ smallint, @ smallint,
@Dex smallint,
@Rec smallint,
@Int smallint, @ smallint,
@Luc smallint,
@Hp smallint,
@Mp smallint,
@Sp smallint,
@Map smallint,
@Dir smallint,
@Exp int,
@Money int,
@Posx real,
@Posy real,
@Posz real,
@Hg int,
@Vg int,
@Cg int,
@Og int,
@Ig int,
@K1 int = null,
@K2 int = null,
@K3 int = null,
@K4 int = null,
@KillLevel tinyint,
@DeadLevel tinyint

AS

SET NOCOUNT ON

DECLARE @ID int
SET @ID = 1

UPDATE Chars
SET [Level] = @Level, StatPoint = @Point, SkillPoint = @,
[Str] = @, dex = @Dex, Rec = @Rec, [int] = @Int, Wis = @, Luc = @Luc,
HP = @Hp, Mp = @Mp, Sp = @Sp,
Map = @Map, dir = @Dir, [exp] = @Exp, [money] = @Money,
PosX = @Posx, PosY = @PosY, PosZ = @PosZ, hg = @Hg, vg = @Vg, cg = @Cg, og = @Og, ig = @Ig,
KillLevel=@KillLevel, DeadLevel=@DeadLevel,LeaveDate=GETDATE()
WHERE CharID = @CharID

IF( (@K1 IS NOT NULL) AND (@K2 IS NOT NULL) AND (@K3 IS NOT NULL) AND (@K4 IS NOT NULL))
BEGIN
UPDATE Chars SET K1=@K1, K2=@K2, K3=@K3, K4=@K4 WHERE CharID=@CharID
END

--EXEC PS_USERDB01.PS_UserData_IDC_T3.dbo.usp_Update_Char sPVPData_E @ID = @ID, @CharID = @CharID, @K1 = @K1, @K2 = @K2, @K3 = @K3, @K4 = @K4

IF(@@ERROR = 0 AND @@ROWCOUNT = 1)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END

SET NOCOUNT OFF


GO
We tried this originally and thought the issue has been resolved, but sadly it wasnt. So we put in a new procedure then the error just move else where. So we are currently trying a whole new db to see if that could resolve it. Thanks though <3
Phzyx is offline  
Reply


Similar Threads Similar Threads
[Request] Help me Please with a Deadlock
08/27/2011 - Rappelz Private Server - 0 Replies
Hello all, i have a big Problem with my Database. Heres the Error 2011/08/27 03:08:08 DB COM ERROR(Thread:2, HRESULT:80004005, GUID:0C733A63-2A1C-11CE-ADE5-00AA0044773D) : DB_UpdateItem(dbo.smp_update_item: @IN_SID: 501809) : Transaction (Process ID 57) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction. 2011/08/27 03:12:45 DB COM ERROR(Thread:2, HRESULT:80004005,...
Herlock server deadlock and cpu problem
08/01/2011 - Rappelz - 1 Replies
http://img217.imageshack.us/img217/5268/87841241.j pg
Rappelz DeadLock problem
08/01/2011 - Rappelz - 4 Replies
Hello I have a problem ... DeadLock I just can not fix it if you can help me how to fix it thank you write to me on the forum Buxx
Unavoidable Deadlock
05/14/2011 - CO2 Private Server - 0 Replies
#edit: Obviously avoidable because it's fixed now. Thanks to everyone that helped us as a team figure out what my problem was. 生活和学习 (Live and learn). Sincerely, Fang



All times are GMT +1. The time now is 17:09.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.