Electrum: Electrum 3.0.2 unable to start (0xc0000005).

Created on 17 Nov 2017  路  11Comments  路  Source: spesmilo/electrum

I am unable to start Electrum 3.0 or 3.0.1 or 3.0.2 on Windows 10 Pro 64-bit.
Electrum 2.9.3 works.
I have verified the PGP signature of 3.x and the .exe is good.

The error is:


electrum-3.0.2.exe - Application Error

The application was unable to start correctly (0xc0000005). Click OK to close the application.

OK

OS-windows 馃獰 bug 馃悶

All 11 comments

Are any other programs giving you this error, or is it only Electrum 3.0.x?

I assume you tried to look this error up in a search engine, but if not:

If it's only Electrum giving you the error, maybe try disabling your antivirus temporarily and see if that fixes it (as per the first URL).

Thank you for your reply. I've just tried:

  • "Run as" -> Administrator on Electrum 3.0.2. It does not open but no error message is displayed. This might relate to #3219 or #3290.
  • Setting Windows compatibility mode (XP) on the Electrum 3.0.2 exe. It does not open but no error message is displayed. This might relate to #3219 or #3290.
  • Launching other apps I have installed, including Chrome, Lightroom, GIMP, Steam, KeePass 2 and others. All working.
  • Electrum 2.9.2. Working, just like 2.9.3.

I still get error 0xc0000005 on Electrum 3.0.2 after:

  • Rebooting
  • Disabling Windows Defender real-time protection (I don't use third party AV).
  • Setting Windows compatibility mode (Windows Vista, Windows 7).
  • Logging in under a different user account (administrator).
  • Logging in under a different user account (user).
  • Moving Electrum exe to another filesystem and granting 'everyone' 'full control' of it.

And here's the corresponding event log entry.

I should have mentioned, my Windows 10 version is 1709, build 16299.64. It would be good if someone else can confirm Electrum 3.x is working on this build.

Also, does Electrum 3.x have any new runtme dependencies or was it built with a new dev environment?

Thanks

Also, does Electrum 3.x have any new runtme dependencies or was it built with a new dev environment?

Yes, well, a lot changed between 2.9.x and 3.0.x.
The Windows binaries are now built using pyinstaller 3 (instead of 2), and using python 3.5 (instead of 2.7). The new Windows binaries depend on UCRT (win10 visual cpp runtime); see https://github.com/spesmilo/electrum/issues/3171

It would indeed be nice if someone could test with that build of Windows 10.

I should have mentioned, my Windows 10 version is 1709, build 16299.64. It would be good if someone else can confirm Electrum 3.x is working on this build.

Ok, I found another system with the same Windows build, and Electrum 3.0.2 works there.

I'm primarily suspecting a missing dependency, as my Windows install is only a few weeks old. UCRT, from what I can see, should be built-in and covered by Windows Update though. I had a quick look at Electrum 2.x vs 3.x in Microsoft Dependency Walker, but I'm not very experienced with this tool. The first level of dependencies looked the same. I can look at it again tomorrow.

I had a quick look at Electrum 2.x vs 3.x in Microsoft Dependency Walker, but I'm not very experienced with this tool. The first level of dependencies looked the same. I can look at it again tomorrow.

I did a Dependency Walker export ("Text with Import/Export Lists") on both systems and diffed the results. All the same DLLs are present and they have the same checksums.

At this point, I'm not interested in running Electrum 3.x but I'm available to help debug if this is deemed a wider problem affecting others.

I'm getting the same error for electrum 3.0.2 but also for the jaxx desktop wallet

This is caused by Windows Address Space Layout Randomization, ASLR
https://blogs.technet.microsoft.com/srd/2017/11/21/clarifying-the-behavior-of-mandatory-aslr/

If you fix "the windows setting" to enforce ASLR for all processes Electrum crashes with 0x..5...

Thanks, excellent point. I was toying with these setting earlier and got surprized how ASLR is off by default.

I was thinking 'who on earth would make her program depend on various memory positions?' , enabled it and forgot. I was wrong somehow with my rethoric question

@munichhilton is correct. I was able to reproduce the issue when enabling mandatory ASLR for the Electrum executable (using EMET on Windows 10.0.15063).

I can confirm disabling Mandatory ASLR via Windows Defender Security Center allows Electrum 3.x to run.
image
However, I don't believe I have toyed with this setting, so it may have been enforced by something else.

Same here, default system settings and error as above.

Was this page helpful?
0 / 5 - 0 ratings