--
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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/75e02d96-018d-461c-a80b-5dc07a1a6e13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jordan,Thanks for the contribution, it would be really nice if we can get this to work. I will try to see if I can get access to an AVT camera to try out this code and debug the situation.I have indeed seen this error in the past, but only once, it is quite obscure. My suspicion is that they are using some kind of COM interop behind the scenes, which may be sensitive to the way the Bonsai process is configured.In particular, I found this weird post which raises an intriguing possibility:"Consequently, when calling managed code from unmanaged code, the compiler has to pick one AppDomain to use, and it appears to pick the first one."Can you try one thing for me? If you start Bonsai from the command line, can you try passing in the flag "--noboot"? Something like:Bonsai.exe --nobootThis should start Bonsai in single AppDomain mode, and I'm curious whether this will make Vimba work...
On 6 March 2017 at 01:15, Jordan Guerguiev <guerg...@gmail.com> wrote:
Hi Gonçalo,I'm writing a custom package to get an Allied Vision Mako camera working with Bonsai using the VimbaNET SDK, based on the PointGrey package you wrote. I think I've gotten close -- the VimbaNET API is being loaded correctly, but when the code tries to get access to the camera using the API call:camera.Open( VmbAccessModeType.VmbAccessModeFull );Bonsai crashes with the following error:System.ArgumentException was unhandledMessage: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Cannot pass a GCHandle across AppDomains.Since I am very new to .NET programming I'm stumped as to what this error might mean. The example applications provided with the VimbaNET SDK are able to access the camera just fine using the same calls to the API, so I assume something about the fact that the code is being run by Bonsai is leading to this error. Since you're quite experienced with .NET programming I'm hoping you might have a hunch about why I might be getting this error. I've attached my project to this post. Any help is much appreciated!Best,Jordan Guerguiev
--
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 unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/ccac4863-2a5f-41c8-ab34-77116d716cb8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/a8eb9baf-6dc1-4238-96d8-adbde89d1835%40googlegroups.com.
We'd like to use your Allied Vision Bonsai package, but encountered some issue that causes Bonsai to crash. There'r 2 screenshots attached, the first showing the error message displayed within the Bonsai Gui, and the second showing the cmd error.
We tried both 32/64 bit Bonsai versions and used two different computers (win7/win10).
Also the --noboot flag for starting Bonsai was used. The Vimba SDK is installed and its possible to use the camera through the SDK.
Bonsai appears to be able to open a camera connection, but then produces an AccessViolationException. we contacted Allied Vision about updating the firmware since the camera is an older model.
Did you encounter a similar error when you developed the package?
I'm hoping a firmware update is simply going to fix it. We're also considering simply getting another camera....
Still If you have any idea on what might be going on we'd be happy to follow up on that.
Best,
Ivo
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/0965f33b-81f3-4f07-858a-dba3636f6d23%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/cbaca239-ce73-4b25-b372-3eaa87fd96a4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/cbaca239-ce73-4b25-b372-3eaa87fd96a4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/08085bcb-a41b-42b7-a171-c95886e855f9n%40googlegroups.com.
Hi Gonçalo, the other day I could make it work by doing exactly what you just said. However we have a new "problem" now: whenever I try to chose the frame rate (since we have a high speed camera we would like to use its maximum which is 500 fps), and I run the workflow, there is an error message and it stops working. The fps in the VimbaCapture node are set to 49 by default, how can I correctly set it to record at 500 fps?Thanks in advance for your time.Kind regards,Alicia