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

with plastic scheme when Windows exists, panic happens #135

Open
Richie-Jang opened this issue Jul 24, 2024 · 3 comments
Open

with plastic scheme when Windows exists, panic happens #135

Richie-Jang opened this issue Jul 24, 2024 · 3 comments

Comments

@Richie-Jang
Copy link

Hello,
First of all, Thank you.

using Windows 11, Mingw64 (GCC), Golang V1.22.5
I am trying to learn this library from examples.

If I set fltk.SetScheme("plastic"), Close the windows.. Process is still alive / checked on Task Manager.

I checked it with console.

Exception 0xc0000005 0x0 0x22d1d 0x7ffd428f1d65
PC=0x7ffd428f1d65

runtime: g 0 gp=0x7ff6a76807c0: unknown pc 0x7ffd428f1d65
stack: frame={sp:0xeecebff7f0, fp:0x0} stack=[0x0,0xeecebffd30)
0x000000eecebff6f0: 0x000000eecebff7e0 0x000000000f00000f
0x000000eecebff700: 0x00000253a5de0000 0x000000001d00001d
0x000000eecebff710: 0x0000000000000000 0x00007ffd438ac350
0x000000eecebff720: 0x0000000000000000 0x0000000000000001 ...

goroutine 1 gp=0xc00004a000 m=0 mp=0x7ff6a7680d80 [running]:
runtime.systemstack_switch()
C:/development/go/src/runtime/asm_amd64.s:474 +0x8 fp=0xc000077ed0 sp=0xc000077ec0 pc=0x7ff6a73eeae8
runtime.stdcall(0xc000064050?)
C:/development/go/src/runtime/os_windows.go:973 +0x7b fp=0xc000077f08 sp=0xc000077ed0 pc=0x7ff6a73c1abb
runtime.stdcall1(0x7ff6a7566e70, 0x0)
C:/development/go/src/runtime/os_windows.go:994 +0x56 fp=0xc000077f20 sp=0xc000077f08 pc=0x7ff6a73c1b76
runtime.exit(0x0?)
C:/development/go/src/runtime/os_windows.go:583 +0x45 fp=0xc000077f50 sp=0xc000077f20 pc=0x7ff6a73c09c5
runtime.main()
C:/development/go/src/runtime/proc.go:295 +0x2de fp=0xc000077fe0 sp=0xc000077f50 pc=0x7ff6a73c6c1e
runtime.goexit({})
C:/development/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000077fe8 sp=0xc000077fe0 pc=0x7ff6a73f0b01
.....

The other Scheme Gtk+ or gleam is fine.. No panic happens while Windows closing.

Could you please check this.

Best Regards,
Richie.

@pwiecz
Copy link
Owner

pwiecz commented Aug 6, 2024

Hi, thanks for the report and sorry for the late response.
I can reproduce the problem, but so far I'm baffled by it, as I was unable to pinpoint the culprit of the issue. :(
We'll be looking more into it.

@pwiecz
Copy link
Owner

pwiecz commented Aug 7, 2024

Only think so far I could tell that the panic seems to be related with the use of a tile background here:
https://github.com/fltk/fltk/blob/713f0b0f64992de8eace6f97d95f4d582f31d9ad/src/Fl_get_system_colors.cxx#L267
Removal of this line makes my test program not crash.

@Richie-Jang
Copy link
Author

Thank you for the searching this problem & solution. Mainly It is caused from FLTK itself, not go binding library..

Thank you one more sharing such nice library.

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

No branches or pull requests

2 participants