[Bug 272768] net/gorss: Update to 0.4

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 27 Sep 2023 10:07:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272768

--- Comment #12 from Fernando ApesteguĂ­a <fernape@FreeBSD.org> ---
(In reply to Alexey Dokuchaev from comment #11)

> Could it be garbled local state, e.g. some conflict with files from the previous version?  Does wiping out ~/.config/gorss and ~/.local/share/gorss help?

Yep!

Removing those directories make gorss boot, thanks! I suppose there is some
incompatible change in the configuration between 0.3 and 0.4 that prevents 0.4
from booting.

After booting I see the screen and some of the news sites listed in the left
panel. Unfortunately pressing the down key generates a segfault:



$ gorss
2023/09/27 12:04:32 main.go:109: Using config:
/home/fernape/.config/gorss/gorss.conf
2023/09/27 12:04:32 main.go:110: Using theme:
/home/fernape/.config/gorss/themes/default.theme
2023/09/27 12:04:32 main.go:111: Using DB:
/home/fernape/.local/share/gorss/gorss.db
2023/09/27 12:04:32 main.go:112: Using log file:
/home/fernape/.local/share/gorss/gorss.log
panic: runtime error: invalid memory address or nil pointer dereference
[recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xb64738]

goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1()
        github.com/rivo/tview/application.go:251 +0x4d
panic({0x2738a0, 0xc7a950})
        runtime/panic.go:884 +0x213
github.com/Lallassu/gorss/internal.(*DB).MarkRead(0x8542a5400?, 0x0)
        github.com/Lallassu/gorss/internal/db.go:189 +0xd8
github.com/Lallassu/gorss/internal.(*Window).MoveDown(0x8542a8be0, {0x3b7098?,
0x8541b1d40})
        github.com/Lallassu/gorss/internal/window.go:534 +0x1ed
github.com/Lallassu/gorss/internal.(*Controller).Input(0x8542a5400,
0x85407e0a0)
        github.com/Lallassu/gorss/internal/controller.go:554 +0xd9b
github.com/rivo/tview.(*Application).Run(0x8541e2540)
        github.com/rivo/tview/application.go:327 +0x42b
github.com/Lallassu/gorss/internal.(*Window).Start(0x8542a8be0)
        github.com/Lallassu/gorss/internal/window.go:183 +0x4f
github.com/Lallassu/gorss/internal.(*Controller).Init(0x8542a5400,
{0x85402c360, 0x26}, {0x85402c3c0, 0x30}, {0x85402c4b0, 0x29})
        github.com/Lallassu/gorss/internal/controller.go:68 +0x518
main.main()
        github.com/Lallassu/gorss/cmd/gorss/main.go:121 +0xdb1

Just letting you know. No worries from my side. I tend to consume most of my
feed from the browser.

Thanks a lot for your help.

-- 
You are receiving this mail because:
You are the assignee for the bug.