Well I defined a function to parse a 1D array as though it were 2D, but I called it wrong. After fixing it (actually just removing it), it worked.