Got a replicable malfunction with sneak attacks.

Take rogue -> sneak during combat (make sure you are actually unseen) -> select "ranged sneak attack" -> hover over enemy. The cursor will indicate "advantage on attack" -> shoot.
The shot will not apply sneak attack damage.

The calculation detail show, that indeed advantage is put on the attack roll, but no sneak attack damage on the damage roll.
I already read somewhere else, that advantage on attacks wont trigger sneak attacks.
However if i get advantage by any other means, like being on high ground, it works for me.
I guess there is internally different types of advantages (backstab, highground etc) and this generic one. For any other ones i encountered it worked, so it might be an issue of the source of the advantage.