NServiceBus.Host.exe is crashing due to unhandled exception - nservicebus

We have seen this a few times. I'm sure there is some sort of NHibernate issue with MSDTC however why doesn't NserviceBus send the exception to the error queue instead of crashing the Host process? We have seen the exception in both 3.2.6 and 3.3.3
This also happened on the 17th before we did the endpoint upgrade at 7:34AM
Log Name: Application
Source: Application Error
Date: 12/17/2012 7:34:20 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: 411357-SVCS01.daxko.local
Description:
Faulting application name: NServiceBus.Host.exe, version: 3.2.6.0, time stamp: 0x4ffd66f8
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e21213c
Exception code: 0xe0434352
Fault offset: 0x000000000000cacd
Faulting process id: 0x2200
Faulting application start time: 0x01cddc556e2ef369
Faulting application path: D:\store\endpoints\Production\OnlineRegistrationEndpoint\NServiceBus.Host.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 75b6c18c-484e-11e2-b05c-0050568e4fb1
Event Xml:
1000
2
100
0x80000000000000
40360
Application
411357-SVCS01.daxko.local
NServiceBus.Host.exe
3.2.6.0
4ffd66f8
KERNELBASE.dll
6.1.7601.17651
4e21213c
e0434352
000000000000cacd
2200
01cddc556e2ef369
D:\store\endpoints\Production\OnlineRegistrationEndpoint\NServiceBus.Host.exe
C:\Windows\system32\KERNELBASE.dll
75b6c18c-484e-11e2-b05c-0050568e4fb1
Log Name: Application
Source: .NET Runtime
Date: 12/17/2012 7:34:18 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: 411357-SVCS01.daxko.local
Description:
Application: NServiceBus.Host.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at NHibernate.AdoNet.ConnectionManager.Disconnect()
at NHibernate.Impl.SessionImpl.Close()
at NHibernate.Impl.SessionImpl.Dispose(Boolean)
at NHibernate.Transaction.AdoNetWithDistrubtedTransactionFactory+<>c_DisplayClass1.b_0(System.Object, System.Transactions.TransactionEventArgs)
at System.Transactions.TransactionCompletedEventHandler.Invoke(System.Object, System.Transactions.TransactionEventArgs)
at System.Transactions.TransactionStatePromotedAborted.EnterState(System.Transactions.InternalTransaction)
at System.Transactions.InternalTransaction.DistributedTransactionOutcome(System.Transactions.InternalTransaction, System.Transactions.TransactionStatus)
at System.Transactions.Oletx.RealOletxTransaction.FireOutcome(System.Transactions.TransactionStatus)
at System.Transactions.Oletx.OutcomeEnlistment.InvokeOutcomeFunction(System.Transactions.TransactionStatus)
at System.Transactions.Oletx.OletxTransactionManager.ShimNotificationCallback(System.Object, Boolean)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)
Event Xml:
1026
2
0
0x80000000000000
40359
Application
411357-SVCS01.daxko.local
Application: NServiceBus.Host.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at NHibernate.AdoNet.ConnectionManager.Disconnect()
at NHibernate.Impl.SessionImpl.Close()
at NHibernate.Impl.SessionImpl.Dispose(Boolean)
at NHibernate.Transaction.AdoNetWithDistrubtedTransactionFactory+<>c_DisplayClass1.<EnlistInDistributedTransactionIfNeeded>b_0(System.Object, System.Transactions.TransactionEventArgs)
at System.Transactions.TransactionCompletedEventHandler.Invoke(System.Object, System.Transactions.TransactionEventArgs)
at System.Transactions.TransactionStatePromotedAborted.EnterState(System.Transactions.InternalTransaction)
at System.Transactions.InternalTransaction.DistributedTransactionOutcome(System.Transactions.InternalTransaction, System.Transactions.TransactionStatus)
at System.Transactions.Oletx.RealOletxTransaction.FireOutcome(System.Transactions.TransactionStatus)
at System.Transactions.Oletx.OutcomeEnlistment.InvokeOutcomeFunction(System.Transactions.TransactionStatus)
at System.Transactions.Oletx.OletxTransactionManager.ShimNotificationCallback(System.Object, Boolean)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)

I got a response from the NServicebus forums that explains a fix and reason for NServiceBus not being able to handle the exception. http://tech.groups.yahoo.com/group/nservicebus/message/17328
After googling this, it looks like it is a bug in NHibernate ( https://nhibernate.jira.com/browse/NH-2420 ) that should have been fixed in > 3 versions!
The reason your endpoint crashed and nothing is sent to the error queue is because this is an unhandled exception in a background thread.
I'm not sure if there is anything we can do to prevent this from happening!
On 19 December 2012 04:20, porsche4me1999 wrote:
at NHibernate.AdoNet.ConnectionManager.Disconnect()
--
Regards
John Simons
NServiceBus

Related

Net Core Website crashes immediately with code 0xe0434352

Im having an issue where our ASP Net Core Website crashes immediately with little information.
The output in visual studio shows:
The program '[10196] dotnet.exe' has exited with code -532462766 (0xe0434352).
After settings COREHOST_TRACE = 1, I get the following error:
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'MyProject.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. File is corrupt. (Exception from HRESULT: 0x8013110E) ---> System.BadImageFormatException: File is corrupt. (Exception from HRESULT: 0x8013110E)
--- End of inner exception stack trace ---
The Event viewer shows me the same error and says the source is .NET Runtime, and is then immediatly followed by another error with the source Applciation Error, with the following details:
Faulting application name: dotnet.exe, version: 5.0.721.25508, time stamp: 0x609308e9
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1023, time stamp: 0x924f9cdb
Exception code: 0xe0434352
Fault offset: 0x0000000000034b89
Faulting process id: 0x4a18
Faulting application start time: 0x01d76797eececb6d
Faulting application path: C:\Program Files\dotnet\dotnet.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: eed8cc7d-eeb1-45d0-b33c-532e3524f4ee
Faulting package full name:
Faulting package-relative application ID:
Genuinely, I have no idea why, but this is being caused when I add any new property to any class, if I remove it, clean the project, rebuild and run, it works as expected.
I can't find any helpful information anywhere, suggestions on how I can get the real error that is causing the crash would be much appreciated.

mysqld.exe keeps crashing

I appear to be in a bit of a bind. I have been working on some simple design changes to our website and having finished went to release them live. No sooner than I uploaded the affected pages, the MySQL Daemon service crahsed. I did a restart and then restarted the service as it didn't restart automatically and managed to navigate to the website. It crashed again and has been doing so nearly every ten minutes like clockwork.
The windows event log is listed here:
Log Name: Application
Source: Application Error
Date: 14/06/2013 10:03:47
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: DEDICAT-3JPUQIF
Description:
Faulting application name: mysqld.exe, version: 5.5.28.0, time stamp: 0x503ddca5
Faulting module name: mysqld.exe, version: 5.5.28.0, time stamp: 0x503ddca5
Exception code: 0xc0000005
Fault offset: 0x00000000000fd869
Faulting process id: 0x428
Faulting application start time: 0x01ce68dc51cff4c0
Faulting application path: C:Program FilesMySQLMySQL Server 5.5binmysqld.exe
Faulting module path: C:Program FilesMySQLMySQL Server 5.5binmysqld.exe
Report Id: 525bda97-d4d1-11e2-95f3-525400bb8b87
Event Xml:
1000
2
100
0x80000000000000
6821
Application
DEDICAT-3JPUQIF
mysqld.exe
5.5.28.0
503ddca5
mysqld.exe
5.5.28.0
503ddca5
c0000005
00000000000fd869
428
01ce68dc51cff4c0
C:Program FilesMySQLMySQL Server 5.5binmysqld.exe
C:Program FilesMySQLMySQL Server 5.5binmysqld.exe
525bda97-d4d1-11e2-95f3-525400bb8b87
Does anybody have any clues what might be causing this?
As always thanks in advance.
Graham
This turned out to be an erroneous space character at the end of several lines of a stored procedure generated by SqlYog. Removing the characters fixed the problem.
Cheers
Graham
When I researched, this error means your database is probably corrupt and needs rebuilding.
Have a look at MySQL suddenly not working on Windows Server 2003 server fault question.
Hope this helps.

Visual Studio 2012 crash on startup

As soon as I open visual studio it goes unresponsive. I have looked at the event viewer, and it gives 3 errors when visual studio crashes in order:
1)
Application: WDExpress.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2)
Faulting application name: WDExpress.exe, version: 11.0.60315.1, time stamp: 0x5142b273
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18015, time stamp: 0x50b83c8a
Exception code: 0xe0434352
Fault offset: 0x0000c41f
Faulting process id: 0x18f0
Faulting application start time: 0x01ce445978318661
Faulting application path: D:\Programs\vs\Common7\IDE\WDExpress.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: bbf0314d-b04c-11e2-a8b8-08002700c410
3)
Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: wdexpress.exe
P2: 11.0.60315.1
P3: 5142b273
P4: Microsoft.VisualStudio.Shell.11.0
P5: 11.0.60315.1
P6: 514298c6
P7: 941
P8: 5b
P9: System.InvalidOperationException
P10:
Attached files:
C:\Users\Steve\AppData\Local\Temp\WER2FF6.tmp.WERInternalMetadata.xml
These files may be available here:
C:\Users\Steve\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_wdexpress.exe_b14ec39a92949f27abbb79e507ed518f9c5afcf_0abe3755
Analysis symbol:
Rechecking for solution: 0
Report Id: bbf0314d-b04c-11e2-a8b8-08002700c410
I have reinstalled at least 8 times, uninstalled using the default uninstaller. Then used revo uninstaller, manually cleaned registry keys, run .net verifier (no errors), repaired the install, tried on another account. It simply will not work. Any ideas?
P.S this is my last resort I've been looking everywhere and am unable to solve it even when others have similar problems
I've been annoyed by the symptom which seems to be exactly the same.
In my case, regsvr ieproxy.dll made the symptom fixed.
Hope this helps:
Visual Studio 2012 Crashes after installing IE9 (Faulting Module ntdll.dll)

LINQPad crashes with "OutOfMemoryException" on startup?

I have Linqpad in Windows7 64 bit. It was working fine till last week, but suddenly it started crashing while starting the program itself. The following are the event logs
.NET Runtime
Application: LINQPad.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
Stack:
at LINQPad.Program.ProcessException(System.Exception)
at LINQPad.Program.Start(System.String[])
at LINQPad.ProgramStarter.Run(System.String[])
at LINQPad.Loader.Main(System.String[])
Application Error
Faulting application name: LINQPad.exe, version: 4.31.0.0, time stamp: 0x4cfb29be
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xe0434352
Fault offset: 0x0000b9bc
Faulting process id: 0x1c68
Faulting application start time: 0x01ccc4506f8b6553
Faulting application path: C:\Users\Administrator\Downloads\LINQPad4\LINQPad.exe
Faulting module path: C:\windows\syswow64\KERNELBASE.dll
Report Id: af0a8ac8-3043-11e1-9f3c-f0def166a9e4
Any help would be appreciated.

I have a faulting dll and a fault address - how do I start analysing the error?

I have the following two error logs in the Windows Event Viewer of our IIS production server:
Source: Application Error
Category: (100)
Event ID: (1000)
Description: Faulting application w3wp.exe, version 6.0.3790.3959, faulting module mscorwks.dll, version 2.0.50727.3603, fault address 0x0001da8f.
Seconds later:
Source: .NET Runtime 2.0 Error Reporting
Category: None
Event ID: 1000
Description: Faulting application w3wp.exe, version 6.0.3790.3959, stamp 45d6968e, faulting module mscorwks.dll, version 2.0.50727.3603, stamp 4a7cd88e, debug? 0, fault address 0x0001da8f.
What can I do with these error messages? I see that I have a fault address and a dll name - are there any tools that will show me what is at this address in the dll? Would this be the correct approach to figuring out what caused the crash? I've so far not been able to replicate it.
Thanks.