keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.93k stars 1.45k forks source link

Windows 10: KeepassXC 2.7.9 silently crashes --> REINSTALL MSVC REDIST #10925

Open onmyouji opened 3 months ago

onmyouji commented 3 months ago

SOLUTION

Reinstall the MSVC redistributable package: https://aka.ms/vs/17/release/vc_redist.x64.exe

Overview

I just updated my KeepassXC to the latest 2.7.9. I use the portable version on Windows 10. The file that I downloaded is KeePassXC-2.7.9-Win64.zip

After extracting the zip file, I tried to open the program but it failed to run. And I noticed there are many .dmp crash dumps generated by KeepassXC.

Steps to Reproduce

  1. Try to run KeePassXC.exe (right click - open)
  2. The program fails to run.
  3. When you check AppData\Local\CrashDumps, there are many crash dump generated. Filenames are KeePassXC.exe.XXXX.dmp

Expected Behavior

I should be able to open the program.

Actual Behavior

The program failed to run.

Context

I can't access the Help → About menu, the program doesn't even run.

Operating System: Windows 10 Home 64-bit KeepassXC 2.7.9 Portable

droidmonkey commented 3 months ago

Not much we can do to assist. Can you provide the latest crash dump?

onmyouji commented 3 months ago

edited

clangcn commented 3 months ago
Windows 10 IoT 企业版 LTSC 21H2
KeePassXC-2.7.9-Win64.msi

Having the same problem, unable to run, I went back to 2.7.8

jaden commented 3 months ago

Same problem on Windows 10

droidmonkey commented 3 months ago

Hmmm, unfortunately I didn't get anything from the crash dump. Can you all try running a snapshot build?

https://snapshot.keepassxc.org

I cannot reproduce this problem with either the portable or installer version of 2.7.9. Tried locally and on a fresh Windows 11 VM

jaden commented 3 months ago

The latest snapshot build-249506 ran correctly, without any errors. I had been running the MSI of 2.7.9 so just to confirm, I downloaded the portable version and it also crashed on startup.

In case it's relevant, I'm running Windows 10 Pro 10.0.19045 Build 19045.

Do you have access to a Windows 10 VM? I can try on Windows 11 tomorrow, but it seems like all of the crashes are happening on Windows 10 rather than Windows 11.

droidmonkey commented 3 months ago

That is baffling, there is nothing special about our code that would differentiate Windows 10 and Windows 11 (which technically are the same post 22H1). The snapshot build contains all code that 2.7.9 has and more.

droidmonkey commented 3 months ago

I'm spooling up a light win10 box now to test.

ean365 commented 3 months ago

Same here. Just upgraded to the latest using the .msi installer. Fails silently upon launch. Win 10 Pro.

jaden commented 3 months ago

That is strange. To add another data point, I get the same crash when running v2.7.9 of keepassxc-cli.exe, so it's not exclusive to the GUI.

droidmonkey commented 3 months ago

image

Ugh I cannot reproduce

droidmonkey commented 3 months ago

Can you all try reinstalling the MSVC redistributable package? https://aka.ms/vs/17/release/vc_redist.x64.exe

ean365 commented 3 months ago

That did it!

jaden commented 3 months ago

Installing the latest MSVC package fixed the crash! I can now run v2.7.9.

ean365 commented 3 months ago

Wonder why it failed silently??? Not supposed to do that.

droidmonkey commented 3 months ago

Shakes Fist at Bill Gates

bradpeterson1 commented 3 months ago

Adding more info.

Happening also on Windows 11. I had a fresh Windows install (old hard drive died). Very few things on this computer, it's barebones. I then installed KeepassXC and it kept silently crashing for me.

Each time Event Viewer gave me info like this:

Faulting application name: KeePassXC.exe, version: 2.7.9.0, time stamp: 0x6673531d
Faulting module name: MSVCP140.dll, version: 14.32.31332.0, time stamp: 0x8b64702c
Exception code: 0xc0000005
Fault offset: 0x00000000000132f8
Faulting process id: 0x0x564
Faulting application start time: 0x0x1DAC2C94885B32F
Faulting application path: C:\Program Files\KeePassXC\KeePassXC.exe
Faulting module path: C:\Windows\SYSTEM32\MSVCP140.dll
Report Id: 18d57eec-6dfb-4c68-ba13-3d05515fb09e
Faulting package full name: 
Faulting package-relative application ID: 

Reinstalling the MSVC package fixed it and now it loads just fine.

asapuntz commented 3 months ago

Shakes Fist at Bill Gates

fwiw, your msvc redistributable fix worked for me too. W10-64. note that the "latest" redistributable updated me from 14.36.32532.0 to 14.40.33810.0

clangcn commented 3 months ago

Can you all try reinstalling the MSVC redistributable package? https://aka.ms/vs/17/release/vc_redist.x64.exe

After installing https://aka.ms/vs/17/release/vc_redist.x64.exe, 2.7.9 can run.

Windows 10 IoT ENT LTSC 21H2
KeePassXC-2.7.9-Win64.msi
0v3rl04d commented 3 months ago

Reinstalling the MSVC package fix the issue also for me on Windows 11

droidmonkey commented 3 months ago

Reported this issue to Microsoft: https://developercommunity.visualstudio.com/t/Builds-against-MSVC-Redistributable-144/10690723

Feel free to upvote.

PapooSan commented 3 months ago

Windows 11 22H3 here same problem, KeePassXC-2.7.9, .msi

KeePassXC-2.8.0-snapshot-Win64.msi works for me

droidmonkey commented 3 months ago

SOLUTION

Reinstall the MSVC redistributable package: https://aka.ms/vs/17/release/vc_redist.x64.exe