Friday, February 24, 2012

Attempted to read or write protected memory

I'm running in to a confusing issue with one of my reports in Reporting
Services. The problem is that I have a subscription tied to a report that
emails it around to users and I'm sporadically getting this message:
"Failure sending mail: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt."
(Full error from logs: Error sending email. System.AccessViolationException:
Attempted to read or write protected memory. This is often an indication that
other memory is corrupt.)
I'm not particularly sure why this report is a problem (or if it is) as it's
not all that complicated. The report itself runs fine and never throws the
error, but for some reason it's unable to send email occasionally. If I
reschedule the subscription, it will usually email it out. But it's not
reliable at all.
Reporting Services is running a web cluster here, we also have a SQL Server
2005 database cluster running the underlying metadata repository, the reports
are sent via the SMTP configuration via the RS config files. Everything else
seems to be working hunky dory except for this issue.
Googling hasn't been much help ... I did look in to a few issues which
pointed to images (which I have in the header of the report) not being the
right MIME type, but mine seem to be okay. I have a couple of .NET assemblies
embedded in the report, but I'm just not real sure where to track down the
problem on this issue.
Any ideas on what I can do to track down the failure?
Here's the error from the log files. You can also see in the logs that other
emails are going out okay.
============= LOG INFORMATION BELOW ============= ReportingServicesService!library!c!10/31/2007-05:53:07:: i INFO: Cleaned 0
batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
chunks, 0 running jobs, 0 persisted streams
ReportingServicesService!dbpolling!b!10/31/2007-05:58:07:: EventPolling
processing 2 more items. 2 Total items in internal queue.
ReportingServicesService!dbpolling!4!10/31/2007-05:58:07:: EventPolling
processing item 29cd0331-4666-422c-80ea-f816472daaf0
ReportingServicesService!dbpolling!c!10/31/2007-05:58:07:: EventPolling
processing item 5ce520dd-ae10-4e6f-b8bd-32070237a266
ReportingServicesService!library!4!10/31/2007-05:58:07:: Schedule
4f87d0bc-1f33-475b-96a6-eafab3c721b6 executed at 10/31/2007 5:58:07 AM.
ReportingServicesService!schedule!4!10/31/2007-05:58:07:: Creating Time
based subscription notification for subscription:
b51d5c44-4e93-4b65-8357-5d7de75cf8f8
ReportingServicesService!library!c!10/31/2007-05:58:07:: Schedule
c28239dc-df46-406c-a1f6-a8e4a22a0a98 executed at 10/31/2007 5:58:07 AM.
ReportingServicesService!schedule!c!10/31/2007-05:58:07:: Creating Time
based subscription notification for subscription:
2aa119ba-312c-49b6-9676-43be2eb0dcef
ReportingServicesService!library!c!10/31/2007-05:58:07:: Schedule
c28239dc-df46-406c-a1f6-a8e4a22a0a98 execution completed at 10/31/2007
5:58:07 AM.
ReportingServicesService!library!4!10/31/2007-05:58:07:: Schedule
4f87d0bc-1f33-475b-96a6-eafab3c721b6 execution completed at 10/31/2007
5:58:07 AM.
ReportingServicesService!dbpolling!c!10/31/2007-05:58:07:: EventPolling
finished processing item 5ce520dd-ae10-4e6f-b8bd-32070237a266
ReportingServicesService!dbpolling!c!10/31/2007-05:58:07::
NotificationPolling processing item 8a39847b-b85e-4594-8e4c-4bae0e83945b
ReportingServicesService!dbpolling!b!10/31/2007-05:58:07::
NotificationPolling processing 2 more items. 2 Total items in internal queue.
ReportingServicesService!dbpolling!a!10/31/2007-05:58:07::
NotificationPolling processing item e03f07d1-eb70-499a-b4bd-774d62f76bcb
ReportingServicesService!dbpolling!4!10/31/2007-05:58:07:: EventPolling
finished processing item 29cd0331-4666-422c-80ea-f816472daaf0
ReportingServicesService!library!c!10/31/2007-05:58:08:: i INFO:
Initializing EnableIntegratedSecurity to 'True' as specified in Server
system properties.
ReportingServicesService!library!a!10/31/2007-05:58:08:: i INFO:
Initializing EnableIntegratedSecurity to 'True' as specified in Server
system properties.
ReportingServicesService!emailextension!a!10/31/2007-05:58:10:: Error
sending email. System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.CreateMessage(Notification notification)
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
ReportingServicesService!notification!a!10/31/2007-05:58:10:: Notification
e03f07d1-eb70-499a-b4bd-774d62f76bcb completed. Success: False, Status:
Failure sending mail: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt., DeliveryExtension: Report
Server Email, Report: DailyCustomerOrders, Attempt 0
ReportingServicesService!dbpolling!a!10/31/2007-05:58:10::
NotificationPolling finished processing item
e03f07d1-eb70-499a-b4bd-774d62f76bcb
ReportingServicesService!library!c!10/31/2007-05:58:11:: i INFO: Call to
RenderFirst( '/Paramount/CustomerShipments' )
ReportingServicesService!library!c!10/31/2007-05:58:13:: i INFO:
Initializing SqlStreamingBufferSize to default value of '64640' Bytes because
it was not specified in Server system properties.
ReportingServicesService!library!c!10/31/2007-05:58:13:: i INFO:
Initializing SnapshotCompression to 'SQL' as specified in Server system
properties.
ReportingServicesService!library!c!10/31/2007-05:58:16:: i INFO:
Initializing ResponseBufferSizeKb to default value of '64' KB because it was
not specified in Server system properties.
ReportingServicesService!library!c!10/31/2007-05:58:17:: i INFO:
Initializing SessionTimeout to '600' second(s) as specified in Server system
properties.
ReportingServicesService!library!c!10/31/2007-05:58:17:: i INFO:
Initializing EnableExecutionLogging to 'True' as specified in Server system
properties.
ReportingServicesService!emailextension!c!10/31/2007-05:58:17:: Email
successfully sent to "removed" <removed>
ReportingServicesService!notification!c!10/31/2007-05:58:17:: Notification
8a39847b-b85e-4594-8e4c-4bae0e83945b completed. Success: True, Status: Mail
sent to removed, DeliveryExtension: Report Server Email, Report:
CustomerShipments, Attempt 0
ReportingServicesService!dbpolling!c!10/31/2007-05:58:17::
NotificationPolling finished processing item
8a39847b-b85e-4594-8e4c-4bae0e83945b
ReportingServicesService!dbpolling!4!10/31/2007-05:59:07:: EventPolling
processing item fd139fe4-9412-4e96-96ce-3f0aed787b9d
ReportingServicesService!dbpolling!b!10/31/2007-05:59:07:: EventPolling
processing 1 more items. 1 Total items in internal queue.
ReportingServicesService!library!4!10/31/2007-05:59:07:: Schedule
29c40f83-6f27-4302-b739-84cea5b1429d executed at 10/31/2007 5:59:07 AM.
ReportingServicesService!schedule!4!10/31/2007-05:59:07:: Creating Time
based subscription notification for subscription:
2cb9b939-535b-46fb-8ff8-11aa2c5c56b7
ReportingServicesService!library!4!10/31/2007-05:59:07:: Schedule
29c40f83-6f27-4302-b739-84cea5b1429d execution completed at 10/31/2007
5:59:07 AM.
ReportingServicesService!dbpolling!4!10/31/2007-05:59:07:: EventPolling
finished processing item fd139fe4-9412-4e96-96ce-3f0aed787b9d
ReportingServicesService!dbpolling!b!10/31/2007-05:59:07::
NotificationPolling processing 1 more items. 1 Total items in internal queue.
ReportingServicesService!dbpolling!4!10/31/2007-05:59:07::
NotificationPolling processing item 7db9f680-501f-4623-988c-efeab0d1dbca
ReportingServicesService!emailextension!4!10/31/2007-05:59:07:: Error
sending email. System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.CreateMessage(Notification notification)
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
ReportingServicesService!notification!4!10/31/2007-05:59:07:: Notification
7db9f680-501f-4623-988c-efeab0d1dbca completed. Success: False, Status:
Failure sending mail: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt., DeliveryExtension: Report
Server Email, Report: WarehouseExceptions, Attempt 0
ReportingServicesService!dbpolling!4!10/31/2007-05:59:07::
NotificationPolling finished processing item
7db9f680-501f-4623-988c-efeab0d1dbca
ReportingServicesService!library!4!10/31/2007-06:03:06:: i INFO: Cleaned 0
batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
chunks, 0 running jobs, 0 persisted streams
ReportingServicesService!library!c!10/31/2007-06:13:07:: i INFO: Cleaned 0
batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
chunks, 0 running jobs, 0 persisted streams
ReportingServicesService!library!c!10/31/2007-06:23:07:: i INFO: Cleaned 0
batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
chunks, 0 running jobs, 0 persisted streams
ReportingServicesService!library!4!10/31/2007-06:33:07:: i INFO: Cleaned 0
batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
chunks, 0 running jobs, 0 persisted streams
ReportingServicesService!dbpolling!9!10/31/2007-06:33:07:: EventPolling
polling service stopped
ReportingServicesService!dbpolling!e!10/31/2007-06:33:07:: EventPolling
heartbeat thread exiting for stop.
ReportingServicesService!dbpolling!9!10/31/2007-06:33:07::
NotificationPolling polling service stopped
ReportingServicesService!dbpolling!10!10/31/2007-06:33:07::
NotificationPolling heartbeat thread exiting for stop.
ReportingServicesService!dbpolling!9!10/31/2007-06:33:07:: SchedulePolling
polling service stopped
ReportingServicesService!dbpolling!9!10/31/2007-06:33:07:: UpgradePolling
polling service stopped
ReportingServicesService!servicecontroller!9!10/31/2007-06:33:11:: Service
controller exiting.Did you find an answer to this?

No comments:

Post a Comment