They were handed a second code violation by chair umpire Aurelie Tourte when Cuevas smashed a ball out of the court in frustration after two double faults.
A supervisor had to be called, with Marray and Shamasdin progressing to the fourth round with a 6-3 4-6 6-4 3-6 14-12 win when play resumed 10 minutes later.
Marray, who with Shamasdin was made to wait on court while their opponents refused to compete, sympathised with Cuevas' plight to gain an extra bathroom break.
He said the incident was unwelcome although he wasn't sure of the exact details.
"Something to do with a can, something to do with bathroom breaks. I don't know what happened," Marray said.
"I don't think it's ever nice to see.
"You have to respect the officials regardless of whatever happened in the match."
Shamasdin believed Tourte could have handled the situation better.
"I don't think the chair umpire really had the match controlled," Shamasdin said.
"She made a few mistakes early on at both ends. We were all on her and she was definitely flustered. I don't think she handled it correctly."
-AAP