Many of the linear algebra problems in WeBWorK involve entering a matrix using syntax like [[a,b],[c,d]].
It is quite common for students to miss a bracket when entering a matrix in this syntax.
Instead of getting a standard error/warning message like, "There is a problem with your matrix syntax", students get an error page with content similar to below. Since I run our server, that means I'm currently getting a steady stream of emails from students in another instructor's class with complaints like "WeBWorK keeps crashing", or "online homework is broken".
Any way we can beef up the matrix code to give students a useful error message? Right now they get something like this:
This is the error record identifier -
This is the error messages -
trapped by operation mask at
/usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm line 5. Compilation failed
in require at /usr/lib/x86_64-linux-gnu/perl/5.26/Encode/Alias.pm
This is the call stack –
- in WeBWorK::PG::Local::new called at line 51 of /opt/webwork/webwork2/lib/WeBWorK/PG.pm
- in WeBWorK::PG::new called at line 752 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm
- in WeBWorK::ContentGenerator::Problem::pre_header_initialize called at line 213 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
- in WeBWorK::ContentGenerator::go called at line 386 of /opt/webwork/webwork2/lib/WeBWorK.pm