I don't know if this is related --
?
But mag() returns a complex number in .AC analysis.? Perhaps round() can only take a real argument.? Giving round() a complex argument might be the cause of both problems - the crash in earlier versions, and returning 0 in the latest version.
?
Referring to the Help page, it implies that round(x) was perhaps able to accept complex arguments, originally.? It is not listed as one of the exceptions that does not accept complex data.? Perhaps it had that ability but lost it somewhere along the way, while LTspice evolved, and nobody reported it, or someone did but it was not yet taken up as an action item to fix.? Have you reported it to ADI?
?
By the way, the results you pasted into the message appear to have included some non-ASCII text (0?¡ã), which probably did not look like that originally.
?
Andy
?