System.AccessViolationException

Stimulsoft Reports.WEB discussion
Post Reply
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

System.AccessViolationException

Post by ToneCold »

We are getting error System.AccessViolationException.
Stimulsoft Version: 2016.1.0.0

===

.NET Runtime
Event Id: 1026
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at System.Drawing.SafeNativeMethods+Gdip.IntGdipDisposeImage(System.Runtime.InteropServices.HandleRef)
at System.Drawing.SafeNativeMethods+Gdip.GdipDisposeImage(System.Runtime.InteropServices.HandleRef)
at System.Drawing.Image.Dispose(Boolean)
at System.Drawing.Image.Finalize()

===

System.AccessViolationException occurred
Message: A first chance exception of type 'System.AccessViolationException' occurred in System.Drawing.dll

Additional information: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.

===

It seems to be an issue with concurrent users running our reports at the same time, but normally they run perfectly.
Our reports are returned as pdf's via the ResponseAsPdf method.

Any help would be appreciated.

Thanks,
Tony
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: System.AccessViolationException

Post by ToneCold »

We also return the reports normally (not as pdf's) for non-mobile devices and are having the same issue.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: System.AccessViolationException

Post by Alex K. »

Hello,

Can you please check the last build and let us know about the result.
If the issue still present, please provide a more information about the issue.

Thank you.
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: System.AccessViolationException

Post by ToneCold »

We are running .Net 4.5.1.
System.AccessViolationException cannot be caught so it crashes our app pool causing everyone to lose their session.
Crashes on Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf and viewer.Report =.
I don't think the report matters in this issue just the timing.

I will test the latest build and let you know the results.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: System.AccessViolationException

Post by Alex K. »

Hello,

Ok.
We will wait.

Thank you.
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: System.AccessViolationException

Post by ToneCold »

2016.1.8 appears to have fixed the issue!

I have not been able to get it to fail during testing.

Thanks for your help!!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: System.AccessViolationException

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: System.AccessViolationException

Post by ToneCold »

Stimulsoft Version: 2016.1.10.0

I was able to get this error again when testing, so far just when using Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf.

Here is how I get the error in debug mode:
I log into Firefox & log into chrome.
I then run a 24 page report in Firefox and try to run the same report in Chrome as fast as I can click.
It usually takes a half dozen tries or more before I get the System.AccessViolationException error.

Any assistance would be appreciated.

Thanks,
Tony
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: System.AccessViolationException

Post by Alex K. »

Hello,

We have tested the WebViewer with a report which contains more than 50 pages(MS SQL data) and found no errors when viewing or when exporting using ResponseAsPdf method. We have updated the test page in the 3 major browsers - IE 11, Firefox, Chrome.
Please send us a test project and report with test data. Also, please try to reproduce the error on one of our test reports in your project.

Thank you.
Post Reply