1
Error encoding a Flate stream
Problem reported by Anton Mikhaylov - 6/11/2018 at 2:02 PM
Resolved
We've encountered a problem while trying to view [some] .DWG files with HighQualityEnabled set to true. PDF file in cache folder generates successfully, but when it tries to generate .XPS file for the viewer, it crashes immediately with the following error:
 
Exception:
    Message: Error encoding a Flate stream
   
We really need this option set to true to show the best quality CAD files, but since it is not working reliably, we cannot decide to buy this product for our project.
 
Please advise.

5 Replies

Reply to Thread
0
Cem Alacayir Replied
Employee Post
I guess you tested with DocumentUltimate v4.0. Can you replicate the error with v3.16 or does it work with that version? Let me know
0
Anton Mikhaylov Replied
Downgraded to 3.16.0 and still getting the same error:
0
Anton Mikhaylov Replied
Here's a more detailed information:
 

Exception: 
Message: Error encoding a Flate stream

 

Source Error: 
 
Line 32:             var documentCache = DocumentUltimateWebConfiguration.Current.GetCache();
Line 33: 
Line 34:             documentCache.PreCacheDocument(
Line 35:                 new DocumentOptions
Line 36:                 {
Stack Trace: 
 
[_ZrH: Exception: 
	 Message: Error encoding a Flate stream
	 
]
     _35g._2pg(Stream stream) +79
   _3qG._1VH(ConversionContext conversionContext, Action`1 diskSaveCallback, Action`1 streamSaveCallback) +89
   _2cH._1VH(OutputContext outputContext) +842
   GleamTech.DocumentUltimate.DocumentConverter._2Ih(OutputContext outputContext, Nullable`1 engine) +493
   GleamTech.DocumentUltimate.DocumentConverter.ConvertTo(Stream outputStream, OutputOptions outputOptions, Nullable`1 engine) +237
   GleamTech.DocumentUltimate.AspNet._3fh._2JH(Stream cacheFileStream) +137
   GleamTech.Caching.FileCache._qm(IDisposable context, FileSystem fileSystem, _jI cacheFileInfo, Action`1 createAction) +502
   GleamTech.Caching.FileCache.GetOrAdd(FileCacheKey cacheKey, Action`1 createAction) +312
   GleamTech.DocumentUltimate.AspNet.DocumentCache.GetOrAddXpz(DocumentCacheInfo cacheInfo) +82
   GleamTech.DocumentUltimate.AspNet.DocumentCache.PreCacheDocument(DocumentOptions documentOptions) +36
   Viewer2.Controllers.HomeController.Viewer(String ext) in C:\Users\amikhaylov\source\repos\Viewer2\Viewer2\Controllers\HomeController.cs:34
   lambda_method(Closure , ControllerBase , Object[] ) +103
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +157
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.Async.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
   System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__11_0() +50
   System.Web.Mvc.Async.<>c__DisplayClass11_1.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +228
   System.Web.Mvc.Async.<>c__DisplayClass7_0.<BeginInvokeActionMethodWithFilters>b__1(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
   System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__3() +35
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult) +100
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +11
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +45
   System.Web.Mvc.<>c.<BeginExecute>b__151_2(IAsyncResult asyncResult, Controller controller) +13
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +28
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9748665
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159
 
 
0
Cem Alacayir Replied
Employee Post
FYI, this is now fixed in private release v4.0.6 and the fix will be included in the next public release.
0
Anton Mikhaylov Replied
Thank you very much!

Reply to Thread