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.

[C#] Unhandled exception when try to recover

See original GitHub issue

Sometimes I get an unhandled exception when calling Recover() method of FasterKV<Key, Value> class

System.Runtime.Serialization.SerializationException HResult=0x8013150C Message=Expecting element ‘ArrayOfstring’ from namespace ‘http://schemas.microsoft.com/2003/10/Serialization/Arrays’… Encountered ‘None’ with name ‘’, namespace ‘’. Source=System.Private.DataContractSerialization StackTrace: at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at FASTER.core.DataContractObjectSerializer1.Deserialize(T& obj) at FASTER.core.GenericAllocator2.Deserialize(Byte* raw, Int64 ptr, Int64 untilptr, Record2[] src, Stream stream) at FASTER.core.GenericAllocator2.AsyncReadPageWithObjectsCallback[TContext](UInt32 errorCode, UInt32 numBytes, Object context) at FASTER.core.LocalStorageDevice.ReadAsync(Int32 segmentId, UInt64 sourceAddress, IntPtr destinationAddress, UInt32 readLength, DeviceIOCompletionCallback callback, Object context) at FASTER.core.GenericAllocator`2.AsyncReadPageWithObjectsCallback[TContext](UInt32 errorCode, UInt32 numBytes, Object context) at FASTER.core.LocalStorageDevice._callback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pNativeOverlapped)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
badrishccommented, Dec 15, 2021

Thanks for the feedback. Agreed, we will look into how to surface serialization exceptions to end user cleanly. CC @TedHartMS

1reaction
EugeneZhudrocommented, Dec 15, 2021

Thanks, We will try using this fix in our product. Anyway I think exception which client cannot catch in try catch block is not good

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio - Unhandled Exception Error C Programming
The unhandled exception error, from what I gathered through is caused by the program not being able to store the information within the...
Read more >
Handling unhandled exceptions and signals
When an application crashes on the iPhone, it disappears without telling the user what happened. However, it is possible to add exception ......
Read more >
Processing Unhandled Exceptions (C#)
Use the Server object's GetLastError method to retrieve details of the unhandled exception that caused the Error event to fire.
Read more >
c# - How to treat unhandled exceptions? (Terminate the ...
If you get an unhandled exception, it means you have an error you didn't expect and you can't say for sure what's happening...
Read more >
Modern C++ best practices for exceptions and error handling
In modern C++, in most scenarios, the preferred way to report and handle both logic errors and runtime errors is to use exceptions....
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