Grafana Panic when expression used

Hi all.

I’m trying to use expression over a MS SQL Server. With builded version 8.4.3/8.4.4 available for download no problem at all (expression is correctly parsed and executed) while I cannot use it if I compile myself grafana from source (both in Windows11 and Ubuntu): i get a “runtime error: invalid memory address or nil pointer dereference” and grafana crashes.This problem happens only if I create/is already created an expression (e.g. SQLSRV queries A and B, expr $A - $B)

Has anyone encountered the same problem?


If both Queries outputs are from the same server and float / int I presume, why don’t you do the logic in MSSQL in one query in SSMS first and then Grafana, could be a random calculation of your data that’s causing an issue

I figured out what the issue was. Building grafana with the latest version of Go (1.18) gives error, while no problems occur when Go1.17.x is used.

1 Like

This was recently fixed in both 8.5.x and 8.4.x. I finally updated to 8.5.2 and confirmed the problem is gone.

1 Like