Consider a smooth map $f:M\rightarrow N$ between smooth manifolds.
Ehresmann's theorem states that if $f$ is a proper submersion, then it is locally trivializable; in particular, this implies that nearby fibers are homeomorphic. If we weaken the condition of properness, we can still say something of the sort near a compact component of a fiber. For any $x\in M$, let $F_x$ denote the connected component of $f^{-1}\!\big(f(x)\big)$ containing $x$. Then the proof of Ehresmann's theorem can be adapted to show the following: If $f$ is a submersion and $F_x$ is compact, then there is an open set $V\ni f(x)$ and a local trivialization $V\times F_x\rightarrow M$. In particular, this implies that there is an open set $U\ni x$ such that $F_y$ is compact for all $y\in U$. This can be phrased succinctly by saying that "compactness of fiber components is an open condition" for any submersion $f$. The proof that I have in mind very much relies on $f$ being a submersion, but I have had trouble thinking of an example of any $f$ lacking this property (namely, that compactness of fiber components is an open condition). As such, I am seeking an example of such an $f$ (or if I am wrong in my guess that one might exist, an explanation of non-existence).