Anytype crashing within 5 minutes of opening

WHAT IS THE BUG

Anytype crashes consistently with a bug report
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x1dda727]

HOW TO REPRODUCE IT

  1. Open anytype
  2. Wait for 4-5 minutes
  3. Application crashes

THE EXPECTED BEHAVIOR

App doesn’t crash

SYSTEM INFORMATIONS

  • OS:
    Windows 10.0.190 44
  • Device:
    Dell XPS 15 9570
  • Anytype Version:
    0.29.1

ADDITIONAL CONTEXT

ID A5y3atj6KkRk32LiBEDXb37RQkUkt5fxtBxkK8sPnkXi4ouD
Andriod application works fine.

Crashlog:
2022-11-14 12:02:32.2370715 +0100 CET m=+339.663367601 write error: mb: overflowed
2022-11-14 12:02:32.2370715 +0100 CET m=+339.663367601 write error: mb: overflowed
2022-11-14 12:02:32.2380687 +0100 CET m=+339.664364801 write error: mb: overflowed

2022-11-14 12:02:32.2380687 +0100 CET m=+339.664364801 write error: mb: overflowed

2022-11-14 12:02:32.2370715 +0100 CET m=+339.663367601 write error: mb: overflowed
2022-11-14 12:02:32.2380687 +0100 CET m=+339.664364801 write error: mb: overflowed

2022-11-14 12:02:32.2390656 +0100 CET m=+339.665361701 write error: mb: overflowed

2022-11-14 12:02:32.2390656 +0100 CET m=+339.665361701 write error: mb: overflowed

2022-11-14 12:02:32.2405462 +0100 CET m=+339.666842301 write error: mb: overflowed

2022-11-14 12:02:32.2405462 +0100 CET m=+339.666842301 write error: mb: overflowed

2022-11-14 12:02:32.2410606 +0100 CET m=+339.667356701 write error: mb: overflowed

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x223a727]

goroutine 9650 [running]:
github.com/libp2p/go-libp2p-peerstore/pstoreds.(*addrsRecord).flush(0xc0398ab110, {0x1e2f2c5f2d0, 0xc0002a9bc0})
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-peerstore@v0.6.0/pstoreds/addr_book.go:50 +0x47

github.com/libp2p/go-libp2p-peerstore/pstoreds.(*dsAddrBook).setAddrs(0xc0015ecb00, {0xc0374bf6b0, 0x22}, {0xc02d2745a0, 0x3, 0x4}, 0x1bf08eb000, 0x1, 0x88)
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-peerstore@v0.6.0/pstoreds/addr_book.go:533 +0x758
github.com/libp2p/go-libp2p-peerstore/pstoreds.(*dsAddrBook).AddAddrs(0xc002778060, {0xc0374bf6b0, 0x22}, {0xc0398aad20, 0x2c, 0xc0374bf6b0}, 0x1bf08eb000)
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-peerstore@v0.6.0/pstoreds/addr_book.go:261 +0x85
github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).maybeAddAddrs(0xc000d74000, {0xc0374bf6b0, 0x22}, {0xc0398aad20, 0x3, 0x3}, 0x3)
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.15.0/dht.go:843 +0xe5
github.com/libp2p/go-libp2p-kad-dht.(*query).queryPeer(0xc0394dc800, {0x2e75b10, 0xc021d87900}, 0xc02082bfd0, {0xc0234af0e0, 0xc021db6240})
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.15.0/query.go:440 +0x72e
created by github.com/libp2p/go-libp2p-kad-dht.(*query).spawnQuery
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.15.0/query.go:325 +0x2c5

This report has been added to our issue tracker and received by the Development Team.

This crash should go away after next release, we have updated libp2p and peerstore in particular.

1 Like

Thanks for the quick response!

1 Like

In the secondary installation, using the recovery phrase resulted in the following error.

log file
crash_2022-12-03T12_40_53.log (4.4 KB)

If you want to give developers an ability to help you - edit your post adding log file.

Ok, the log has been uploaded

It should be a server problem

I experience the same problem. I couldn’t open an object, reinstalled the app, and had the same error. I guess it could be related to this topic. I reinstalled the app couple of times, sometimes it syncs for some time and throws the error from the linked topic. Other times it throws the same error as in your case, after logging in.

1 Like

Yes, I just read your post and we have the same problem and saw that the developer said it will be fixed in the next version

WHAT IS THE BUG

Can’t login / Crash on open

HOW TO REPRODUCE IT

  1. Open the app

THE EXPECTED BEHAVIOR

The app open and login successfully

SYSTEM INFORMATIONS

  • OS:
    Linux KDE Neon - Kernel version 5.15.0-52-generic
  • Anytype Version:
    Last version

ADDITIONAL CONTEXT

Log file :
crash_2022-12-05T19_12_40.log (1.5 KB)

It was working perfectly then suddenly crash and can’t open it, I’ve tried to remove and reinstall the package.
I’ve seen that libp2p was updated and it shouldn’t crash after the next release but is there a workaround to make it work until the next release?

Thank you !

This report has been added to our issue tracker and received by the Development Team.

@Msd11 @sanderh255
Please check this again in version 0.30.0

1 Like

Hello !

The app is still crashing on opening in version 0.30.0 :

- OS:
Linux KDE Neon
- Anytype Version:
Last version 0.30.0 amd64

Log file :
crash_2023-01-21T16_37_21.log (1.5 KB)

2 Likes

@Msd11 Updated the task with your .log file in our issue tracker. Thanks for reporting back!