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

Occasional index out of range panic in fyne triggered by progress modal #8

Open
ErikKalkoken opened this issue Feb 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ErikKalkoken
Copy link
Owner

Occasionally the following panic is triggered by a progress modal:

panic: runtime error: index out of range [1] with length 1

goroutine 236 [running]:
fyne.io/fyne/v2/internal/driver/common.(*overlayStack).remove(0xc0004b4c00, {0x16ccde0?, 0xc001dd4c00?})
        /home/erik/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/common/canvas.go:563 +0x8d
fyne.io/fyne/v2/internal/driver/common.(*overlayStack).Remove(0xc0004b4c00, {0x16ccde0, 0xc001dd4c00})
        /home/erik/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/common/canvas.go:552 +0x52
fyne.io/fyne/v2/widget.(*PopUp).Hide(0xc001dd4c00)
        /home/erik/go/pkg/mod/fyne.io/fyne/[email protected]/widget/popup.go:28 +0x42
fyne.io/fyne/v2/dialog.(*dialog).hideWithResponse(0xc0002be310, 0x0)
        /home/erik/go/pkg/mod/fyne.io/fyne/[email protected]/dialog/base.go:111 +0x25
fyne.io/fyne/v2/dialog.(*dialog).Hide(...)
        /home/erik/go/pkg/mod/fyne.io/fyne/[email protected]/dialog/base.go:53
github.com/ErikKalkoken/fyne-kx/modal.(*ProgressModal).Start.func1()
        /home/erik/go/evebuddy-project/fyne-kx/modal/progress.go:71 +0x48
created by github.com/ErikKalkoken/fyne-kx/modal.(*ProgressModal).Start in goroutine 191
        /home/erik/go/evebuddy-project/fyne-kx/modal/progress.go:69 +0x65
exit status 2

This looks like a concurrency bug.

It might make sense to postpone this issue until Fyne 2.6 is released, since it comes with an overhaul of the threading model, which might make any current fixes obsolete.

@ErikKalkoken ErikKalkoken added the bug Something isn't working label Feb 24, 2025
@ErikKalkoken
Copy link
Owner Author

This is likely caused by this issue: fyne-io/fyne#5564. A fix is expected for Fyne 2.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant