When the font size is set large relative to the display and show_text is used the program crashes with the following message: Fatal IO error 104 (Connection reset by peer) on X server :0.0. I specifically noticed this as I have a habbit of scaling my cairo windows to be 1x1 and the default font size was large enough to cause this. Attached is an example program to recreate the crash. The font size that makes things crash seems to be dependant on the font selection, but is difficult to narrow down exactly. I'll attach a simple example to reproduce the problem.
Created attachment 12583 [details] Simple demonstration of the problem
What's the window size? This is probably the glyph image exceeding X max request size which is 32k IIRC.
The default window size seems to be 200x200. Maybe Cairo could check the size before requesting it to make sure it will work, and give a nice error if not, or is X doing an error code that Cairo just isn't handling well?
This looks like a duplicate of bug #4339.
I think you're right
*** This bug has been marked as a duplicate of bug 4339 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.