GitTools / GitLink

Making .NET open source accessible!
MIT License
555 stars 86 forks source link

GitLink.GitLinkException: Pdb header didn't match #176

Open jzeferino opened 7 years ago

jzeferino commented 7 years ago

Steps to reproduce

  1. gitlink.exe <pdbFile>

Platform: .NET version 4.5.2 under mono 5.2.0.215 (OSX) Gitlink 3.0.0 or 2.1.0

The pdb file was generated in Release with <DebugType>pdbonly</DebugType>

Actual behaviour

Pdb header didn't match
[ERROR] FATAL UNHANDLED EXCEPTION: GitLink.GitLinkException: Pdb header didn't match
  at GitLink.Pdb.PdbFile.CheckPdbHeader () [0x00046] in <156ded793bc24bc890c4c0e71c6fac63>:0 
  at GitLink.Pdb.PdbFile..ctor (System.String path) [0x00090] in <156ded793bc24bc890c4c0e71c6fac63>:0 
  at GitLink.Linker.Link (System.String pdbPath, GitLink.LinkOptions options) [0x0004d] in <156ded793bc24bc890c4c0e71c6fac63>:0 
  at GitLink.Program.Main (System.String[] args) [0x000d2] in <156ded793bc24bc890c4c0e71c6fac63>:0 

Any suggestion?

EDIT:

ADITIONAL INFO:

Tested the same.pdb and gitlink version on windows and got:

Pdb header didn't match

Unhandled Exception: GitLink.GitLinkException: Pdb header didn't match
   at GitLink.Pdb.PdbFile.CheckPdbHeader()
   at GitLink.Pdb.PdbFile..ctor(String path)
   at GitLink.Linker.Link(String pdbPath, LinkOptions options)
   at GitLink.Program.Main(String[] args)
GeertvanHorrik commented 6 years ago

Are you sure your builds are creating pdb files? What is the target fx? New portable pdbs are not supported by GitLink.

jzeferino commented 6 years ago

@GeertvanHorrik I'm sure the pdb files exist. Targeting .NET Framework 4.5.2.

GeertvanHorrik commented 6 years ago

Is the repo open source? Then I can have a look.

jzeferino commented 6 years ago

@GeertvanHorrik thank you for the answer. The project is OS, but he GitLink is being used via Cake. Anyway, to test it without Cake, you could Build Cake.AndroidAppManifest.csproj and use the GitLink.exe over the generated .pdb files.

This is the project: https://github.com/cake-contrib/Cake.AndroidAppManifest

jzeferino commented 6 years ago

@GeertvanHorrik any thoughts on that?

GeertvanHorrik commented 6 years ago

To be honest, no. I haven't had the chance to look into this, but personal stuff & (paid) work always have a higher priority than OSS, so haven't had any free time so far.

jzeferino commented 6 years ago

@GeertvanHorrik I understand. Just ping me if you have some more information.