'What could cause a Zebra Printer to print "0/30" repeatedly instead of the image provided in a DG command?

I am sending images of the labels I want printed, one at a time, to a ZD421. After around 100 were printed what was supposed to be a single label ended up being a stream of zeroes, with "30" under each, spread over several labels.

Print result

Close up

The image sent was of a barcode with various related info in text around it.

Expected result

The ZPL sent for the labels looks like the following and the socket is closed after each is sent.

~DGR:label,40804,101,000...000(81608 characters of data)
^XA
^PON
^LH0,0
^LS0
^LL404
^PW808
^FO0,0
^XGR:label,1,1
^FS
^XZ

Restarting the printer fixed the problem and repeating the request printed the expected label.

My assumption was that reusing the name, "label", would overwrite previously sent graphics and there would be no memory management required. Is there something I should be sending to clean up after recalling the graphic?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source