How to remove black boxes
How to remove black boxes Can this black box only exist indefinitely
Hi @monkeycc, thanks for the issue report. Can you please provide more information about your version of Windows, the hardware you are running on, and if you are getting any errors when launching this hello world app?
Also can you please try to set the environmental variable:
$Env:GSK_RENDERER = "gl"
This will use the older, but potentially more reliable GTK renderer.
https://github.com/user-attachments/assets/2c7ff7b2-8d26-4f99-b64a-e292a7f02c96
CPU 12th Gen Intel(R) Core(TM) i9-12900H 2.50 GHz RAM 64.0 GB Win 11 python 3.13
Installation method:
$env:Path = "C:\gtk\bin;" + $env:Path
$env:LIB = "C:\gtk\lib;" + $env:LIB
$env:INCLUDE = "C:\gtk\include;C:\gtk\include\cairo;C:\gtk\include\glib-2.0;C:\gtk\include\gobject-introspection-1.0;C:\gtk\lib\glib-2.0\include;" + $env:INCLUDE
python
import sys
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import GLib, Gtk
class MyApplication(Gtk.Application):
def __init__(self):
super().__init__(application_id="com.example.MyGtkApplication")
GLib.set_application_name("My Gtk Application")
def do_activate(self):
window = Gtk.ApplicationWindow(application=self, title="Hello World")
window.present()
app = MyApplication()
exit_status = app.run(sys.argv)
sys.exit(exit_status)
Python and Rust This problem occurs everywhere
$Env:GSK_RENDERER = "gl"
It's useless, the black box hasn't been changed
Perhaps I made an installation error at which step Or not executed correctly
Thanks for the additional info! I think you probably did everything fine, this looks like an upstream bug. What type of video / GPU are you using?
GPU 3080TI
cuda 11.8 cudnn 8.9
Hi @monkeycc, I opened PR https://github.com/wingtk/gvsbuild/pull/1480 that brings in a change scheduled for the next make GTK release. Do you want to see if this fixes the black borders?
Nevermind, let's hold off on testing. I need to wait for GNOME's GitLab server to come back online so I can see if this patch is already part of the latest release.