Following this question I was able to insert (Java) code into my lyx document. However, when I try to visualize (export it as a .pdf) the following error comes up:
I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can.
The related questions I found, this one and this one are related to including images into a document. Why does lyx show the same error when working with code snippets?
The issue appears in the following case:
The error message:
A shortened example can be found here

