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.

Fody runs out of memory with Mono 5

See original GitHub issue

I am using Fody through Realm for Xamarin. After upgrading to the latest version, I am seeing this error:

: error : Fody: An unhandled exception occurred: Exception: Out of memory StackTrace: at (wrapper alloc) System.Object:AllocVector (intptr,intptr) at Microsoft.Cci.Pdb.MsfDirectory…ctor (Microsoft.Cci.Pdb.PdbReader reader, Microsoft.Cci.Pdb.PdbFileHeader head, Microsoft.Cci.Pdb.BitAccess bits) [0x000a5] in <d39e61ae2787473a851567b860d13696>:0 at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, System.Collections.Generic.Dictionary`2[System.UInt32,Microsoft.Cci.Pdb.PdbTokenLine]& tokenToSourceMapping, System.String& sourceServerData, System.Int32& age, System.Guid& guid) [0x00027] in <d39e61ae2787473a851567b860d13696>:0 at Mono.Cecil.Pdb.PdbReader.PopulateFunctions () [0x00008] in <d39e61ae2787473a851567b860d13696>:0 at Mono.Cecil.Pdb.PdbReader.ProcessDebugHeader (Mono.Cecil.Cil.ImageDebugDirectory directory, System.Byte[] header) [0x00048] in <d39e61ae2787473a851567b860d13696>:0 at Mono.Cecil.ModuleDefinition.ProcessDebugHeader () [0x00012] in <b5a52cab1f0046ce9f68342127787868>:0 at Mono.Cecil.ModuleDefinition.ReadSymbols (Mono.Cecil.Cil.ISymbolReader reader) [0x00015] in <b5a52cab1f0046ce9f68342127787868>:0 at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00047] in <b5a52cab1f0046ce9f68342127787868>:0 at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x00076] in <b5a52cab1f0046ce9f68342127787868>:0 at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <b5a52cab1f0046ce9f68342127787868>:0 at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000a] in <b5a52cab1f0046ce9f68342127787868>:0 at InnerWeaver.ReadModule () [0x00052] in <f6f9069078364b4db60945017a527c4a>:0 at InnerWeaver.Execute () [0x00019] in <f6f9069078364b4db60945017a527c4a>:0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
yevgeniy-seleznevcommented, May 10, 2017

No, I no longer see the out of mem exception after upgrading to Fody 2.0.7. Running stable mono 5.0. Also, not using FodyCecil nuget.

0reactions
SimonCroppcommented, May 13, 2017

@yevgeniy-seleznev thanks for the confirmation. i will close this one

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fody System.OutOfMemoryException - xamarin.forms
EDIT: I found the problem. Inside the application there is a test DB that is 1.7gb. When I remove it the app compile....
Read more >
Quick Hack to Remove Line Memory from Spinning Reels
Rotate the spool to make sure all of the line is getting some direct contact from the water. Heating the line like this...
Read more >
How to Resolve Spring Webflux DataBufferLimitException
Spring WebFlux limits buffering of data in-memory in codec to avoid application memory issues. By default, this is configured to 262,144 ...
Read more >
Getting Started with Spring WebFlux
Thus, server B deals with backpressure and soon will go out of memory and fail. So, this backpressure can be handled or managed...
Read more >
Fody/Costura: Embed references as resources
This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to...
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