gvsbuild icon indicating copy to clipboard operation
gvsbuild copied to clipboard

How to remove black boxes

Open monkeycc opened this issue 1 year ago • 7 comments

微信截图_20241114090751

How to remove black boxes Can this black box only exist indefinitely

monkeycc avatar Nov 14 '24 01:11 monkeycc

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?

danyeaw avatar Nov 15 '24 20:11 danyeaw

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.

danyeaw avatar Nov 15 '24 20:11 danyeaw

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

monkeycc avatar Nov 15 '24 23:11 monkeycc

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?

danyeaw avatar Nov 16 '24 03:11 danyeaw

GPU 3080TI

cuda 11.8 cudnn 8.9

monkeycc avatar Nov 16 '24 07:11 monkeycc

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?

danyeaw avatar Nov 17 '24 23:11 danyeaw

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.

danyeaw avatar Nov 17 '24 23:11 danyeaw