In the process of debugging. Compiles, but execution error when trying to extract planes.

Reason: KERN_INVALID_ADDRESS at address: 0x00000005fffefffb
0x00007fff90edd220 in std::string::_Rep::_M_grab ()
(gdb) where