giu: [bug] Window grows until filling screen then app crashes
What happend?
Title?
Code example
main.go
package main
import (
g "github.com/AllenDang/giu"
)
func loop() {
g.Window("main").Layout(
g.Labelf("hi"),
)
}
func main() {
wnd := g.NewMasterWindow("main", 400, 200, 0)
wnd.Run(loop)
}
To Reproduce
- Run my code
- see the crash…
Version
(latest)
OS
Windows 10
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16
To me it seems that
is called during each render frame, and it doesn’t set the scale to an absolute 1.5 (150%), but it scales the current scale up by 150%, so it recursively scales up to infinity. Maybe it only needs a single call during initialization?
Edit: this solved the issue, so perhaps this should be in the initialization section, not in the loop:
With version github.com/AllenDang/giu@v0.7.0 the issue is not present.
Answers:
Message and call stack:
It’s present for both.
Hi, I got the same issue as the issue creator, on Win10 as well, and for me the example from github.com/AllenDang/cimgui-go is working fine.