Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
onmyouji opened this issue Jun 20, 2024 · 23 comments
Open

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

onmyouji opened this issue Jun 20, 2024 · 23 comments

Comments

@onmyouji
Copy link

onmyouji commented Jun 20, 2024

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

@onmyouji onmyouji added the bug label Jun 20, 2024
@droidmonkey
Copy link
Member

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

@onmyouji
Copy link
Author

onmyouji commented Jun 20, 2024

edited

@clangcn
Copy link

clangcn commented Jun 20, 2024

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
Copy link

jaden commented Jun 20, 2024

Same problem on Windows 10

@droidmonkey
Copy link
Member

droidmonkey commented Jun 20, 2024

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
Copy link

jaden commented Jun 20, 2024

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
Copy link
Member

droidmonkey commented Jun 20, 2024

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
Copy link
Member

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

@ean365
Copy link

ean365 commented Jun 20, 2024

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

@jaden
Copy link

jaden commented Jun 20, 2024

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
Copy link
Member

droidmonkey commented Jun 20, 2024

image

Ugh I cannot reproduce

@droidmonkey
Copy link
Member

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

@ean365
Copy link

ean365 commented Jun 20, 2024

That did it!

@jaden
Copy link

jaden commented Jun 20, 2024

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

@ean365
Copy link

ean365 commented Jun 20, 2024

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

@droidmonkey
Copy link
Member

Shakes Fist at Bill Gates

@droidmonkey droidmonkey pinned this issue Jun 20, 2024
@droidmonkey droidmonkey changed the title After updating to KeepassXC 2.7.9, I can't open the program anymore Windows 10: KeepassXC 2.7.9 silently crashes --> REINSTALL MSVC REDIST Jun 20, 2024
@bradpeterson1
Copy link

bradpeterson1 commented Jun 20, 2024

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
Copy link

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
Copy link

clangcn commented Jun 20, 2024

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
Copy link

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

@droidmonkey
Copy link
Member

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

Feel free to upvote.

@keepassxreboot keepassxreboot unlocked this conversation Jun 26, 2024
@PapooSan
Copy link

PapooSan commented Jun 26, 2024

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

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

@keepassxreboot keepassxreboot locked and limited conversation to collaborators Jun 26, 2024
@droidmonkey
Copy link
Member

SOLUTION

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants