question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lot of errors while compiling release build

See original GitHub issue

Hi,

I’m using the latest version of this library. While compiling the release build of my App, I can see those errors in the output:

System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
   at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)
Failed to read 'C:\VisualStudioProjects\Projects\comune\Comune\Comune.Android\obj\Release\linksrc\FFImageLoading.Platform.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
   at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)
Failed to read 'C:\VisualStudioProjects\Projects\comune\Comune\Comune.Android\obj\Release\linksrc\FFImageLoading.Transformations.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
   at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)
Failed to read 'C:\VisualStudioProjects\Projects\comune\Comune\Comune.Android\obj\Release\android\assets\FFImageLoading.Forms.Droid.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
   at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)
Failed to read 'C:\VisualStudioProjects\Projects\comune\Comune\Comune.Android\obj\Release\android\assets\FFImageLoading.Platform.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
   at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)
Failed to read 'C:\VisualStudioProjects\Projects\comune\Comune\Comune.Android\obj\Release\android\assets\FFImageLoading.Transformations.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
   at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)

Is it a problem with your library? Let me know, thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
goldmontcommented, Oct 17, 2017

I switched to Mac. Thank you man for your work.

0reactions
daniel-luberdacommented, Oct 16, 2017

Newest code compiles just fine on Windows and Mac, we use AppVeyor and all build are compiled on Windows. I don’t think those errors are related to FFImageLoading at all (rather Visual studio issue)

Read more comments on GitHub >

github_iconTop Results From Across the Web

When changing build target to release in Visual Studio ...
c++ - When changing build target to release in Visual Studio, thousands of errors appear - Stack Overflow.
Read more >
Common Problems When Creating a Release Build
Common Problems When Creating a Release Build · In this article · Heap Layout · Compilation · Pointer Support · Optimizations · See...
Read more >
Fixing Release Build Problems
In this article ... If your code generates compile errors after switching from debug build to release build, there are some areas you...
Read more >
Errors when compiling in release mode of Visual Studio but ...
Errors when compiling in release mode of Visual Studio but Debug mode is fine. We wanted to see if the Telerik controls like...
Read more >
[Solved] I can't compile in release mode
My first guess is that you have some preprocessor settings missed or different in release build. Some more details as the complete error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found