← Back to team overview

nunit-core team mailing list archive

[Bug 597265] Re: 2.5.5 x64 net-4.0 crash

 

I've got a code work around.

Following Blake Niemyjski, from CodeSmith Tools I did the following.
a) Changed the platform to "Any CPU".
b) Removed any specific .net edition reference paths.
c) Modified the MS Office 14 excel automation code to follow the "USING Blocks". See code difference attached. This would ensure that opening excel documents multiple times doesn't cause the issue.
d) Removed all the nunit-agent.exe processors on the x64 Server (6)

Re-ran the Nunit tests and Nunit didn't crash.

Following recommendations from Blake Niemyjski, @ CodeSmith Tools, I did the following.
1. Changed the Project platform(s) to "Any CPU".
2. Removed any specific .net edition reference paths.
3. Modified the MS Office 14 excel automation code to follow the "USING Blocks". See code difference attached.
4. Removed all the nunit-agent.exe processors on the x64 Server (6)
5. Confirmed the Nunit process was running without **32 tag in Task Manager.

Re-ran the Nunit tests and Nunit didn't crash.

** Attachment added: "Source Code different between Nunit Crash and completed run."
   http://launchpadlibrarian.net/51094601/NunitCrashCodeFix.png

-- 
2.5.5 x64 net-4.0 crash
https://bugs.launchpad.net/bugs/597265
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: New

Bug description:
Running x64 based unit tests on x64 Windows Server 2008 R2. Get the following crash from VS2010 automating Nunit.exe.
Testing Office 2010 Excel reading with x64 drivers. Running a single test works ok. Running a set of Excel tests causes the application crash. I suspect MS bug in the x64 data drivers, but this is the offending nunit test.


'   Sheet Name and Row/Column Reference
        Console.WriteLine(String.Format(cNunitMessage, "Sheet Name and Row/Column Reference"))
        objDS = objExcel.GetDataSet(System.IO.Path.Combine(GetCurrentPath, "TestData\WithDataInSheet1.xlsx"), "Sheet1$B2:D10")
        If objDS.Tables.Count = 0 Then
            Assert.Fail("No data returned")
        End If

If I run the nunit test by itself it works as expected. If I run all the tests in the nunit class it fails and crashes Nunit. The crash sends a lot of information to Microsoft.





References