Theres something wrong with your dog
It is "bladder infection" as your dog is showing stones through urine. There can be some other reason as well take your dog to vet. Kidney problems also lead to such type of infection so get its kidneys checked by the doctor.