core icon indicating copy to clipboard operation
core copied to clipboard

Crash in widgets example

Open arl opened this issue 5 years ago • 2 comments

 $ git rev-parse HEAD
941f2e7b6e6fcabd4adaad5180a1c2591908d871
 $ cd examples/widgets
 $ make build
go build -v
 $ ./widgets |& pp
Received button signal: ButtonPressed from button: button2
Received button signal: ButtonReleased from button: button2
Received button signal: ButtonClicked from button: button2
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x3b0 pc=0x5adb5b]


To see all goroutines, visit https://github.com/maruel/panicparse#gotraceback

1: running [Created by gi.(*Window).GoStartEventLoop @ window.go:863]
    ki  node.go:1672      (*Node).FuncDownMeFirst(#11, 0x1, 0, 0, 0x130d548)
    ki  node.go:1930      (*Node).UpdateEnd(#11, 0xc0024ed701)
    ki  node.go:2031      (*Node).SetField(#11, 0x10d72a4, 0x4, #2, #15, 0, 0)
    giv valueview.go:623  (*ValueViewBase).SetValue(#14, #2, #15, #2)
    giv basicviews.go:797 (*BitFlagView).SetEnumValueFromInt(#14, 0x4006, #2)
    giv basicviews.go:831 (*BitFlagView).ConfigWidget.func1(0x14dcb20, #14, #5, #12, 0x1, #1, #8)
    ki  signal.go:173     (*Signal).Emit(0xc000b83480, #5, #12, 0x1, #1, #8)
    gi  buttonbox.go:167  (*ButtonBox).ConfigItems.func1(#5, #12, #6, #10, 0x3, 0, 0)
    ki  signal.go:173     (*Signal).Emit(0xc0009c2b98, #6, #10, 0x3, 0, 0)
    gi  buttons.go:333    (*ButtonBase).BaseButtonRelease(#10)
    gi  buttons.go:902    (*CheckBox).ButtonRelease(#10)
    gi  buttons.go:454    (*ButtonBase).MouseEvent.func1(#6, #10, #7, #13, 0, #3, #9)
    gi  events.go:116     (*WinEventRecv).Call(0xc000b6fdb8, #7, #13, 0, #3, #9)
    gi  events.go:225     (*EventMgr).SendEventSignal(0xc000bbe198, #4, #9, 0x1)
    gi  window.go:1534    (*Window).ProcessEvent(#13, #4, #9)
    gi  window.go:1456    (*Window).EventLoop(#13)

arl avatar May 18 '20 17:05 arl

thanks for the report -- what were you doing when it crashed? what platform?

rcoreilly avatar May 19 '20 07:05 rcoreilly

I'm on linux/amd64

I can't tell you right now, sorry.

However I remember I first clicked a button that opened another window/widget. On that second window I just clicked on one of the buttons on the right that are horizontally laid out and it crashed. Reproduced it 3 times.

In case you can't reproduce it with those few details just let me know and I'll write down the steps to reproduce when I'll be able to.

arl avatar May 19 '20 07:05 arl

should all be fixed now in v2

rcoreilly avatar Dec 25 '23 00:12 rcoreilly