fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
25.02k stars 1.39k forks source link

SIGSEGV past glfwPollEvents() #2037

Open AlbinoGeek opened 3 years ago

AlbinoGeek commented 3 years ago

Describe the bug:

Unfortunately there's not much to describe. After the program has run for some time, this crash can happen. Seemingly, it's random thus far, and I cannot reproduce it in 2.0.0 -- but this happens very frequently in 1.4.x

I have not yet had luck catching this in an active debugger.

Stack trace:

fatal error: unexpected signal during runtime execution                                                                                                                                                                                
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0]

runtime stack:                                                                                                                                                                                                                         
runtime.throw(0xdaa850, 0x2a)                                                                                      
        /usr/lib/golang/src/runtime/panic.go:1116 +0x72                                                                                                                                                                                
runtime.sigpanic()                                                                                                                                                                                                                     
        /usr/lib/golang/src/runtime/signal_unix.go:726 +0x4ac

goroutine 1 [syscall, locked to thread]:                                                                                                                                                                                               
runtime.cgocall(0xbb1260, 0xc001923990, 0xc001923b28)                                                              
        /usr/lib/golang/src/runtime/cgocall.go:133 +0x5b fp=0xc001923960 sp=0xc001923928 pc=0x42983b                                                                                                                                   
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwPollEvents()                                                            
        _cgo_gotypes.go:1574 +0x45 fp=0xc001923990 sp=0xc001923960 pc=0xa773c5
github.com/go-gl/glfw/v3.3/glfw.PollEvents()                                                                       
        /home/damon/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20201108214237-06ea97f0c265/window.go:949 +0x25 fp=0xc0019239c8 sp=0xc001923990 pc=0xa807a5                                                                      
fyne.io/fyne/internal/driver/glfw.(*gLDriver).tryPollEvents(0xc00009afa0)                                          
        /home/damon/go/pkg/mod/fyne.io/fyne@v1.4.2-0.20201229182434-170ee4f6662a/internal/driver/glfw/loop.go:222 +0x45 fp=0xc0019239e8 sp=0xc0019239c8 pc=0xa8bb05                                                                    
fyne.io/fyne/internal/driver/glfw.(*gLDriver).runGL(0xc00009afa0)
        /home/damon/go/pkg/mod/fyne.io/fyne@v1.4.2-0.20201229182434-170ee4f6662a/internal/driver/glfw/loop.go:102 +0x1fb fp=0xc001923b60 sp=0xc0019239e8 pc=0xa8b45b
fyne.io/fyne/internal/driver/glfw.(*gLDriver).Run(0xc00009afa0)                             
        /home/damon/go/pkg/mod/fyne.io/fyne@v1.4.2-0.20201229182434-170ee4f6662a/internal/driver/glfw/driver.go:77 +0x3a fp=0xc001923b80 sp=0xc001923b60 pc=0xa89c5a
fyne.io/fyne/app.(*fyneApp).Run(0xc00025e9a0)                                                                      
        /home/damon/go/pkg/mod/fyne.io/fyne@v1.4.2-0.20201229182434-170ee4f6662a/app/app.go:66 +0x95 fp=0xc001923ba8 sp=0xc001923b80 pc=0xac87f5                                                                                       
github.com/AlbinoGeek/sc2-rsu/cmd/gui.(*GraphicalInterface).Run(...)                                               
        /home/damon/go/src/sc2-rsu/cmd/gui/GraphicalInterface.go:46                          
github.com/AlbinoGeek/sc2-rsu/cmd.glob..func3(0x1316d20, 0x16736f8, 0x0, 0x0, 0x0, 0x0)              
        /home/damon/go/src/sc2-rsu/cmd/root.go:47 +0x763 fp=0xc001923cb0 sp=0xc001923ba8 pc=0xb94203               
github.com/spf13/cobra.(*Command).execute(0x1316d20, 0xc0000321d0, 0x0, 0x0, 0x1316d20, 0xc0000321d0) 
        /home/damon/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x47c fp=0xc001923d88 sp=0xc001923cb0 pc=0x5f6bdc
github.com/spf13/cobra.(*Command).ExecuteC(0x1316d20, 0xc00021fed0, 0x1, 0x1)
        /home/damon/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x375 fp=0xc001923e60 sp=0xc001923d88 pc=0x5f7755
github.com/spf13/cobra.(*Command).Execute(...)                                                                     
        /home/damon/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895                    
github.com/AlbinoGeek/sc2-rsu/cmd.Execute(0xffffffff, 0xc000042118)                                                                                                                                                                    
        /home/damon/go/src/sc2-rsu/cmd/Execute.go:41 +0x685 fp=0xc001923f68 sp=0xc001923e60 pc=0xb83d45
main.main()                                                                                                        
        /home/damon/go/src/sc2-rsu/main.go:10 +0x25 fp=0xc001923f88 sp=0xc001923f68 pc=0xb9b0e5
runtime.main()
        /usr/lib/golang/src/runtime/proc.go:204 +0x209 fp=0xc001923fe0 sp=0xc001923f88 pc=0x45e649
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc001923fe8 sp=0xc001923fe0 pc=0x491521

Device (please complete the following information):

andydotxyz commented 3 years ago

Is it possible that you had closed a window when you saw this happen? If so the issue is resolved. If there were other activities happpen it may have been fixed coincidentally but I'm less sure.

AlbinoGeek commented 3 years ago

Sadly, this occurred while the application was simply running for a long time, the system did not even go to suspend, so it is not a same issue as the last time I opened this.

My desktop environment did not reset, and my graphics driver did not reset, both of which happened last time.

So now, I'm not sure.

On Wed., Mar. 10, 2021, 4:44 a.m. Andy Williams, notifications@github.com wrote:

Is it possible that you had closed a window when you saw this happen? If so the issue is resolved. If there were other activities happpen it may have been fixed coincidentally but I'm less sure.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fyne-io/fyne/issues/2037#issuecomment-795361824, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSNPNUJ5NOSF5RNS2VISLTC5SRHANCNFSM4YJQYO2Q .