ocular-motor-lab / OpenIris

GNU Affero General Public License v3.0
6 stars 1 forks source link

Can't open Spinnaker camera. Spinnaker: Camera has not started streaming [-1010] #42

Open GanchengZhu opened 3 months ago

GanchengZhu commented 3 months ago

12:08:10 - OpenIris.EyeTrackingSystemBase loader : 16 factories available 12:08:10 - OpenIris.CalibrationPipelineBase loader : 3 factories available 12:08:10 - OpenIris.EyeTrackingPipelineBase loader : 4 factories available 12:08:11 - Error starting WEB service: HTTP 无法注册 URL http://+:9001/EyeTrackerEndpoint/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 12:08:11 - ==== INSTRUCTIONS ========================================================== 12:08:11 - After running the server for the first time you should open the command line 12:08:11 - in administrator mode and run the following command to enable the service. 12:08:11 - netsh http add urlacl url = http://+:9001/EyeTrackerEndpoint/ user=username 12:08:11 - After running the command and starting the eye tracker you can open the browser 12:08:11 - http://localhost:9001/EyeTrackerEndpoint/Web/StartRecording 12:08:11 - Or from a different computer using the correct IP address 12:08:11 - ==== END INSTRUCTIONS ========================================================== 12:08:11 - TCP server Waiting for a connection in port 9002 ... 12:08:11 - UDP server Waiting for requests in port 9003. 12:08:51 - StartTracking 12:08:52 - Stopping Eye Tracker. 12:08:55 - ERROR: SpinnakerNET.SpinnakerException: Spinnaker: Camera has not started streaming [-1010] 在 SpinnakerNET.ManagedCameraBase.EndAcquisition() 在 SpinnakerInterface.EyeTrackingSystemSpinnaker_SingleCam.Dispose() 位置 C:\Users\roksana.s.sadeghi\Documents\gitRepos\OM-Lab_OpenIris\source\SpinnakerInterface\EyeTrackingSystemSpinnaker_SingleCam.cs:行号 93 在 OpenIris.EyeTracker.d73.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 OpenIris.EyeTrackerUICommands.<>cDisplayClass24_0.<<-ctor>b0>d.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 OpenIris.EyeTrackerUICommands.EyeTrackerUICommand.d12.MoveNext() 12:08:57 - Stopping Eye Tracker. 12:08:57 - Stopping Eye Tracker.

miladinovic commented 1 month ago

I had the same problem. You need to run Visual Studio in administrator mode. That solved the issue to a certain extend.

However, I still have an error with null pointer referencing.

image

GanchengZhu commented 1 month ago

I had the same problem. You need to run Visual Studio in administrator mode. That solved the issue to a certain extend.

However, I still have an error with null pointer referencing.

image

Thanks for your kind response

jotero commented 3 weeks ago

@miladinovic , what cameras are you using? Do they work on spinview?

miladinovic commented 3 weeks ago

@jotero I have two FLIR Grasshopper 3 GS3-U3-51S5M-C. Yes, they work perfectly fine with Spinview. I think the issue here is somewhere in the code, as the object is null and not properly initialized.