-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
jsonEncoder.safeAddString panic #1264
Comments
Hey there,
|
I'm also experiencing the same issue. |
hello,how do you fix this problem?update to the latest version?this error also occurs in our online environment sometimes |
Hi! Any updates on this issue? Got the same panic in our production environment. Details go version:
|
Hey, we're still looking for a repro case to help us debug and fix this issue. Any leads on one would be appreciated! |
Okay, we're trying to reproduce this case locally. Also, as I see, the implementation of |
Got the same
Still trying to catch this case locally. |
zap/zapcore/json_encoder.go
Line 488 in 845ca51
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6e42f8]
goroutine 25244385 [running]:
go.uber.org/zap/zapcore.(*jsonEncoder).safeAddString(0xc0012e5bf0, {0x0, 0x4})
/build/vendor/go.uber.org/zap/zapcore/json_encoder.go:466 +0x58
go.uber.org/zap/zapcore.(*jsonEncoder).AppendString(0xc0012e5bf0, {0x0, 0x4})
/build/vendor/go.uber.org/zap/zapcore/json_encoder.go:267 +0x1f2
go.uber.org/zap/zapcore.(*jsonEncoder).AddString(0xc0005d0ca8, {0x2067ce9, 0xc0012e5bf0}, {0x0, 0x4})
/build/vendor/go.uber.org/zap/zapcore/json_encoder.go:182 +0x45
go.uber.org/zap/zapcore.Field.AddTo({{0x2067ce9, 0x7}, 0xf, 0x0, {0x0, 0x4}, {0x0, 0x0}}, {0x24f1be0, 0xc0012e5bf0})
/build/vendor/go.uber.org/zap/zapcore/field.go:149 +0x74c
go.uber.org/zap/zapcore.addFields({0x24f1be0, 0xc0012e5bf0}, {0xc0012a6380, 0xe, 0x207236c})
/build/vendor/go.uber.org/zap/zapcore/field.go:210 +0xe6
go.uber.org/zap/zapcore.(*jsonEncoder).EncodeEntry(0xc000adbe30, {0x0, {0xc1005e92872d07da, 0x3e5dcd4601bd4, 0x3911600}, {0xc00029e0b0, 0xc}, {0x20a7c71, 0x19}, {0x0, ...}, ...}, ...)
/build/vendor/go.uber.org/zap/zapcore/json_encoder.go:393 +0x671
gopkg.mihoyo.com/takumi/log.zapLogger.write({{0xc00029e0b0, 0xc}, {0xc0009856b0}, {0x24f2860, 0xc000adbe30}, {0x247a798, 0xc000adbe60}}, {0x0, {0xc1005e92872d07da, 0x3e5dcd4601bd4, ...}, ...}, ...)
zap version: v1.18.0
I cannot repeat this case, but this error occurs from time to time in our online environment. I hope to get help
The text was updated successfully, but these errors were encountered: