Giter VIP home page Giter VIP logo

Comments (7)

sekaiwish avatar sekaiwish commented on September 28, 2024 1

This error culminates from line 154 of handlers_festa.

id, start := uint32(0xDEADBEEF), uint32(0)
rows, _ := s.server.db.Queryx("SELECT id, (EXTRACT(epoch FROM start_time)::int) as start_time FROM events WHERE event_type='festa'")
for rows.Next() {
rows.Scan(&id, &start)
}

There is nothing evident here that would affect the age of a character since this would effectively do the same thing for any character connecting to the server, do you have entries under public.events in pgSQL?

from erupe.

sekaiwish avatar sekaiwish commented on September 28, 2024

This is not enough information to be able to diagnose any sort of server-side issue.
Please enable LogInboundMessages and LogOutboundMessages in the config and post relevant server output alongside your issue.

from erupe.

halexys avatar halexys commented on September 28, 2024

[Server] -> []
Opcode: MSG_SYS_ACK
Data [14 bytes]:
00000000 00 12 01 ff 00 00 00 00 00 00 00 00 00 00 |..............|

[] -> [Server]
Opcode: MSG_SYS_LOGIN
Data [45 bytes]:
00000000 00 14 01 ff 00 01 00 00 00 c7 ff ff ff ff 00 00 |................|
00000010 00 0b 00 00 00 c7 00 00 00 11 69 72 4c 44 43 69 |..........irLDCi|
00000020 71 5a 62 59 42 64 42 54 4a 68 00 00 10 |qZbYBdBTJh...|

[Server] -> []
Opcode: MSG_SYS_UPDATE_RIGHT
Data [40 bytes]:
00000000 00 58 00 00 00 00 00 00 00 0e 00 03 00 00 00 03 |.X..............|
00000010 00 00 70 db 59 f0 00 02 00 00 70 db 59 f0 00 01 |..p.Y.....p.Y...|
00000020 00 00 00 00 00 00 00 00 |........|

[Server] -> []
Opcode: MSG_SYS_ACK
Data [14 bytes]:
00000000 00 12 01 ff 00 01 00 00 00 00 55 e5 c2 03 |..........U...|

[Server] -> []
Opcode: MSG_SYS_UPDATE_RIGHT
Data [40 bytes]:
00000000 00 58 00 00 00 00 00 00 00 0e 00 03 00 00 00 03 |.X..............|
00000010 00 00 70 db 59 f0 00 02 00 00 70 db 59 f0 00 01 |..p.Y.....p.Y...|
00000020 00 00 00 00 00 00 00 00 |........|

[] -> [Server]
Opcode: MSG_MHF_LOADDATA
Data [8 bytes]:
00000000 00 61 01 ff 00 02 00 10 |.a......|

[Server] -> []
Opcode: MSG_SYS_ACK
Data [13876 bytes]:
(Too long!)

[BigBoSs] -> [Server]
Opcode: MSG_MHF_LIST_MEMBER
Data [10 bytes]:
00000000 00 62 01 ff 00 03 01 00 00 10 |.b........|

[Server] -> [BigBoSs]
Opcode: MSG_SYS_ACK
Data [14 bytes]:
00000000 00 12 01 ff 00 03 01 00 00 04 00 00 00 00 |..............|

[BigBoSs] -> [Server]
Opcode: MSG_MHF_INFO_FESTA
Data [12 bytes]:
00000000 00 b8 01 ff 00 04 00 00 00 00 00 10 |............|

[BigBoSs]Recovered from panic runtime error: invalid memory address or nil pointer dereference

Thats the log with LogInboundMessages and LogOutboundMessages enabeled

from erupe.

Tsugami avatar Tsugami commented on September 28, 2024

"BigBosSs" is your nick?

your message doesn't have enough content to find the problem

// This shouldn't be needed, but it's better to recover and let the connection die than to panic the server.
defer func() {
if r := recover(); r != nil {
fmt.Printf("[%s]", s.Name)
fmt.Println("Recovered from panic", r)
}
}()

comment on the recover and send the logs here again. Whenever I need to debug in my server, I remove recover. otherwise it will always return invalid memory address or nil pointer dereference

from erupe.

halexys avatar halexys commented on September 28, 2024

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x85d21e]

goroutine 51 [running]:
erupe-ce/server/channelserver.handleMsgMhfInfoFesta(0xc0002841a0, {0xa9cea0, 0xc000296170})
D:/Games/MHFZ_Test/Launcher/Erupe-main/server/channelserver/handlers_festa.go:154 +0x1be
erupe-ce/server/channelserver.(*Session).handlePacketGroup(0xc0002841a0, {0xc000296150, 0xc, 0x10})
D:/Games/MHFZ_Test/Launcher/Erupe-main/server/channelserver/sys_session.go:211 +0x1d2
erupe-ce/server/channelserver.(*Session).recvLoop(0xc0002841a0)
D:/Games/MHFZ_Test/Launcher/Erupe-main/server/channelserver/sys_session.go:176 +0x46
erupe-ce/server/channelserver.(*Session).Start.func1()
D:/Games/MHFZ_Test/Launcher/Erupe-main/server/channelserver/sys_session.go:97 +0x15e
created by erupe-ce/server/channelserver.(*Session).Start
D:/Games/MHFZ_Test/Launcher/Erupe-main/server/channelserver/sys_session.go:92 +0x5b

This is the log without the recover function.

from erupe.

halexys avatar halexys commented on September 28, 2024

oh, thas is it, i dont have public.events cuz it doesn't appear in the patch-chema or migrations

from erupe.

sekaiwish avatar sekaiwish commented on September 28, 2024

public.events was added using the feature/festa schema

from erupe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.