-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error only in Chrome: Cannot access a closed Stream #50
Comments
I found out that we were using the sync setup with Dianoga.Strategy.GetMediaStreamSync.config and it seems to be the cause for the error. |
This should be fixed now https://github.com/kamsar/Dianoga/releases/tag/5.0.0-beta.1 please can you retest? |
We're running version 5.0.0-rc.4 and are still experiencing above issue on Azure Webapps. Issue is there on both sync and async configurations. |
Hi @hardboilr I have tested this on webapps across browsers and havent seen this issue. So I would lean towards it being a particlar image or particular set of query strings in this scenario. Can you possibly attach the original image and the query string that is being used? |
@markgibbons25 : Sorry for not getting back to you. We've been extremely busy due to the covid-19 situation. Have upgraded to latest 5.0.0-rc.6 and will test again and get back to you. |
Hi @hardboilr I think I may have spoken to a colleague of yours on sitecore slack about this. It shouldn't be necessary to patch that path on Azure Webapps any more and I would urge you to use the latest 5.0 RC. I am closing this issue, please open a new one if this does not work for you. |
We experience the following error when accessing images in the Google Chrome browser (only in Chrome), and not on all machines, which makes it difficult to reproduce and debug.
When disabling Dianoga the error goes away.
I am curious if anybody else has seen this.
Any tip on where to look to debug/solve this would be greatly appreciated.
Here is the full stack trace:
Cannot access a closed Stream.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ObjectDisposedException: Cannot access a closed Stream.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ObjectDisposedException: Cannot access a closed Stream.]
System.IO.__Error.StreamIsClosed() +59
System.IO.MemoryStream.get_Length() +30
Sitecore.Resources.Media.Streaming.RangeRetrievalResponse.WriteFullContent(HttpContext context, Stream fileContent) +105
Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context, MediaRequest request, Media media) +451
Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context) +1574
Sitecore.Resources.Media.MediaRequestHandler.ProcessRequest(HttpContext context) +57
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0
The text was updated successfully, but these errors were encountered: