Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove black boxes #1478

Open
monkeycc opened this issue Nov 14, 2024 · 7 comments · May be fixed by #1480
Open

How to remove black boxes #1478

monkeycc opened this issue Nov 14, 2024 · 7 comments · May be fixed by #1480

Comments

@monkeycc
Copy link

微信截图_20241114090751

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

@danyeaw
Copy link
Member

danyeaw commented Nov 15, 2024

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
Copy link
Member

danyeaw commented Nov 15, 2024

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.

@monkeycc
Copy link
Author

monkeycc commented Nov 15, 2024

bandicam.2024-11-16.07-28-22-961.mp4

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

@danyeaw
Copy link
Member

danyeaw commented Nov 16, 2024

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?

@monkeycc
Copy link
Author

GPU
3080TI

cuda 11.8
cudnn 8.9

@danyeaw danyeaw linked a pull request Nov 17, 2024 that will close this issue
@danyeaw
Copy link
Member

danyeaw commented Nov 17, 2024

Hi @monkeycc, I opened PR #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
Copy link
Member

danyeaw commented Nov 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants