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

Microsoft Visual C++ Runtime error on windows displayed on start of Electrum 2.0 beta #1000

Closed
brijananand opened this issue Feb 2, 2015 · 27 comments

Comments

@brijananand
Copy link

Whenever I run Electrum 2.0 Beta, before the wallet loads I get a C++ runtime error. I've tried this both on my laptop and desktop, both running windows 7 and WIndows 8.1 respectively.

Error information Screenshot: http://i.imgur.com/DqkmIrX.png

I also have Electrum 1.9.8 installed.

@tl121
Copy link

tl121 commented Feb 3, 2015

I had a similar problem on my 64 bit Windows 8.1 system. This had previously had Electrum 1.9.8 but no other Electrum related software or required packages. Before running the test I uninstalled Electrum 1.9,8 and deleted the user directory in Roaming\Electrum,

I did not get this error on my 64 bit Windows 7 system and was able to install the 2.0 beta .exe and run it without error, restoring an older software wallet from seed. However, I had already been running an earlier version of Electrum 2.0 from source including all of the necessary packages needed to run Electrum 2.0 and Trezor support, which included a 32 bit installation of Python-Qt, Cython, etc. as necessitated by the use of the free 32 bit Microsoff C++ runtine library.

@shsmith
Copy link
Contributor

shsmith commented Feb 6, 2015

This error occurs only when MSVCR90.DLL is found in your %PATH%.
Developers can reproduce the error message by placing a copy of MSVCR90.DLL in the same folder as electrum-2.0-beta.exe.

@tl121
Copy link

tl121 commented Feb 6, 2015

I found that whether the error appeared or not depended on the particular file that I put in the folder with electrum-2.0-beta.exe. My system had 30 copies of mscvr90.dll. Some gave an error and some didn't. I found no particular way to characterize whether a file would would give the error, not in terms of modification date, file size, or even product version. A clear case of Windows .DLL hell.

@Tritonio
Copy link

Tritonio commented Mar 2, 2015

I read this post: https://stackoverflow.com/questions/14552348/runtime-error-r6034-in-embedded-python-application

And found out that, IN MY CASE, it was my Python installation that caused this problem by adding it's own msvcr dll in my system path.

You can use a simple autoit3 script like this to launch Electrum without getting this error:

EnvSet("PATH", "")
Run("electrum-2.0.exe")

EDIT: Maybe this could be added to the wrapper by the dev?

@ecdsa
Copy link
Member

ecdsa commented Mar 23, 2015

does electrum still start after that message is displayed, or does it terminate the program?

@Tritonio
Copy link

It starts properly after pressing "OK" or whatever button there is.

@tl121
Copy link

tl121 commented Mar 23, 2015

While I was having the problem with the beta test versions (before I fixed the .dll situation) dismissing the error dialog box left the program running, just as with Tritonio.

The good news is that the 2.0.2 and 2.0.3 release Windows installers do not generate this error.

@ecdsa
Copy link
Member

ecdsa commented May 22, 2015

so, it seems to be fixed now.

@ecdsa ecdsa closed this as completed May 22, 2015
@jdreesen
Copy link

Just installed v2.2 and have this exact error.

@leafcutterant
Copy link

The portable version of 2.3.1 has this too. I'm on Windows 7 x64.

@ecdsa ecdsa reopened this Jun 14, 2015
@kmpm
Copy link

kmpm commented Jul 7, 2015

2.3.2 portable and standalone has this issue. Windows 7 x64

@triorr
Copy link

triorr commented Sep 2, 2015

Just rename the app to "electrum.exe" and it will be fixed .

@leafcutterant
Copy link

Wow, @triorr 's advice works. Thank you!

@ecdsa
Copy link
Member

ecdsa commented Sep 3, 2015

any idea why it works?

@leafcutterant
Copy link

@ecdsa - I have no idea. I'm no programmer (so this may make no sense) but I guess that something in the .exe's code still references itself as "electrum.exe".

@triorr
Copy link

triorr commented Sep 4, 2015

Could be something related to py2exe , I don't know.

@Marokovan
Copy link

Thank you Triorr, renaming to the file to "electrum.exe" WORKS.

@ecdsa
Copy link
Member

ecdsa commented Oct 10, 2016

I have a Windows10 computer, and I cannot reproduce this issue with the 2.7 builds.
Can someone test with the latest builds?

@protonn
Copy link

protonn commented Oct 12, 2016

I get the error message with Electrum portable, but it will startup after I click ok. If I rename to electrum.exe the error message does not appear.

I can run Electrum-LTC 2.6.4.2 portable on the same machine with no error message, without changing the filename (electrum-ltc-2.6.4.2.exe).

Running Windows 10.

@ecdsa
Copy link
Member

ecdsa commented Oct 13, 2016

@pooler can you explain how the building method differs with LTC ?

@pooler
Copy link
Contributor

pooler commented Oct 13, 2016

As far as I can tell the building method is the same. What appears to be different is the version of the dependencies, and probably the building environment itself. For what it's worth, Electrum-LTC 2.6.4.2 was built using Python 2.7.11 running under Wine 1.6.2. The various packages such as PyQt4 are probably a different version than what specified in prepare-wine.sh as well, since I remember I installed them manually.

@ecdsa
Copy link
Member

ecdsa commented Oct 13, 2016

ok, thanks for sharing the info

@patrikr
Copy link

patrikr commented Dec 23, 2016

Same startup error message with Electrum 2.7.12 in Windows 8.1 64-bit. (With both standalone and portable.)

Renaming the binary to electrum.exe fixed it.

@0rkaM
Copy link

0rkaM commented Jan 10, 2017

Same problem on electrum-2.7.16-portable.exe... renaming without the "-2.7.16-portable" fixes the problem.
Kind of bad that a bitcoin wallet is not properly tested.
(I do have Python 3.3.5 standard installation)

@Moongazer
Copy link

Problem still exists. I used the "Standalone Executable" electrum-2.7.18.exe and this error shows up. After clicking "OK", it seems to work fine. And its true, renaming the file to electrum.exe fixes the problem (thanks @0rkaM)

System: Windows 8.1 64bit, no Python installed

@ecdsa
Copy link
Member

ecdsa commented Mar 9, 2017

this should be fixed in 2.8.0 builds. please confirm.

@ecdsa ecdsa closed this as completed Mar 9, 2017
@Moongazer
Copy link

Can confirm, issue is solved in 2.8.0, thanks

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

No branches or pull requests