Extra information: moving .config/darktable out of the way works around the problem. Moving the .config/darktable/*.db files back in triggers the bug again, so presumably something is broken with the database. :(