We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First.Thanks for your work.
This is a test demo:
package main import ( "github.com/diamondburned/gotk4/pkg/gdk/v4" "github.com/diamondburned/gotk4/pkg/gio/v2" "github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/disintegration/imaging" "log" "os" "runtime" "time" ) func main() { application := gtk.NewApplication("com.demo", gio.ApplicationFlagsNone) application.Connect("activate", func() { log.Println("application activate") w := gtk.NewWindow() w.SetVisible(true) img := gtk.NewPicture() img.SetVisible(true) w.SetChild(img) application.AddWindow(w) go func() { for range time.Tick(time.Second) { src, _ := imaging.Open("a.png") dst := imaging.Blur(src, 1) glib.IdleAdd(func() { data := glib.NewBytes(dst.Pix) text := gdk.NewMemoryTexture(dst.Bounds().Dx(), dst.Bounds().Dy(), gdk.MemoryR8G8B8A8, data, uint(dst.Stride)) img.SetPaintable(text) runtime.GC() }) } }() }) os.Exit(application.Run(os.Args)) }
Run this that memory always increate.
The text was updated successfully, but these errors were encountered:
Likely the same as #126. Was fixed at some point but that was rolled back due to crashes
Sorry, something went wrong.
No branches or pull requests
First.Thanks for your work.
This is a test demo:
Run this that memory always increate.
The text was updated successfully, but these errors were encountered: