This happened at some point in between yesterday and today. I built it, integrated with home assistant and it worked. Today I check and it crashed.
2025-08-31 13:49:29 INF Getting displays data
panic: reflect: call of reflect.Value.Int on string Value [recovered]
panic: reflect: call of reflect.Value.Int on string Value
goroutine 40 [running]:
encoding/json.(*encodeState).marshal.func1()
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:305 +0x80
panic({0x1051d1760?, 0x140002058d8?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/runtime/panic.go:792 +0x124
reflect.Value.Int(...)
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/reflect/value.go:1465
encoding/json.intEncoder(0x140001b4640, {0x1051a8400?, 0x140003bad90?, 0x0?}, {0x0?, 0x0?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:525 +0x1b0
encoding/json.structEncoder.encode({{{0x140001a2a88, 0xb, 0x11}, 0x1400011e960, 0x1400011e990}}, 0x140001b4640, {0x105272340?, 0x140003bad90?, 0x7?}, {0x0?, ...})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:727 +0x26c
encoding/json.arrayEncoder.encode({0x140006e3368?}, 0x140001b4640, {0x10519e040?, 0x140002058a8?, 0x140006e33d8?}, {0xc4?, 0x47?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:870 +0xc0
encoding/json.sliceEncoder.encode({0x140006e34e8?}, 0x140001b4640, {0x10519e040?, 0x140002058a8?, 0x140006e34f8?}, {0xc0?, 0x80?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:843 +0x288
encoding/json.(*encodeState).reflectValue(0x140001b4640, {0x10519e040?, 0x140002058a8?, 0x104ac408c?}, {0x98?, 0x35?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:333 +0x70
encoding/json.interfaceEncoder(0x140001b4640, {0x1051c9d60?, 0x1400011ca30?, 0x3?}, {0x21?, 0x14?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:680 +0xcc
encoding/json.mapEncoder.encode({0x140006e37d8?}, 0x140001b4640, {0x1051eea00?, 0x1400027adb0?, 0x140006e3828?}, {0xa8?, 0x59?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:784 +0x3fc
encoding/json.(*encodeState).reflectValue(0x140001b4640, {0x1051eea00?, 0x1400027adb0?, 0x104ac1168?}, {0x38?, 0x0?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:333 +0x70
encoding/json.(*encodeState).marshal(0x140000f4701?, {0x1051eea00?, 0x1400027adb0?}, {0xc8?, 0x91?})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:309 +0xb8
encoding/json.Marshal({0x1051eea00, 0x1400027adb0})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:175 +0x8c
encoding/json.MarshalIndent({0x1051eea00?, 0x1400027adb0?}, {0x0, 0x0}, {0x104f00baf, 0x2})
/Users/mikz/Developer/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.darwin-arm64/src/encoding/json/encode.go:188 +0x34
github.com/spf13/viper/internal/encoding/json.Codec.Encode(...)
/Users/mikz/Developer/go/pkg/mod/github.com/spf13/viper@v1.20.1/internal/encoding/json/codec.go:12
github.com/spf13/viper.(*Viper).marshalWriter(0x140000f4780, {0x1052a0d88, 0x14000500358}, {0x140002c93f9, 0x4})
/Users/mikz/Developer/go/pkg/mod/github.com/spf13/viper@v1.20.1/viper.go:1705 +0x68
github.com/spf13/viper.(*Viper).writeConfig(0x140000f4780, {0x140002c93b0, 0x4d}, 0x1)
/Users/mikz/Developer/go/pkg/mod/github.com/spf13/viper@v1.20.1/viper.go:1659 +0x364
github.com/spf13/viper.(*Viper).WriteConfig(0x140000f4780)
/Users/mikz/Developer/go/pkg/mod/github.com/spf13/viper@v1.20.1/viper.go:1584 +0x4c
github.com/timmo001/system-bridge/data.(*DataStore).saveModuleData(0x1051ef900?, {{0x104f058c0, 0x8}, {0x1052a3a60, 0x10572c7a0}, {0x10519e040, 0x140002058a8}, {0x140004d8700, 0x19}})
/Users/mikz/Developer/system-bridge/data/data.go:227 +0x160
github.com/timmo001/system-bridge/data.(*DataStore).SetModuleData(0x140002948a0, {0x104f058c0, 0x8}, {0x10519e040, 0x140002058a8})
/Users/mikz/Developer/system-bridge/data/data.go:116 +0x154
github.com/timmo001/system-bridge/data.(*UpdateTaskProcessor).worker(0x1400013a0c0)
/Users/mikz/Developer/system-bridge/data/update.go:139 +0x3a0
created by github.com/timmo001/system-bridge/data.(*UpdateTaskProcessor).Start in goroutine 37
/Users/mikz/Developer/system-bridge/data/update.go:68 +0xb4
Prerequisites
System Bridge version
master from yesterday
Installation method
Built from source (make build)
Installation method details
No response
Operating system
Mac OS
OS details
macOS 15.6.1, M4
Describe the bug
This happened at some point in between yesterday and today. I built it, integrated with home assistant and it worked. Today I check and it crashed.
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Relevant logs/output
Additional context / screenshots
No response