[SOLVED] Unexpected program state

I’ve tried to process the images separately: It works
I’ve tried to process the laser data saparately: It works

However when I mix them it throws that error.
This is what I did:

  1. Change the settings to the ones you usually suggest
  2. import LPS
  3. import Images
  4. Run alignment.