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

System.BadImageFormatException from JetBrains.Rider.Unity.Editor.AssetPostprocessors.PdbAssetPostprocessor:OnPostprocessAllAssets #1155

Closed
ajwalters opened this issue Apr 24, 2019 · 5 comments
Assignees
Milestone

Comments

@ajwalters
Copy link

Unity: 2018.1.9f1
JetBrains Rider 2018.3.4
Build #RD-183.6092.12, built on March 4, 2019
Licensed to Rider Evaluator
Expiration date: May 17, 2019
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6

Added a new plugin library to my unity project and when Assets are imported, I get the following stack trace:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders (System.UInt16& subsystem, System.UInt16& dll_characteristics) [0x00000] in :0
at Mono.Cecil.PE.ImageReader.ReadImage () [0x00000] in :0
at Mono.Cecil.PE.ImageReader.ReadImageFrom (System.IO.Stream stream) [0x00000] in :0
at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00000] in :0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in :0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName) [0x00000] in :0
at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName) [0x00000] in :0
at Pdb2Mdb.Driver.Main (System.String[] args) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115
at JetBrains.Rider.Unity.Editor.AssetPostprocessors.PdbAssetPostprocessor.ConvertSymbolsForAssembly (System.String asset) [0x00000] in :0
at JetBrains.Rider.Unity.Editor.AssetPostprocessors.PdbAssetPostprocessor.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPath) [0x00000] in :0
UnityEngine.Debug:LogError(Object)
JetBrains.Rider.Unity.Editor.AssetPostprocessors.PdbAssetPostprocessor:OnPostprocessAllAssets(String[], String[], String[], String[])
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[])

@van800
Copy link
Contributor

van800 commented Apr 30, 2019

Could you please give us dll and pdb files, which cause the problem? If you don't want to share it publicly, please send it Ivan.Shakhov at jetbrains.com. Thanks!

@van800 van800 self-assigned this Apr 30, 2019
@van800 van800 added this to the Rider 2019.2 milestone Apr 30, 2019
@van800
Copy link
Contributor

van800 commented Apr 30, 2019

Does the error show up many times or just once right after installing the new plugin?

@ajwalters
Copy link
Author

Just once. I will email you the DLL that was being imported that caused the error

@van800
Copy link
Contributor

van800 commented May 2, 2019 via email

@van800
Copy link
Contributor

van800 commented May 2, 2019 via email

van800 added a commit that referenced this issue May 14, 2019
@van800 van800 closed this as completed in 6137954 Jun 12, 2019
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

2 participants