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

Pdb2Pdb.exe failed with -532462766 #6226

Closed
forki opened this issue Feb 11, 2019 · 19 comments
Closed

Pdb2Pdb.exe failed with -532462766 #6226

forki opened this issue Feb 11, 2019 · 19 comments

Comments

@forki
Copy link
Contributor

forki commented Feb 11, 2019

local build on master (31a98b9) after git clean -xdf with build.cmd debug:

image

@forki
Copy link
Contributor Author

forki commented Feb 11, 2019

calling it manuall and we see netstandard can't be found:

image

@abelbraaksma
Copy link
Contributor

abelbraaksma commented Feb 11, 2019

I linked issue #6182, not sure it's related as that was not a .NET Standard project, but this remarkably unique error number is the same.

Also, in the referred issue, the problem went away after compiling a second time. Was that the case here too?

@cartermp
Copy link
Contributor

@tmat any ideas about this error? I haven't seen it myself

@tmat
Copy link
Member

tmat commented Feb 11, 2019

No idea :(

@cartermp
Copy link
Contributor

cartermp commented Feb 11, 2019

I just tried with both master and dev16.0 and it doesn't reproduce😕

@forki
Copy link
Contributor Author

forki commented Feb 12, 2019 via email

@KevinRansom
Copy link
Member

@forki for the machine that repros the issue, what version of VS is installed.

And can you attach the fsharp.proj.build.binlog from the artifacts\logs\debug directory please

Thanks

@forki
Copy link
Contributor Author

forki commented Feb 12, 2019

sure.

15.9.6

fsharp.proj.build.zip

@KevinRansom
Copy link
Member

@forki, it would seem as if the runtime can't find netstandard.dll
When running this command:

"C:\Users\Steffen\.nuget\packages\Pdb2Pdb\1.1.0-beta1-63314-01\tools\Pdb2Pdb.exe" "d:\code\visualfsharp\artifacts\bin\FSharp.Core\Debug\net45\FSharp.Core.dll" /out "d:\code\visualfsharp\artifacts\SymStore\net45\FSharp.Core.pdb" /srcsvrvar SRC_INDEX=public

Gives this message:

Unbehandelte Ausnahme: System.IO.FileNotFoundException: Die Datei oder Assembly "netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

On my machine it locates it from the GAC:

image

I suppose the install of the desktop framework might have gone wrong:

To see what versions of netstandard you have in the GAC:

type:
gacutil -l netstandard

Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.0
Copyright (c) Microsoft Corporation.  All rights reserved.

The Global Assembly Cache contains the following assemblies:
  netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL

Number of items = 1

c:\microsoft\visualfsharp\fcs>

@forki
Copy link
Contributor Author

forki commented Feb 15, 2019

image

but why would I habe that? and why does it need it in GAC?

@KevinRansom
Copy link
Member

@forki, I have no idea .. to both questions. netstandard.dll is deployed with the desktop dotnet framework into the framework directory, and I believe should load from there.

What version of the desktop framework is installed on your machine:
I am using 4.7.2
image

@forki
Copy link
Contributor Author

forki commented Feb 18, 2019

ok it looks like I don't have 4.7.2 and I can't install it (because WIndows!) - anyway DEVGUIDE only lists 4.6 as requirement.

@cartermp
Copy link
Contributor

Ergh, looks like we'll need to update that. Although the projects themselves don't require it in master, it looks like we do actually have a dependency on net472, since we're now working with netstandard2.0 components. I'll update it.

@forki You should be able to install it from the VS installer as a redistributable. I believe it will cause a reboot if you're on an older version of Windows though.

cartermp added a commit that referenced this issue Feb 18, 2019
As per #6226 this is required
@abelbraaksma
Copy link
Contributor

Glad you found the cause :). Can we conclude that exit code 532462766 means a missing assembly? And if so, is there any way the message can be improved (text instead of number)?

Considering that my linked situation had this error only once it might have been a temp disk failure, hiccup or network interrupt.

@forki
Copy link
Contributor Author

forki commented Feb 18, 2019 via email

KevinRansom pushed a commit that referenced this issue Feb 20, 2019
@cartermp
Copy link
Contributor

@forki Have you had the chance to work on a machine with net472? If so, does this reproduce?

@cartermp
Copy link
Contributor

@forki Any update? I was unable to reproduce with net472 on my machine

@forki
Copy link
Contributor Author

forki commented May 20, 2019

I think I'll reopen if I see it again. Thanks

@forki forki closed this as completed May 20, 2019
@abelbraaksma
Copy link
Contributor

While this issue was closed, it still happens. I have reported in the still open connected issue though, that is: #6182.

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

No branches or pull requests

5 participants