Label with very long text causes segfault on Wayland
Steps to reproduce
- Compile the attached snippet.
- Run program.
- Click the "Hello" button, observe that the application crashes.
Gdk-CRITICAL **: 16:14:05.351: gdkdisplay-wayland.c:1398: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.) Segmentation fault (core dumped)
Now, I know it's likely unreasonable to have a GtkLabel with 6600+ characters, however would it be possible to handle this Cairo error more gracefully? For example an error message instead of a segfault.