Cant get 2nd session to start for doing 2 cameras


#1

I have successfully run two sessions of SGP so I can run two cameras in master/slave mode. The primary runs the first camera and controls the mount and dither, etc. The second session runs my WF and just takes images and through out what is not good due to dither or meridian flip, centering etc. It has worked numerous times. I have been following multiple threads on the desire for full 2nd camera support, I count me as #8, but this is not about any request for major upgrades to SGP. This is an error issue. Now I cant get the 2nd session to even start. It errors out and just sits there at the opening stage. I have screen captures of the dialog boxes that come up and here is the error log:

I will do a post on CN so that I can post the images, but I dont see how to do that on the forum. Please help.

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

************** Exception Text **************
System.InvalidOperationException: DragDrop registration did not succeed. —> System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
— End of inner exception stack trace —
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.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.7.3131.0 built by: NET472REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Sequence Generator
Assembly Version: 3.0.2.94
Win32 Version: 3.0.2.94
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/Sequence%20Generator.exe

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
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.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

ServiceStack
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.DLL

ServiceStack.Interfaces
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.Interfaces.DLL

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3131.0 built by: NET472REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 4.5.8.15203
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/Newtonsoft.Json.DLL

System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3120.0 built by: NET472REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

RestSharp
Assembly Version: 100.0.0.0
Win32 Version: 105.2.3.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/RestSharp.DLL

Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.7.3131.0 built by: NET472REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

ServiceStack.ServiceInterface
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.ServiceInterface.DLL

ServiceStack.Common
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.Common.DLL

ServiceStack.Text
Assembly Version: 3.9.45.0
Win32 Version: 3.9.45.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.Text.DLL

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

ASCOM.DeviceInterfaces
Assembly Version: 6.0.0.0
Win32 Version: 6.3.0.2831
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ASCOM.DeviceInterfaces/6.0.0.0__565de7938946fba7/ASCOM.DeviceInterfaces.dll

GraphLib
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/GraphLib.DLL

MediaSlider
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/MediaSlider.DLL

System.Data.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll

System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

ASCOM.Utilities
Assembly Version: 6.0.0.0
Win32 Version: 6.3.0.2831
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ASCOM.Utilities/6.0.0.0__565de7938946fba7/ASCOM.Utilities.dll

Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

ASCOM.DriverAccess
Assembly Version: 6.0.0.0
Win32 Version: 6.3.0.2831
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ASCOM.DriverAccess/6.0.0.0__565de7938946fba7/ASCOM.DriverAccess.dll

ASCOM.Astrometry
Assembly Version: 6.0.0.0
Win32 Version: 6.3.0.2831
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ASCOM.Astrometry/6.0.0.0__565de7938946fba7/ASCOM.Astrometry.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:

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.


#2

Use the “upload” button and upload your file…

upload


#3

Error log.txt (9.8 KB)


#4

These are the screen captures and the error logs.


#5

Can you post the SGP log as well?

Information on where to find it can be found here:

Thanks,
Jared


#6

Yes, I will pull them and post them tonight. However, since the 2nd session never loads, I dont know if it will save anything, but I will post what I find.


#7

I will pull it and post it tonight.


#8

Hi,

I had a problem similar to this. You used to get this error if you had ‘allow external control of telescope’ enable in equipment.

If you do have this setting enabled, could you try disabling it and launching a second instance?


#9

Here are the log files: I tried it a couple of times so I am including my last three logs

sg_logfile_20180811085835.txt (19.0 KB)
sg_logfile_20180811085727.txt (17.4 KB)
sg_logfile_20180811085702.txt (19.5 KB)


#10

Giving it a try now. However, When I was launching, I had no equipment connected.


#11

WOW that was it. It launched right away. This needs to be documented. What is the real issue?


#12

I reported a bug about this a while ago. I thought it was fixed. Perhaps the issue has resurfaced?


#13

I thought so too. I’ll double check that. It certainly shouldn’t be starting up without equipment being connected and if there is an issue it should die quietly or at least tell you what happened, not throw an exception.

Thanks,
Jared


#14

Any update here? This “fix” by disabling this external control option has worked, but what is the long term fix?


#15

I don’t think there is anything to fix? I is unlikely that you will need this option for your second instance (or are you trying to control two mounts with one PC)? I think the fix that Jared was mentioning was referring to a notification to the user to turn this option off if a second instance was launched (which would avoid the confusion that you have faced).


#16

This notification already exists. The problem is that during startup it’s attempting to start the listener which doesn’t really make sense with no telescope connected. It’s attempting to tell you that there is an error but since the system isn’t initialized yet it can’t do that an an exception happens.

Anyways, this has been fixed. Will come out with the next SGP3 release.

Thanks,
Jared


#17

Well now I have a new problem. Now when I try and start the 2nd session, I simply does nothing. I looks like it will open a new 2nd session, but nothing comes up. The first session works fine.


www.mainsequencesoftware.com