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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alert rule panic; runtime error: invalid memory address or nil pointer dereference #61304
Comments
@robinkanters Does this same query complete as expected in the explore view? If so, are you able to share a sample of what the return data looks like? |
I can confirm the bug. The Cloudwatch plugin returns no data result as a data frame with a single value. After #55347 that value gets converted to a single value NoData Lines 175 to 176 in 2d20c8d
then when math expression tree is executed, the grafana/pkg/expr/mathexp/exp.go Lines 491 to 517 in 05fd7eb
because functin isNill cannot handle NoData result correctly grafana/pkg/expr/mathexp/funcs.go Lines 100 to 114 in 040ce40
Then that result is provided to unary operator grafana/pkg/expr/mathexp/exp.go Line 124 in 05fd7eb
and in the default branch it tries to call method Type() on the nil, which causes a crash. cc @kylebrandt |
Update from 9.4.0-960xxx to 9.4.0-96993pre caused same error: panic: runtime error: invalid memory address or nil pointer dereference [recovered] How can I resolve this? Thank You. |
Update: Update from 9.4.0-96993pre to version=9.4.0-97045pre didn't solve problem. Is this error somehow in relation with: logger=ngalert.multiorg.alertmanager t=2023-01-18T11:35:46.792823325Z level=error msg="unable to create Alertmanager for org" org=6 error="unable to initialize the notification log component of alerting: proto: wrong wireType = 2 for field Idx" |
@Roberto6969 this is not related. Main seems to be broken (panics when starts with alertmanager configuration that were created by previous version). We're fixing this right now |
@yuri-tceretian Great - I appreciate your effort. |
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
I have the alert rule that I pasted below, if I click the Refresh button, it shows an error popup in the top right, I think this might be the cause. The screenshot below is of the rule with the uid from the stack trace.
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: