SegFault (and potential for better error message) when using DebugResidualAux #27633
Labels
C: Framework
P: normal
A defect affecting operation with a low possibility of significantly affects.
T: defect
An anomaly, which is anything that deviates from expectations.
Bug Description
I attempted to use
DebugResidualAux
(albeit incorrectly) and it led to a Seg Fault, but there was no useful error message to indicate why. Here's what I got:I think there's a chance here to print something to help future users.
The cause of the Seg Fault is that the
Variable
I attempted to useDebugResidualAux
on was aFIRST LAGRANGE
, but theAuxVariable
I made to store the debug residual wasCONSTANT MONOMIAL
. When I changed myAuxVariable
to match the same type as my variable, the simulation ran.Maybe related to #7800 but this is still open and has different syntax that caused it? Could also add more info the the docs to prevent users from doing this.
Steps to Reproduce
Impact
I was able to get it fixed quickly thanks to @joshuahansel, but I fear others would have to recompile in debug mode and do some digging to get to the bottom on their own.
[Optional] Diagnostics
No response
The text was updated successfully, but these errors were encountered: