-
Notifications
You must be signed in to change notification settings - Fork 416
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
kuiper crash panic: runtime error: index out of range [1] with length 1 #438
Comments
It crashed on me again, this time I wasn't doing anything: goroutine 690 [running]: I had this rule in place when the crash occurred, processing data from the EdgeX Device Virtual service: |
This is a problem which only happens in debug mode. Debug logger is trying to print out the tuple content which may be modified. Golang will issue a panic when printing a mutated map without synchronize it. |
Is there any way to fix this? |
It should be fixed now with the above PR which will be rolled in the next release v0.9.1. |
I was trying to delete a rule and I received this from kuiper in the logs before it crashed. Possibly it was trying to process the delete rule.
panic: runtime error: index out of range [1] with length 1
goroutine 800 [running]:
internal/fmtsort.Sort(0xd55f40, 0xc00041bfc0, 0x195, 0xc000000001)
/usr/local/go/src/internal/fmtsort/sort.go:60 +0x311
fmt.(*pp).printValue(0xc00008c000, 0xd55f40, 0xc00041bfc0, 0x195, 0x76, 0x2)
/usr/local/go/src/fmt/print.go:773 +0xd18
fmt.(*pp).printValue(0xc00008c000, 0xd74460, 0xc00041bfb0, 0x199, 0xc000000076, 0x1)
/usr/local/go/src/fmt/print.go:810 +0x1b45
fmt.(*pp).printValue(0xc00008c000, 0xd6cde0, 0xc00041bfb0, 0x16, 0x76, 0x0)
/usr/local/go/src/fmt/print.go:880 +0x194a
fmt.(*pp).printArg(0xc00008c000, 0xd6cde0, 0xc00041bfb0, 0xc000000076)
/usr/local/go/src/fmt/print.go:716 +0x2b4
fmt.(*pp).doPrintf(0xc00008c000, 0xde8399, 0x1b, 0xc0003ed8e0, 0x2, 0x2)
/usr/local/go/src/fmt/print.go:1030 +0x15b
fmt.Sprintf(0xde8399, 0x1b, 0xc0003ed8e0, 0x2, 0x2, 0xc000139500, 0x7f96c0e016d0)
/usr/local/go/src/fmt/print.go:219 +0x66
github.com/sirupsen/logrus.(*Entry).Logf(0xc000255b90, 0xc000000005, 0xde8399, 0x1b, 0xc0003ed8e0, 0x2, 0x2)
/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:314 +0x7a
github.com/sirupsen/logrus.(*Entry).Debugf(0xc000255b90, 0xde8399, 0x1b, 0xc0003ed8e0, 0x2, 0x2)
/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:323 +0x65
github.com/emqx/kuiper/xstream/nodes.(*SourceNode).Open.func1.1(0xc00009ebe0, 0xc0002f4120, 0xed8080, 0xc0002ea4b0, 0xed8100, 0xc000255b90, 0xc0002324b0, 0xc0003ba178, 0x0)
/go/kuiper/xstream/nodes/source_node.go:134 +0x4e7
created by github.com/emqx/kuiper/xstream/nodes.(*SourceNode).Open.func1
/go/kuiper/xstream/nodes/source_node.go:80 +0x262
The text was updated successfully, but these errors were encountered: