When powering a commandblock with a trapped chest, /playsound will sometimes play the sound when closing the chest as well as when opening the chest.
It also sounds like when you power it with - for instance - a lever, the sound plays twice simultaneously.
To illustrate, here is a video. I was able to reproduce this several times with the setup I show in the video. (CommandBlock output was disabled).
Related issues
Comments


How do you know this is a duplicate? Is it this same bug?
Also: I mention the sound plays twice simultaneously when powered by a regular source.

Please provide the exact command you've used.
If it plays twice with a lever, then it's not a trapped chest issue.

I made a video of under a minute, it probably takes less time to get if from the video than to ask me for the commands..
Though since you asked:
/playsound random.pop @a
It sounds like it's playing twice (because it sounds different), but I'm not sure.

Caused by MC-35714
The trapped chest part is a duplicate of MC-35714 (since you are exiting a screen/GUI, it also occurs if you cause a sound to play, open inventory/chat, and close the GUI).
Not sure about the lever part though.