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

Delta doesn't start on Windows 7 #1323

Closed
missytake opened this issue Jan 8, 2020 · 52 comments · Fixed by #1737
Closed

Delta doesn't start on Windows 7 #1323

missytake opened this issue Jan 8, 2020 · 52 comments · Fixed by #1737
Assignees
Labels
bug Something isn't working

Comments

@missytake
Copy link
Contributor

  • Platform (linux/mac/windows): windows 7
  • Delta Chat Desktop Version: 0.901.0 (setup.exe)
  • Expected behavior: Delta Chat starts
  • Actual behavior: The process exits after a few seconds.
  • Steps to reproduce the problem: Start the desktop client (no matter which way)
  • Screenshots:

windows screenshot

  • Logs:

console output:

C:\Users\mike>AppData\Local\Programs\deltachat-desktop\DeltaChat.exe

C:\Users\mike>
 Logfile: C:\Users\mike\AppData\Local\DeltaChat\logs\2020-01-08-19-08-11.log.tsv

C:\Users\mike\AppData\Local\Programs\deltachat-desktop\resources\app.asar.unpacked\node_modules\deltachat-node\prebuilds\win32-x64\node.napi.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)

    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
    at Object.module.(anonymous function) [as .node] (as .node] (ELECTRON_ASAR.js:169:18)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at load (C:\Users\mike\AppData\Local\Programs\deltachat-desktop\resources}app.asar\mode_modules\node-gyp-build\index.js:20:10)
    at Object.<anonymous> (C:\Users\mike\AppData\Local\Programs\deltachat-desktop\resources\app.asar\node_modules\deltachat-node\binding.js:1:198)

the logfile at C:\Users\mike\AppData\Local\DeltaChat\logs\2020-01-08-19-08-11.log.tsv is empty.

@gerryfrancis
Copy link
Contributor

gerryfrancis commented Jan 8, 2020

Exactly the same error appears when the file "deltachat.dll" is not present in "%USERPROFILE%\AppData\Local\Programs\deltachat-desktop\resources\app.asar.unpacked\node_modules\deltachat-node\prebuilds\win32-x64":

Logfile: C:\Users\PC_USER\AppData\Local\DeltaChat\logs\2020-01-08-21-58-59.log.tsv
C:\Users\PC_USER\AppData\Local\Programs\deltachat-desktop\resources\app.asar\src\main\index.js:30
throw err
^

Error: The specified module could not be found.
\?\C:\Users\PC_USER\AppData\Local\Programs\deltachat-desktop\resources\app.asar.unpacked\node_modules\deltachat-node\prebuilds\win32-x64\node.napi.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
at require (internal/modules/cjs/helpers.js:20:18)
at load (C:\Users\PC_USER\AppData\Local\Programs\deltachat-desktop\resources\app.asar\node_modules\node-gyp-build\index.js:20:10)
at Object. (C:\Users\PC_USER\AppData\Local\Programs\deltachat-desktop\resources\app.asar\node_modules\deltachat-node\binding.js:1:198)

Does that file exist in there?

Also please see #1269 .

@pabzm pabzm added this to To do in Desktop 1.0 release via automation Jan 9, 2020
@pabzm pabzm added the bug Something isn't working label Jan 9, 2020
@Jikstra
Copy link
Contributor

Jikstra commented Jan 14, 2020

@missytake @gerryfrancis Can you try out this portable build from this pr #1349 if this bug still happens?

https://download.delta.chat/desktop/preview/deltachat-desktop-1349.exe
Mirror in case pr got merged:
https://transfer.sh/b8FRj/deltachat-desktop-1349.exe

The portable build will not find your existing configuration so you need to setup again.

@missytake
Copy link
Contributor Author

Unfortunately it still doesn't start. (Can't say anything about the portable folder.)

I don't know if it is still the same traceback, as the traceback only appears with setup.exe versions o.0

@Jikstra
Copy link
Contributor

Jikstra commented Jan 14, 2020

Do you run it in a vm? The portable.exe is heavily compressed so it can take some time until it's unpacked. To know if it's the same traceback would be very helpful :)

@gerryfrancis
Copy link
Contributor

@Jikstra Actually I have not tested Delta Chat on Windows 7, but I think I can grab an appropriate PC system to find out. (So far, Delta Chat runs just fine with Windows 8.1 Pro.) I have thought that the "deltachat.dll" file might not be installed on Windows 7 (properly). I will check that as soon as I can.
@missytake Could your antivirus software block "deltachat.dll"?

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

I might be having the same issue on a Windows 10 machine. When I try to start Delta, I get the little blue circle for about a second and then nothing. Nothing opens. I'm not sure how to get log files, but willing to help. I'm on a Microsoft Surface:
surface

@gerryfrancis
Copy link
Contributor

@Axehaft Have you installed Delta Chat by running setup.exe before, or are you trying to run the portable release?

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

I used the setup file: DeltaChat Setup 0.901.0

@gerryfrancis
Copy link
Contributor

@Axehaft And have you installed Delta Chat already but the app itself does not run? Or does the setup itself not start?

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

Ahhh sorry. I was not clear. I installed Delta Chat. Everything shows that it installed OK. When I click on the shortcut for the app itself, that is when I get the blue circle for a second and then nothing.

@gerryfrancis
Copy link
Contributor

@Axehaft Never mind. Please check the recent log file located in path "C:\Users\YourUserProfile\AppData\Local\DeltaChat\logs". ("YourUserProfile" is a placeholder for the name of your Windows user profile.) If there is a crash, it should be logged there.

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

A log is created, but it is empty.
log
When I open the file, there is nothing there.

@gerryfrancis
Copy link
Contributor

gerryfrancis commented Jan 16, 2020

@Axehaft Please look for entries of the source "Application Error" in the Application log (by running Windows Event Viewer).

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

Not seeing anything show up there. This is what I'm seeing ... maybe I'm not looking in the right place?
log_001

@missytake
Copy link
Contributor Author

@Jikstra

You requested further information on my Windows version, path to .exe, and username in a private chat:

  • Windows Version 6.1 (Build 7600)
  • .exe Path: C:\Users\mike\Downloads\DeltaChat0.901.0.exe
  • Username: mike

@gerryfrancis
Copy link
Contributor

@Axehaft The place is correct. Actually I am out of ideas... :/

@missytake
Copy link
Contributor Author

@Axehaft You are running the setup version, not the portable version, right?

Can you open cmd.exe (with the windows+R key combination), and execute AppData\Local\Programs\deltachat-desktop\DeltaChat.exe? This gave me a traceback earlier when I tried it.

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

@missytake Cool! Thanks. Yes - setup version. Looks like the same as what you had:
log_002

@gerryfrancis
Copy link
Contributor

@Axehaft @missytake Please check if the file "deltachat.dll" is present in "%USERPROFILE%\AppData\Local\Programs\deltachat-desktop\resources\app.asar.unpacked\node_modules\deltachat-node\prebuilds\win32-x64". It should be there. If it is not, probably an antivirus software might have scanned the file, detected a false positive, and maybe deleted the file.

@missytake
Copy link
Contributor Author

missytake commented Jan 16, 2020

deltachat.dll is there, and I don't have antivirus software

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

deletachat.dll is there for me too. I don't have antivirus software and I disabled Windows Defender.

@gerryfrancis
Copy link
Contributor

Thanks for reporting. At least we can rule out antivirus software, and the issue is not limited to Windows 7...

@Axehaft
Copy link

Axehaft commented Jan 16, 2020

One more thing. The moduel that the log says can't be found seems to be there:
log_003

@missytake
Copy link
Contributor Author

@missytake @gerryfrancis Can you try out this portable build from this pr #1349 if this bug still happens?

https://download.delta.chat/desktop/preview/deltachat-desktop-1349.exe
Mirror in case pr got merged:
https://transfer.sh/b8FRj/deltachat-desktop-1349.exe

The portable build will not find your existing configuration so you need to setup again.

After a Windows Update which also fixed my C++ Redistributable issue, this build suddenly works for me. Seems it was a problem with my Windows installation... @Axehaft can you install the latest Windows Updates and try again?

@Axehaft
Copy link

Axehaft commented Jan 20, 2020

Ok. Everything is completely up to date on my Surface, still no go = little blue wheel for a second or so and then nothing. I deleted and reinstalled again as well.

@Simon-Laux
Copy link
Member

Simon-Laux commented Jan 21, 2020

A friend installed it on win10 (1903) 64bit and it worked fine for them.

@Axehaft
Copy link

Axehaft commented Jan 21, 2020

Yes. I works fine on my wifes laptop and my desktop machines, all which are Windows 10. Just not my Microsoft Surface which is Windows 10 Pro. Without logs. there seems to be no way of knowing why it wont work.

@gerryfrancis
Copy link
Contributor

@Axehaft The Surface models feature displays with very high resolutions. Which do you run on your three systems? (The Surface might have the highest one.) (Just a shot in the dark...)

@gerryfrancis
Copy link
Contributor

gerryfrancis commented Jan 23, 2020

The same behavior occurs when the file "vcruntime140.dll", which is part of the "Microsoft Visual C++ 2015-2019 Redistributable", is not present in the path "C:\Windows\System32".
@Axehaft Could you please check if the file "vcruntime140.dll" exists in "C:\Windows\System32"?

@Jikstra
Copy link
Contributor

Jikstra commented Feb 4, 2020

@Axehaft will close this issue for now, please reopen it if it's still happening to you with the latest desktop version (0.999.1)

@Jikstra Jikstra closed this as completed Feb 4, 2020
Desktop 1.0 release automation moved this from To do to Done Feb 4, 2020
@TheOtherDoctor
Copy link

TheOtherDoctor commented Mar 25, 2020

Having the very same problem with installing version 1.1.1 on Windows 10: install works smooth, then the stopping with missing module,

Error: The specified module could not be found.
\\?\C:\Users\xxxxxxx\AppData\Local\Programs\deltachat-desktop\resources\app.asar.unpacked\node_modules\deltachat-node\prebuilds\win32-x64\node.napi.node
    at process.func (electron/js2c/asar.js:138:31)
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
    at Object.func (electron/js2c/asar.js:138:31)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at load (C:\Users\xxxxxxx\AppData\Local\Programs\deltachat-desktop\resources\app.asar\node_modules\node-gyp-build\index.js:21:10)

Could not determine from the comments above how to actively solve this.
Did I miss some prerequisites which need to be installed?

Tried the previews 1495 and 1472 - there not even the install process seems to start. :-(
The portable version does nothing - started from a cmd shell, just make HDD flash for some seconds and the cmd prompt is back.

@Simon-Laux
Copy link
Member

Simon-Laux commented Mar 25, 2020 via email

@TheOtherDoctor
Copy link

64bit. Win 10 home, Version 1909, Build 18363.720, on a Lenovo T400.
No devel tools or the like installed, as I am preparing a rollout for a non-techie person.

@TheOtherDoctor
Copy link

I installed the mentioned Dependencies tool, opened the file - and cannot understand what I see. :-(

The vcruntime, which has also been mentioned above, "vcruntime140.dll" exists in "C:\Windows\System32", is called vcruntime140_clr0400.dll on my system.

Anything else I could do?

@Jikstra Jikstra reopened this Mar 29, 2020
Desktop 1.0 release automation moved this from Done to In progress Mar 29, 2020
@Jikstra
Copy link
Contributor

Jikstra commented Mar 29, 2020

@TheOtherDoctor, can you you give us a screenshot from the output of the dependencies tool? :)

@TheOtherDoctor
Copy link

TheOtherDoctor commented Mar 31, 2020

So this is the file I throw into the DepTool...
DepTool_filepick
...and this is what I see then:
DepTool_filedeps

As mentioned before, the vcruntime has a different name, I guess that means it does not match the requirement and I'd have to install some vc_redist separately?
Thus I just installed the latest from https://support.microsoft.com/de-de/help/2977003/the-latest-supported-visual-c-downloads and the DeltaChat desktop GUI starts, great. Should have come that that conclusion earlier. ;-)

Remaining question: I have to assert this manually whenever I install the desktop app on a Win10 PC, or should that have been handled during installation?

@Jikstra
Copy link
Contributor

Jikstra commented Apr 1, 2020

As mentioned before, the vcruntime has a different name, I guess that means it does not match the requirement and I'd have to install some vc_redist separately?

I don't know too much about windows, but I guess this is the problem. We need to try it out and see if it helps. If it helps it's maybe possible to bundle that .dll with deltachat-desktop, but that would be a next step.

Remaining question: I have to assert this manually whenever I install the desktop app on a Win10 PC, or should that have been handled during installation?

I know that it's sometimes possible to just put the .dll next to the .exe (maybe also next to the .node file) and then it magically finds it. But it could be possible that there will be legal problems with this and we would somehow need to make sure that the visual c runtime is getting installed along deltachat desktop.

Thank you very much for figuring this out!

@TheOtherDoctor
Copy link

You're welcome - and thanks a lot for all your work!
About making the app install smoother on Windows (which I have no significant idea about, as a devel platform), before investing work into fixing this specific issue, I'd propose to consider making any such error visible for the user.
Even something as simple as some try/catch-like post-fail splash screen "app failed to start, for troubleshooting please have a look into https://... (README) ..." would be already way better than silently dying.

@r10s r10s added this to ToDo in Desktop Priorities via automation Apr 2, 2020
@r10s r10s moved this from ToDo to In progress in Desktop Priorities Apr 2, 2020
@gerryfrancis
Copy link
Contributor

gerryfrancis commented Apr 2, 2020

IMHO, that explains why Delta Chat runs out of the box on many Windows systems. Nevertheless, the installer of Delta Chat should include Visual C++ Runtime from Microsoft, and check whether it is necessary to install it. Windows does not feature Visual C++ Runtime by default.

@hpk42
Copy link
Contributor

hpk42 commented Apr 19, 2020

We just got another user who remotely helped a friend set up DC on windows -- they had to install the Visual C++ runtime as well.

@Axehaft
Copy link

Axehaft commented May 11, 2020

Hello All. I just want to add that I also installed the Visual C++ Runtime from Microsoft ... and now DC starts and runs well on my Surface.

@Simon-Laux
Copy link
Member

Hey folks, I have a portable version for you to test https://testrun.org/DeltaChat%201.4.0.testing.exe
It works for me on my windows vm, but I want to know if it works for you too.

@gerryfrancis
Copy link
Contributor

gerryfrancis commented Jun 23, 2020

@Simon-Laux Edit: Thanks, please forget my previous message about ffmpeg.dll, I had not enough disk space. ;) Now it works! I will do some tests with and without pre-installed VC runtime, and will post my results later on.

@gerryfrancis
Copy link
Contributor

@Simon-Laux While this version works fine on my Windows system, I wanted to test the prior version 1.3.4 (without Visual C++ runtime) to see whether it works, too, without the runtime. For this purpose, I uninstalled Visual C++ runtime 2017, 2015, and 2013 - but 1.3.4 still works fine! What am I doing wrong??

@gerryfrancis
Copy link
Contributor

@Simon-Laux It seems some other software product(s) want(s) to keep the runtime dll files on my Windows system. (I have found them in the Windows system folders, although I officially uninstalled these runtimes.) Since I do not have another system I could test the new version on, I am afraid to say that I cannot continue to check, sorry for that. :(

@Simon-Laux
Copy link
Member

@gerryfrancis no problem.

@missytake
Copy link
Contributor Author

Hey folks, I have a portable version for you to test https://testrun.org/DeltaChat%201.4.0.testing.exe

That version seems to work on my machine :) great. This means we can close this issue, right?

Desktop Priorities automation moved this from In progress to Done Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

8 participants