Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsvWriter throws TargetInvocationException on Ubuntu #924

Closed
matiasandina opened this issue Jun 8, 2022 · 0 comments · Fixed by #1407
Closed

CsvWriter throws TargetInvocationException on Ubuntu #924

matiasandina opened this issue Jun 8, 2022 · 0 comments · Fixed by #1407
Labels
bug Something isn't working

Comments

@matiasandina
Copy link

I have installed fresh in ubuntu following the instructions posted in the forum. I am facing this issue with csvwriter throwing an exception when dropping into layout.
This exception also prevents me form opening any sketch that already has a csvwriter

MWF: Exception while dropping:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Bonsai.IO.CsvWriter' threw an exception. ---> System.InvalidOperationException: Sequence contains more than one matching element
  at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0005c] in <d22af090bceb4be792f53595cf074724>:0 
  at Bonsai.IO.CsvWriter..cctor () [0x0000f] in <27fc88d6bed24a129f217dd1f683bc77>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00008] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00022] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000b7] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x0000c] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x0002a] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00040] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at Bonsai.Editor.GraphView.WorkflowGraphView.CreateBuilder (System.String typeName, Bonsai.ElementCategory elementCategory) [0x00041] in <72101bbd60bf4167882b3e848e0db06a>:0 
  at Bonsai.Editor.GraphView.WorkflowGraphView.CreateBuilder (System.Windows.Forms.TreeNode typeNode) [0x0000e] in <72101bbd60bf4167882b3e848e0db06a>:0 
  at Bonsai.Editor.GraphView.WorkflowGraphView.InsertGraphNode (System.Windows.Forms.TreeNode typeNode, Bonsai.Editor.GraphView.CreateGraphNodeType nodeType, System.Boolean branch, System.Boolean group, System.String arguments) [0x00097] in <72101bbd60bf4167882b3e848e0db06a>:0 
  at Bonsai.Editor.GraphView.WorkflowGraphView.InsertGraphNode (System.Windows.Forms.TreeNode typeNode, Bonsai.Editor.GraphView.CreateGraphNodeType nodeType, System.Boolean branch, System.Boolean group) [0x00000] in <72101bbd60bf4167882b3e848e0db06a>:0 
  at Bonsai.Editor.GraphView.WorkflowGraphView.graphView_DragDrop (System.Object sender, System.Windows.Forms.DragEventArgs e) [0x00152] in <72101bbd60bf4167882b3e848e0db06a>:0 
  at System.Windows.Forms.Control.OnDragDrop (System.Windows.Forms.DragEventArgs drgevent) [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0 
  at System.Windows.Forms.Control.DndDrop (System.Windows.Forms.DragEventArgs e) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0 

@glopesdev glopesdev added the bug Something isn't working label Nov 20, 2022
@glopesdev glopesdev changed the title CsvWritter Throwing TargetInvocationException CsvWriter throws TargetInvocationException on Ubuntu Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants