The wallet won't open.

Hi, I’m having trouble loading my wallet. I haven’t used it since 2018. I have the wallet file and the password. When I install Litecoin Core 0.21.5.8 on Windows 10, everything works fine. I add my wallet file—that’s also fine, and I can see my transactions from 2018. The synchronization with the blockchain begins (starting from 2011), but around the year 2017, the Litecoin Core 0.21.5.8 program closes on its own. And that’s it. What could the problem be?
If I don’t load my wallet file, everything works perfectly; the synchronization completes fully. But as soon as I add my wallet file, the program starts closing by itself.

A case for @losh11

Back up the wallet file first and work only with the copy.

Since Litecoin Core already opens the wallet and shows the 2018 transactions, we’d secure the coins before anything else by exporting the keys while it’s loaded. In Window > Console, unlock the wallet with walletpassphrase “your password” 600, then run dumpwallet “C:\path\keys.txt”. That file contains the private keys, so keep it offline.

The cause of the crash should be in the last lines of debug.log in %APPDATA%\Litecoin. In our experience, letting the node finish syncing without the wallet and loading it afterwards often avoids the problem, since the wallet then only needs a rescan of a synced chain. If it still closes, the salvage command in litecoin-wallet can rebuild a damaged file, run on a copy.