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

fyne_demo crash after selecting custom Theme and table #2018

Closed
lMaxMadl opened this issue Feb 24, 2021 · 4 comments
Closed

fyne_demo crash after selecting custom Theme and table #2018

lMaxMadl opened this issue Feb 24, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@lMaxMadl
Copy link

lMaxMadl commented Feb 24, 2021

Describe the bug:

Fyne_demo crash after selecting custom theme on advanced and enter on Table

To Reproduce:

Steps to reproduce the behaviour:
open fyne_demo
go to advanced
select custom theme
open collection tree
select table (when custome theme on)

Example code:

fyne_demo code

Device (please complete the following information):

  • OS: windows 10
  • Go version: 1.16
  • Fyne version: 2
@lMaxMadl lMaxMadl added the bug Something isn't working label Feb 24, 2021
@lMaxMadl lMaxMadl changed the title fyne_demo crash after selecting custom Theme fyne_demo crash after selecting custom Theme and table Feb 24, 2021
@andydotxyz
Copy link
Member

I cannot replicate unfortunately. Can you please provide the stack trace?

@andydotxyz andydotxyz added the question A question has been asked label Feb 24, 2021
@lMaxMadl
Copy link
Author

lMaxMadl commented Feb 24, 2021

Describe the bug:

@andydotxyz better explain

To Reproduce:

open fyne_demo
go to advanced
select custom theme
open collection tree(nodes/leafs not open it then tree watch screenshots gifs)
select table (when custome theme on)
see error

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

goroutine 36 [running]:
fyne.io/fyne/v2/widget.(*tableRenderer).moveIndicators(0xc0001ea1c0)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/widget/table.go:350 +0xc50
fyne.io/fyne/v2/widget.(*tableRenderer).Layout(0xc0001ea1c0, 0x438f800043c90000)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/widget/table.go:240 +0x36
fyne.io/fyne/v2/widget.(*BaseWidget).Resize(0xc0006fa8c0, 0x438f800043c90000)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/widget/widget.go:62 +0x124
fyne.io/fyne/v2/layout.(*maxLayout).Layout(0x16cf7b0, 0xc00039f0d0, 0x1, 0x1, 0x438f800043c90000)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/layout/maxlayout.go:22 +0x8b
fyne.io/fyne/v2.(*Container).layout(...)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/container.go:167
fyne.io/fyne/v2.(*Container).Refresh(0xc0003ca080)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/container.go:128 +0x14c
main.main.func13(0x13f121b, 0x5, 0x140d835, 0x2d, 0x1419590)
        C:/Users/%USERPROFILE%/Desktop/exgo/fyne demo/main.go:112 +0x197
main.makeNav.func5(0x13f1a27, 0x5)
        C:/Users/%USERPROFILE%/Desktop/exgo/fyne demo/main.go:154 +0x17d
fyne.io/fyne/v2/widget.(*Tree).Select(0xc0000b0b60, 0x13f1a27, 0x5)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/widget/tree.go:224 +0x14f
fyne.io/fyne/v2/widget.(*treeNode).Tapped(0xc0002bd4d0, 0xc0013bdb40)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/widget/tree.go:625 +0x48
fyne.io/fyne/v2/internal/driver/glfw.(*window).mouseClicked.func7()
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/internal/driver/glfw/window.go:791 +0x3f
fyne.io/fyne/v2/internal/driver/glfw.(*window).runEventQueue(0xc0003c4000)
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/internal/driver/glfw/window.go:1242 +0x83
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).createWindow.func1
        C:/Users/%USERPROFILE%/go/pkg/mod/fyne.io/fyne/v2@v2.0.0/internal/driver/glfw/window.go:1266 +0x10d
exit status 2

Screenshots:

bug way :
bug fyne

way don't appear bug :
fyne ok

Device (please complete the following information):

  • OS: windows
  • Version: 10
  • **Go version:**1.16
  • Fyne version: 2

@andydotxyz
Copy link
Member

Many thanks for this information

@andydotxyz andydotxyz removed the question A question has been asked label Feb 24, 2021
andydotxyz pushed a commit that referenced this issue Feb 26, 2021
ensure we never access out of range table dividers
@andydotxyz
Copy link
Member

Fixed on develop and will be in v2.0.1

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

2 participants