I've had it happen on boat outdrives, once the edges of the dogs get rounded over they push themselves out of mesh like a cam as soon as you put any power through them, usually causing selector forks to flex or bend, replacement is the only way out, also check the gear it's meshing with as that will be worn too and will soon were a new gear.