Random CBL database corruption

Hi, we’re currently running using Couchbase lite 4.0.2 in an ASP netcore 9.0 solution.

Every once in a while there is a database corruption.

This is the only stack trace i’m able to get unfortunately.

We’re running this app on Ubuntu 24.04.3

The only fix sofar is deleting the database so it starts with a clean one.

Unfortunately you are running on a non supported deployment (we don’t provide .NET support for Linux, it’s basically a use at your own risk situation). This doesn’t look like it should be specific to Linux though, so I wonder if it will happen on an official platform (i.e. either Windows vanilla .NET, .NET Framework, or MAUI targets) and if so, under what circumstances?

What you’re showing is a crash. Crashes shouldn’t corrupt the database file – the underlying SQLite storage is extremely resilient.

Are you saying that the crash occurs every time the database is reopened?