Error when selecting "SerialNumber" under PylonCapture

737 views
Skip to first unread message

Irene Jacobsen

unread,
Jun 27, 2021, 4:45:37 AM6/27/21
to Bonsai Users
Hi,

I get the error below when I perform the following steps:
- Open Bonsai
- Click New Project
- Add PylonCapture to the Workflow
- Click the down-arrow in the SerialNumber box in the right hand side menu

error.png

It happens irrespective of whether or not a Basler camera is plugged in and on two different Windows 10 computers. I'm using the latest version of both Bonsai and pylon Viewer, but have also tried downgrading pylon Viewer to an older version with no success. I don't know what else to try - can anyone here help..?

Best,
Irene


The details of the error message:

************** Exception Text **************
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at Pylon.DeviceInfoList.{ctor}(DeviceInfoList* )
   at Basler.Pylon.CameraFinder.Enumerate()
   at Bonsai.Pylon.PylonCapture.SerialNumberConverter.GetStandardValues(ITypeDescriptorContext context)
   at System.Windows.Forms.PropertyGridInternal.GridEntry.GetPropertyValueList()
   at System.Windows.Forms.PropertyGridInternal.PropertyGridView.PopupDialog(Int32 row)
   at System.Windows.Forms.PropertyGridInternal.PropertyGridView.OnBtnClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.PropertyGridInternal.DropDownButton.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.PropertyGridInternal.DropDownButton.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Bonsai
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.3385
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Bonsai.EXE
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Bonsai.Editor
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.3385
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Editor.2.6.2/lib/net462/Bonsai.Editor.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
    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.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Bonsai.Core
    Assembly Version: 2.6.0.0
    Win32 Version: 2.6.0.3290
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Core.2.6.0/lib/net462/Bonsai.Core.dll
----------------------------------------
System.Reactive.Linq
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.40722
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Rx-Linq.2.2.5/lib/net45/System.Reactive.Linq.dll
----------------------------------------
System.Reactive.Interfaces
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.40722
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Rx-Interfaces.2.2.5/lib/net45/System.Reactive.Interfaces.dll
----------------------------------------
System.Reactive.Core
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.40722
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Rx-Core.2.2.5/lib/net45/System.Reactive.Core.dll
----------------------------------------
System.Reactive.PlatformServices
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.40722
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Rx-PlatformServices.2.2.5/lib/net45/System.Reactive.PlatformServices.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Bonsai.Design
    Assembly Version: 2.6.1.0
    Win32 Version: 2.6.1.3385
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Design.2.6.1/lib/net462/Bonsai.Design.dll
----------------------------------------
System.IO.Compression
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
SVG
    Assembly Version: 2.0.1.0
    Win32 Version: 2.0.1.0
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/SvgNet.2.0.1/lib/net40/SVG.dll
----------------------------------------
Bonsai.Design.Visualizers
    Assembly Version: 2.6.1.0
    Win32 Version: 2.6.1.3385
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Design.Visualizers.2.6.1/lib/net462/Bonsai.Design.Visualizers.dll
----------------------------------------
ZedGraph
    Assembly Version: 5.1.7.430
    Win32 Version: 5.1.7.430
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/ZedGraph.5.1.7/lib/net35-Client/ZedGraph.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
OpenCV.Net
    Assembly Version: 3.3.0.0
    Win32 Version: 3.3.0.0
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/OpenCV.Net.3.3.1/lib/net40/OpenCV.Net.dll
----------------------------------------
Bonsai.Dsp.Design
    Assembly Version: 2.6.0.0
    Win32 Version: 2.6.0.3290
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Dsp.Design.2.6.0/lib/net462/Bonsai.Dsp.Design.dll
----------------------------------------
Bonsai.Dsp
    Assembly Version: 2.6.0.0
    Win32 Version: 2.6.0.3290
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Dsp.2.6.0/lib/net462/Bonsai.Dsp.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Bonsai.Vision
    Assembly Version: 2.6.0.0
    Win32 Version: 2.6.0.3290
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Vision.2.6.0/lib/net462/Bonsai.Vision.dll
----------------------------------------
Bonsai.Vision.Design
    Assembly Version: 2.6.0.0
    Win32 Version: 2.6.0.3290
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Vision.Design.2.6.0/lib/net462/Bonsai.Vision.Design.dll
----------------------------------------
Bonsai.Pylon
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Pylon.0.1.0/lib/net45/Bonsai.Pylon.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Basler.Pylon
    Assembly Version: 1.1.0.0
    Win32 Version: 5.1.0.12681
    CodeBase: file:///C:/Users/rjaco/AppData/Local/Bonsai/Packages/Bonsai.Pylon.0.1.0/build/net45/bin/x86/Basler.Pylon.dll
----------------------------------------

Gonçalo Lopes

unread,
Jun 27, 2021, 2:58:29 PM6/27/21
to Irene Jacobsen, Bonsai Users
Hi Irene,

Which version of the Pylon runtime are you running? The current version of the Bonsai package requires the 5.1.0 runtime.

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/8f4d7bee-6da6-4833-9f18-8da252ce9578n%40googlegroups.com.

Irene Jacobsen

unread,
Jun 27, 2021, 3:02:29 PM6/27/21
to Bonsai Users
Hi,

I have the 6.2.0 version. I tried an earlier version too, to no avail, but don't remember specifically which one. I can try 5.1.0 too and report back then.

Irene Jacobsen

unread,
Jun 28, 2021, 3:43:19 PM6/28/21
to Bonsai Users
Hi again,

I'm happy to report that the problem is solved by downgrading to Pylon Viewer 5.1.0 (and then reinstalling Bonsai)! I think I tried downgrading to 5.2.0 earlier, but I guess that was still too recent.

Thank you for your help!

Reply all
Reply to author
Forward
0 new messages