You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an error when working on #628. It was when I tried to set the region attribute for the input4MIPs variable to a string made from a list that I got the "illegal instruction" error. It turned out that CMOR was trying to create an error message that said that the string used for the attribute value was not found in a regular expression composed of all the regions listed in the input4MIPs CV file. This causes a problem since there are enough regions in that list to make the regular expression string exceed the maximum string length of CMOR. The code that produces this message is below.
"The attribute \"%s\" could not be validated. \n! "
"The current input value is "
"\"%s\" which is not valid \n! "
"Valid values must match the regular expression:"
"\n! \t[%s] \n! \n! "
"Check your Control Vocabulary file \"%s\".\n! ",
szKey, szValue, szValids, CV_Filename);
cmor_handle_error(msg, CMOR_NORMAL);
cmor_pop_traceback();
return (-1);
}
This issue is related to the bigger issue of the maximum string length being only 1024 as listed in #530. However, rather than tackle that larger issue here, I will just find a solution to handle errors for not finding attribute values in large lists in the CV. Maybe just mention which attribute in the CV where it couldn't find the values.
The text was updated successfully, but these errors were encountered:
What would the likely investment be to tackle and solve #530? It seems like that is something that we may continue to trip over. I wonder if there is any possibility of initializing a dynamic variable rather than these fixed size variables instead?
I encountered an error when working on #628. It was when I tried to set the
region
attribute for the input4MIPs variable to a string made from a list that I got the "illegal instruction" error. It turned out that CMOR was trying to create an error message that said that the string used for the attribute value was not found in a regular expression composed of all the regions listed in the input4MIPs CV file. This causes a problem since there are enough regions in that list to make the regular expression string exceed the maximum string length of CMOR. The code that produces this message is below.cmor/Src/cmor_CV.c
Lines 2008 to 2031 in e38ba87
This issue is related to the bigger issue of the maximum string length being only 1024 as listed in #530. However, rather than tackle that larger issue here, I will just find a solution to handle errors for not finding attribute values in large lists in the CV. Maybe just mention which attribute in the CV where it couldn't find the values.
The text was updated successfully, but these errors were encountered: