issue 0xc000007b #1338

Closed
Vladislav-S opened this Issue Aug 17, 2016 · 14 comments

Projects

None yet

3 participants

@Vladislav-S

downloaded new NVIDIA drivers and now its work

@bjorn
Owner
bjorn commented Aug 18, 2016

Well, you should not need to download NVIDIA drivers to get Tiled to work, so this is still a valid issue. It is a problem with the way the Visual Studio 2013 Runtime is shipped in the Tiled installer (and it's hence specific to 64-bit Tiled, since the 32-bit version is built with MinGW instead).

I tried to solve this issue by using the available Merge Modules, but so far it has not resulted in a usable installer for me so I must be doing something wrong.

@bjorn bjorn reopened this Aug 18, 2016
@bjorn bjorn added the Windows label Aug 18, 2016
@davidwesst

I just hit is this issue this evening. I'm running Windows 10 v1607 and I'm sure I had it working before. Not sure what could have changed, but would like to help if I can.

I've installed the 32-bit to keep working on my game, but the 64-bit version continues to give me grief.

What info can I provide to help?

@Vladislav-S
@Vladislav-S
@bjorn
Owner
bjorn commented Jan 14, 2017

@Vladislav-S I'm happy to hear your MacBook resolved all your problems, but I still have 19 open issues on OS X. :-P

@davidwesst I eventually noticed what was up with the shipped DLLs and fixed it for the snapshot builds. Could you try a snapshot 64-bit build resolves your issue? You can find them at https://update.mapeditor.org/snapshots-win/. I'll make sure to include this fix in the 0.18.1 release as well, but it would be nice to know for sure whether it resolves this issue.

@davidwesst
davidwesst commented Jan 17, 2017 edited

@bjorn I installed Tiled-0.18.1483-win64 and still have the same error. I've uninstalled the old versions, and re-installed, with still no luck.

Any ideas on how I can triage the issue on my system?

EDIT: Just wanted to add that, looking at the fix you referenced it makes sense and figured it would have fixed it for me, but no dice.

@bjorn
Owner
bjorn commented Jan 17, 2017

@davidwesst Hmm, that's unfortunate. Could you try http://www.dependencywalker.com/ for figuring out which DLLs the tiled.exe is loading and whether they have the correct architecture?

@davidwesst
davidwesst commented Jan 19, 2017 edited

I managed to get some time to triage it with dependency walker, and found a few things. I did a fresh install of the x64 MSI for version 18.1483. There are errors when I go through tiled.exe. Here's the log:

Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

In regards to any DLLs with the incorrect architecture, there are two that are used through many of the DLLs:

  • MSVCP120.DLL
  • MSVCR120.DLL

Thoughts?

@bjorn
Owner
bjorn commented Jan 19, 2017

That is strange, because these two DLLs are exactly the ones that I fixed. Did you check the path to see whether they are the ones shipping with Tiled (they are in the Tiled installation directory)?

@davidwesst

Looks like it. I've included a screenshot, just in case I'm missing something:

tiled

@bjorn
Owner
bjorn commented Jan 23, 2017

Hmm, indeed for some reason the MSI installer is still putting the wrong file:

MSI (s) (D0:40) [11:46:28:957]: Executing op: FileCopy(SourceName=MSVCP120.DLL,SourceCabKey=MSVCP120,DestName=MSVCP120.DLL,Attributes=512,FileSize=455488,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=12.0.40649.5,Language=1033,InstallMode=58982400,,,,,,,)
MSI (s) (D0:40) [11:46:28:957]: File: C:\Program Files\Tiled\MSVCP120.DLL;	To be installed;	Won't patch;	No existing file
MSI (s) (D0:40) [11:46:28:957]: Source for file 'MSVCP120' is compressed
InstallFiles: File: MSVCP120.DLL,  Directory: C:\Program Files\Tiled\,  Size: 455488

The correct file for 64-bit should be 645 KiB, whereas here it installs a file of 445 KiB.

@bjorn bjorn added a commit that closed this issue Jan 23, 2017
@bjorn Windows Installer: Fixed selection of the right MSVC DLL once more
The previous method was not working, probably because System32 is some
kind of magic directory, that contains 64-bit DLLs which actually look
like 32-bit DLLs to 32-bit applications (probably including Wix).

Also added an icon to the Install button, indicating the installer will
require adminstrator permissions.

Closes #1338
c717d5a
@bjorn bjorn closed this in c717d5a Jan 23, 2017
@bjorn
Owner
bjorn commented Jan 23, 2017

After much time was lost trying different things, I think I know why this was going wrong (see the commit message...).

@davidwesst I closed the issue because I'm pretty sure this was it, but please do still verify.

@davidwesst

Works like a charm! :)

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