when i add new tileset, set margin 1px, the error occurred
It means that the image you chose is smaller than the width/height of a single tile plus the margin, so it does not manage to cut any full tiles out of the image.
i see, thank you very much