-
Notifications
You must be signed in to change notification settings - Fork 342
win7 startup stuck #388
Comments
Have you tried setting height and width to your window instead of using fullscreen? |
Hi,
If this happens, just close the window and restart it? Thank you !! |
What are the logs when everything works fine? |
Hi, The log when opening the window normally is: INFO: 2023/03/21 19:56:52 logger.go:147: astikit: starting worker... |
It's weird since when it's not working, it's not receiving the |
Haha, it's very weird, is there a way to solve it? |
I don't really see one to be honest 🤔 Astilectron is waiting for an event that should come from Electron, but it never arrives 🤔 If closing the window and retrying is an option, that's your best solution 👍 |
Thank you! |
If you run your program through the terminal and you enable debug logs, terminal might show more information 🤔 |
I found a bug with the code in the debug logs, the problem has been resolved. Thank you very much !!! |
Hi,
I encountered a problem during use, the log is as follows:
NFO: 2023/03/14 21:23:33 loggergo:136: Sending to Astilectron: {"name":"window.cmd.create","targetID":"1","sessionId":"2","url":"C:\ users\user\AppData\Roaming\culture\resources\app\indexhtml","window0ntions":{"backgroundColor":"#5F5F5","center":true,"fullscreen":true,"icon":"C:\ users\user\AppData\Roaming\culture\resources\icon.png","title":"culture"}}
INFO: 2023/03/14 21:23:34 logger.go:136: Astilectron says: {"name":"window.event.focus”,"targetiD":"1"}
INF0: 2023/03/14 21:23:42 loggergo:136: Astilectron says: {"name":"window .event.resize","targetID":"1","bounds":{"x":0,"y":0,"width":1280","height":1023}}
INFO: 2823/03/14 21:23:42 loggergo:136: Astilectron says: {"name";"window .event.blur","targetID":"1"}
The program hangs when it runs here, and the window is a white screen. Please help me, thank you!!
operating system:win7 32;
err := bootstrap.Run(bootstrap.Options{
Asset: Asset,
AssetDir: AssetDir,
AstilectronOptions: astilectron.Options{
AppName: AppName,
AppIconDarwinPath: "resources/icon.icns",
AppIconDefaultPath: "resources/icon.png",
AcceptTCPTimeout: time.Second * 60,
},
Debug: *debug,
Logger: logger.Info,
RestoreAssets: RestoreAssets,
OnWait: func(_ *astilectron.Astilectron, ws []*astilectron.Window, _ *astilectron.Menu, _ *astilectron.Tray, _ *astilectron.Menu) error {
m.Window = ws[0]
go func() {
time.Sleep(time.Second * 5)
The text was updated successfully, but these errors were encountered: