I have a really vague childhood memory of scene I saw on TV some 20 years ago. I'm from former eastern block, so it is totally possible that the source was much older.
In the scene there is a guy sitting in some kind of spaceship/submarine, but he's on top of the vehicle, in an trasparent dome. He is sitting in a command chair controlling the vehicle.
In this scene he is attacked by some kind of foam, which seeps through the dome and attacks him.
I have a feeling that the guy in question is Jean-Luc Picard, but none of my Star Trek fan friends seem to know about episode which would have this in it.