Asked by:
AccessVio

Question
-
AccessViolationException when we try to access the IMAPI objects. This seems to be happen in few machines after windows update (August 13, 2019—KB4512501 (OS Build 17134.950)).
- Also it not only affect IMAPI it affect different places where Interop Marshaling is happening.
- Also we found AccessViolationException in our Reporting component. (LayoutManager.UpdatePageBreaks())
- UCMS IT service tool also crashing because of the same issue.
Currently we found it is happening in 4 machines after this KB update. Once we uninstall we don’t see this issue.
Attached call stack for various places.
Optical Drive: _______________________ Application: syngo.DS.FE.Shell.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.GetEnumVariant() at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext() at syngo.DS.FE.LocalMedia.OpticalDrive.OpticalDrives+<get_DeviceIds>d__8.MoveNext() at System.Linq.Enumerable+WhereEnumerableIterator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() at syngo.DS.FE.LocalMedia.OpticalDrive.OpticalDrives.GetMediaRecorders(syngo.DS.FE.LocalMedia.OpticalDrive.DeviceType, System.Func`2<syngo.DS.FE.LocalMedia.OpticalDrive.IMediaRecorder,Boolean>) at syngo.DS.FE.LocalMedia.ViewModels.CustomExportDialogViewModel.AvailableOpticalDrive() at syngo.DS.FE.LocalMedia.ViewModels.CustomExportDialogViewModel.GetDvdList() at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) at System.Threading.Tasks.Task.ExecuteEntry(Boolean) at System.Threading.ThreadPoolWorkQueue.Dispatch() Reporting: ________________________________________ Unhandled exception in Reporting: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.GetEnumVariant() at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext() at KinetDx.CommonUtilities.HTMLUtilities.<GetAllVisibleHtmlElementsHelper>d__3.MoveNext() in d:\ProductFolder\Main\Report\Common\CommonUtilities\HTMLUtilities.cs:line 71 at KinetDx.CommonUtilities.HTMLUtilities.<GetAllVisibleHtmlElements>d__5.MoveNext() in d:\ProductFolder\Main\Report\Common\CommonUtilities\HTMLUtilities.cs:line 122 at KinetDx.Report.LayoutManager.ClearSectionsWithPageBreaks() in d:\ProductFolder\Main\Report\Report\LayoutManager.cs:line 514 at KinetDx.Report.LayoutManager.UpdatePageBreaks() in d:\ProductFolder\Main\Report\Report\LayoutManager.cs:line 557 ________________________________________ UCMS: ________________________________________ Application: UCMS.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.GetEnumVariant() at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext() at UCMS.Service.CoreService.ivuxpQUO3XdKwTtYrJh(System.Object) at UCMS.Service.CoreService.O5NzMvBKX(Boolean, Boolean, Boolean) at UCMS.Service.CoreService.IkxQYFCLr() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
- Moved by Wendy ZangMicrosoft contingent staff Wednesday, September 4, 2019 9:23 AM
Tuesday, September 3, 2019 5:33 AM
All replies
-
Hi gnanamu,
Thank you for posting here.
According to your description, your issue is more related to Windows 10 update, so I suggest you ask your question in Windows 10 forums for more help.
The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.
Thank you for your understanding.
Best Regards,
Xingyu Zhao
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Wednesday, September 4, 2019 7:50 AM