Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

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

Open
jzeferino opened this issue Sep 1, 2017 · 7 comments
Open

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

jzeferino opened this issue Sep 1, 2017 · 7 comments
Milestone

Comments

@jzeferino
Copy link

jzeferino commented Sep 1, 2017

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
Copy link
Contributor

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

@jzeferino
Copy link
Author

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

@GeertvanHorrik
Copy link
Contributor

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

@jzeferino
Copy link
Author

jzeferino commented Sep 10, 2017

@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

@GeertvanHorrik GeertvanHorrik modified the milestones: 3.2.0, 3.3.0 Sep 11, 2017
@jzeferino
Copy link
Author

@GeertvanHorrik any thoughts on that?

@GeertvanHorrik
Copy link
Contributor

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
Copy link
Author

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

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

No branches or pull requests

2 participants