rzellertownson / neurorighter

Closed Loop, Open Source Electrophysiology
6 stars 5 forks source link

Hard to reproduce null reference exception for loaded spike sorters #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load an old spike detection filter
2. Click train.
3. Null reference exception.

What is the expected output? What do you see instead?

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an 
object.
   at NRSpikeSort.SpikeSorter.HoardSpikes(EventBuffer`1 newSpikes)
   at NeuroRighter.NeuroRighter.bwSpikes_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
NeuroRighter
    Assembly Version: 1.0.0.460
    Win32 Version: 1.0.0.460
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/NeuroRighter.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Xna.Framework
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.11010.0
    CodeBase: file:///C:/Windows/assembly/GAC_32/Microsoft.Xna.Framework/3.0.0.0__6d5c3888ef60e27d/Microsoft.Xna.Framework.dll
----------------------------------------
NationalInstruments.UI
    Assembly Version: 9.1.40.204
    Win32 Version: 9.1.40.204
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/NationalInstruments.UI/v4.0_9.1.40.204__dc6ad606294fc298/NationalInstruments.UI.dll
----------------------------------------
NationalInstruments.UI.WindowsForms
    Assembly Version: 9.1.40.204
    Win32 Version: 9.1.40.204
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/NationalInstruments.UI.WindowsForms/v4.0_9.1.40.204__dc6ad606294fc298/NationalInstruments.UI.WindowsForms.dll
----------------------------------------
NationalInstruments.Common
    Assembly Version: 9.1.40.159
    Win32 Version: 9.1.40.159
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/NationalInstruments.Common/v4.0_9.1.40.159__dc6ad606294fc298/NationalInstruments.Common.dll
----------------------------------------
AxInterop.CWUIControlsLib
    Assembly Version: 1.6.0.0
    Win32 Version: 1.6.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/AxInterop.CWUIControlsLib.DLL
----------------------------------------
Interop.CWUIControlsLib
    Assembly Version: 1.6.0.0
    Win32 Version: 1.6.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/Interop.CWUIControlsLib.DLL
----------------------------------------
Mowog.PersistWindowState
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/Mowog.PersistWindowState.DLL
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Design
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
NationalInstruments.Common.Native
    Assembly Version: 9.1.40.159
    Win32 Version: 9.1.40.159
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/NationalInstruments.Common.Native/v4.0_9.1.40.159__dc6ad606294fc298/NationalInstruments.Common.Native.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
NationalInstruments.UI.Styles3D
    Assembly Version: 9.1.40.204
    Win32 Version: 9.1.40.204
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/NationalInstruments.UI.Styles3D/v4.0_9.1.40.204__dc6ad606294fc298/NationalInstruments.UI.Styles3D.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
ConsoleWidget
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/ConsoleWidget.DLL
----------------------------------------
ZedGraph
    Assembly Version: 5.1.5.28844
    Win32 Version: 5.1.5.28844
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/ZedGraph.DLL
----------------------------------------
NRSpikeSort
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/NRSpikeSort.DLL
----------------------------------------
NationalInstruments.DAQmx
    Assembly Version: 9.4.40.50
    Win32 Version: 9.4.40.50
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/NationalInstruments.DAQmx/v4.0_9.4.40.50__dc6ad606294fc298/NationalInstruments.DAQmx.dll
----------------------------------------
msvcm80
    Assembly Version: 8.0.50727.6195
    Win32 Version: 8.00.50727.6195
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a/msvcm80.dll
----------------------------------------
wwbbmnlk
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
NationalInstruments.Analysis.Enterprise
    Assembly Version: 9.1.40.204
    Win32 Version: 9.1.40.204
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/NationalInstruments.Analysis.Enterprise/v4.0_9.1.40.204__dc6ad606294fc298/NationalInstruments.Analysis.Enterprise.dll
----------------------------------------
Accord.MachineLearning
    Assembly Version: 2.3.0.0
    Win32 Version: 2.2.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/Accord.MachineLearning.DLL
----------------------------------------
Accord.Statistics
    Assembly Version: 2.3.0.0
    Win32 Version: 2.3.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/Accord.Statistics.DLL
----------------------------------------
Accord.Math
    Assembly Version: 2.3.0.0
    Win32 Version: 2.3.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NeuroRighter/NeuroRighter%20(v1.0.0.460)/Accord.Math.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Original issue reported on code.google.com by jonathan...@gmail.com on 5 May 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Fixed in r465

Original comment by jonathan...@gmail.com on 5 May 2012 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@gmail.com on 5 May 2012 at 5:30