Let $c_{n, m}$ be complex numbers ($n=0,1,\dots,N$ and $m=0,1,\dots,M$) not all equal to zero, and consider the polynomial function $P:\mathbb{R}^2 \rightarrow \mathbb{C}$ defined for each $(x,y) \in \mathbb{R}^2$ by \begin{equation} P(x,y)= \sum_{n=1}^{N} \sum_{m=1}^{M} c_{n,m} x^{n} y^{m}. \end{equation} Now define, whenever $(x,y) \in \mathbb{R}^2$ is such that $P(x,y) \neq 0$: \begin{equation} F(x,y)=\frac{1}{P(x,y)}. \end{equation} Let $Q(x,y)$ and $R(x,y)$ be respectvely the real and imaginary part of $P(x,y)$. The zero set of $P(x,y)$ is the intersection of the zero sets of the two real polynomials $Q(x,y)$ and $R(x,y)$. Since the zero set of a non null real polynomial has zero Lebesgue measure (for a very simple proof see Daniel Fischer's answer in Zero Set of a Polynomial), we conclude that $F$ is defined a.e. Assume that $F$ is locally integrable. Can we conclude that $P$ has no zero on $\mathbb{R}^2$?
I think the answer is yes, but I could find no proof of this fact.
NOTE (1). Let us not that the analogous question for polynomials in one variable has clearly a positive answer. Indeed for the Fundamental Theorem of Algebra we have in this case $P(x)=(x-z_1)^{n_1}\dots(x-z_k)^{n_k}$, and if some of the $z_1,\dots,z_k$ is real, clearly $F$ is not integrable.
NOTE (2).Let us also note that the analogous question on $\mathbb{R}^n$, for $n \geq 3$, has a negative answer, as the polynomial $P(x_1,\dots,x_n)=x_1^2+\dots+x_n^2$ shows. So the only critical case is that of $\mathbb{R}^2$.