ananthakumaran/paisa

Beancount file crashes Mac app

scubed opened this issue · 4 comments

Describe your Environment
OS: Mac Sonoma (silicon)
Paisa Version: 0.6.3
App Variant: Desktop

Describe the bug
Tried to open with my beancount file, which works fine and also in fava. Immediately crashes with this error:

Paisa has encountered a critical error and needs to close.
sql: converting argument $11 type: uint64 values with high bit set are not supported
File: /Users/runner/work/paisa/paisa/internal/model/posting/posting.go
Line: 123
Function:github.com/ananthakumaran/paisa/internal/model/posting.UpsertAll

The file that Paisa expects in Documents, is soft linked to my actual beancount file in another folder. Didn't want to have two copies floating around

would you be able to share a small ledger file that reproduces this issue? That would help me debug, without that it might be hard for me to figure out.

I would suggest running paisa (cli not desktop app) in debug mode PAISA_DEBUG=true paisa serve, this will start to print the SQL queries directly to the console. Likely, it will give some hint about the location of the transaction that's breaking the app.