Prevent pixman warnings by validating rectangle dimensions before region creation#84
Draft
Prevent pixman warnings by validating rectangle dimensions before region creation#84
Conversation
When size is not known one should pass -1 and not 0 .
Co-authored-by: akurtakov <574788+akurtakov@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Pixman invalid rectangle warning in console
Prevent pixman warnings by validating rectangle dimensions before region creation
Feb 9, 2026
45fdafa to
e1f8208
Compare
e005bf8 to
e77c3cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pixman emits warnings when
cairo_region_create_rectanglereceives rectangles with zero or negative dimensions, which occurs when widgets are resized to minimal dimensions or when GTK returns invalid GdkRectangle values.Changes
isValid()method incairo_rectangle_int_tcheckswidth > 0 && height > 0cairo_region_create_rectanglecalls:GC.java:cairoClipRegion()andcopyArea()Control.java:drawBackground()andcairoClipRegion()Canvas.java:scroll()TextLayout.java: Two text rendering pathsWhen invalid rectangles are detected, methods return early or skip region operations, preventing the warning while maintaining correct rendering behavior (region clipping is skipped, operations proceed without the invalid region).
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
repo.eclipse.org/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.10-7/x64/bin/java /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.10-7/x64/bin/java --enable-native-access=ALL-UNNAMED -classpath /opt/hostedtoolcache/maven/3.9.12/x64/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/opt/hostedtoolcache/maven/3.9.12/x64/bin/m2.conf -Dmaven.home=/opt/hostedtoolcache/maven/3.9.12/x64 -Dlibrary.jansi.path=/opt/hostedtoolcache/maven/3.9.12/x64/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/eclipse.platform.swt/eclipse.platform.swt org.codehaus.plexus.classworlds.launcher.Launcher clean compile -DskipTests -pl bundles/org.eclipse.swt -am(dns block)www.cairographics.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.