Problems during Start - Crashes

Hi Support-Team,

I’ve had several crashes during start of eM-Client.

The software tell me to contact the support with the followign text:

MailClient.Storage.Data.DatabaseCorruptedException (0x80004005): SQLite Error 11: ‘database disk image is malformed’.
Line: 40
CREATE TEMP TABLE unreadCounts AS
SELECT conversationId, COUNT(*) count FROM MailItems
WHERE flags & 2 == 0
GROUP BY conversationId;
at MailClient.Storage.Data.DbRepository1.ImportFromResource(IDbConnection connection, Stream myStream, CancellationToken token) at MailClient.Storage.Data.DbRepository1.ImportFromManifestResource(String resourceName, CancellationToken token)
at MailClient.Storage.Data.DbRepository1.Repair(RepairMode mode, CancellationToken token) at MailClient.Accounts.ItemRepositories.Repair(RepairMode mode, CancellationToken token) at MailClient.DbRepair.ConsistencyChecker.CheckConsistencyForAccount(String accountDirectory, RepairMode mode, CancellationToken token) at MailClient.DbRepair.ConsistencyChecker.<>c__DisplayClass3_0.<Check>b__0(String p) at MailClient.DbRepair.PerAccountExecutor.Execute(String dataStoreLocation, Func2 action)
at MailClient.DbRepair.ConsistencyChecker.Check(RepairMode mode, CancellationToken token)
at MailClient.DbRepair.CheckingProcess.Check(CancellationToken token)
Data:
ResourceName: MailClient.Storage.Mail.Data.DbMailRepository.consistency.sql
DatastoreLocation: C:\Users\info\AppData\Roaming\eM Client\

Thanks in advance.

Kind regards,
Marc

[quote=“MarcLanghoff, post:1, topic:115902”]
I’ve had several crashes during start of eM-Client
viviernes 10 abril 2026 :: 1538hrs (UTC +0100)

Hey @MarcLanghoff

You can try this…

Before you do anything make a Backup: (Menu >Backup)

You can run a repair of the DataBase as it can help
Eollow these instructions:

Close eM Client and open a Windows Run window.
You do that by using the Win + R keys on your keyboard.
Paste in this command including the leading "

“C:\Program Files (x86)\eM Client\MailClient.exe” /dbrepair

When that is done, restart eM Client.

skybat

¡Buena suerte!

¡Saludos desde Sevilla la soleada en España!
¡Mis mejores deseos y mantente a salvo!

[email protected]

Hablo español, luego portugués, inglés, francés y alemán
con conocimiento de varios otros idiomas.

This error often indicates an issue with the database file itself. While the repair command @skybat suggested is usually the first step, sometimes underlying disk problems can cause this. If the repair doesn’t fully resolve it, you might want to check your drive for errors.

Good call on checking the drive. Database corruption can sometimes be a symptom of underlying disk issues or even sudden system shutdowns. If the repair doesn’t fully resolve it, ensuring your drive is healthy is a crucial next step before considering other solutions.

MailClient.Storage.Data.DatabaseCorruptedException (0x80004005): SQLite Error 11: ‘database disk image is malformed’.

If running the database repair makes no difference as @skybat advised above and all your other apps are ok and scanning your hard disk has no sector errors as @TimTom420 advised then suggest next to create a new database to test.

To create a new database first “close eM Client” and then go to the following hidden database folder below and “rename it” to eg: eM Client-Old Then reopen eM client and setup as new.

(Hidden database folder Windows)
C:\Users%username%\AppData\Roaming\eM Client

If creating a new database then fixes the errors and runs ok “but you need mail, contacts etc out of your original database”, then see my post in the following thread which explains how to do a Partial Restore either from a recent eM Client backup.zip or from a backed up hidden database folder if you backup your computer user profile.

Or see the following eM Client blog page on doing a “Partial Restore” in “Offline mode” part way down the following page.

domingo 12 abril 2026 :: 1145hrs (UTC +0100)

Hey @TimTom420 & @cyberzork

As a follow on…

Just general information for anyone interested.

How to Check Disk for Errors using Command Prompt:

1./ Press Windows Key and tope CMD in Search
2./ In Right Panel Click “Run as Administrator”
3./ In new window type chkdsk C: /f/x/r - then Click Enter
(there is a space between chkdsk & C: or other drive)
4./ If drive is in use tyoe Y & Click Enter
5./ System will restart PC & disk will be checked on boot
(if possible any errors will be repaired)

skybat

¡Buena suerte!

¡Saludos desde Sevilla la soleada en España!
¡Mis mejores deseos y mantente a salvo!

[email protected]

Hablo español, luego portugués, inglés, francés y alemán
con conocimiento de varios otros idiomas.

1 Like

Hi together,
I just had an eye on the issue.

The last couple of days it hasn’t come up yet.

Don’t know if it’s maybe a bug or something. With other programs I don’t have had any crashes or something that my drive is good I think.

I don’t know what’s the problem. Maybe a bug or something?

viernes 17 abril 2026 :: 1751hrs (UTC +0100)

Hey@MarcLanghoff

If as you say you are NOT certain it will do no harm
and possibly some good to carry out both procedures
that I have posted above in the order the order they
were posted AND take note of all that @cyberzork
has posted

skybat

¡Buena suerte!

¡Saludos desde Sevilla la soleada en España!
¡Mis mejores deseos y mantente a salvo!

[email protected]

Hablo español, luego portugués, inglés, francés y alemán
con conocimiento de varios otros idiomas.

1 Like