Select Server crashing

Discussions related to custom development with Select.
Post Reply
ckootg
Posts: 122
Joined: Fri Jan 06, 2012 6:10 pm

Select Server crashing

Post by ckootg »

I'm running the 3.0.60924.1 build. It has been running fine until some Windows Updates ran last night. Not sure if it's related or if i messed something up.

The service starts up fine, even though it complains about:

Failed to find package for service 'SoftPro.Select.Client.Formula.ICompiler'.
Failed to find package for service 'SoftPro.Select.Client.Formula.IFormulaCodeGenerator'.

We have gotten those warning ever since installing the build. The build was a clean install, since we had trouble upgrading -- previous build was uninstalled and new databases created.

About 30 seconds after start up, it crashes with:

Code: Select all

Error: The given key was not present in the dictionary.
Stack Trace: 
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at SoftPro.OrderTracking.Client.CustomFields.CustomFieldDefinition.get_Context()
   at SoftPro.OrderTracking.Client.Orders.OrderStoreProvider.SoftPro.EntityModel.ICustomPropertyProvider.get_Properties()
   at SoftPro.EntityModel.EntityRuntime.PopulateCustomFieldDescriptorCache(IDictionary`2 types)
   at SoftPro.EntityModel.EntityRuntime.EnsureModelLoaded(ModelName modelName, Action`1 progress)
   at SoftPro.OrderTracking.Client.Orders.OrderStoreProvider.EnsureDefaultOrderDefinitionLoaded(Action`1 progress)
   at SoftPro.OrderTracking.Server.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.EnsureOrderDefinitionsLoaded(Action`1 progress)
   at SoftPro.OrderTracking.Server.Package.<EnsureOrderDefinitionsLoaded>b__0(Object state)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
XML Log: 
<ILExceptionData>
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Collections.Generic.Dictionary`2" methodName="get_Item" methodSignature="TValue get_Item(TKey)" methodToken="0x60020f4" ILOffset="0" />
  <Point module="SoftPro.OrderTracking.Client.dll" classFull="SoftPro.OrderTracking.Client.CustomFields.CustomFieldDefinition" methodName="get_Context" methodSignature="System.Type get_Context()" methodToken="0x6000654" ILOffset="39" />
  <Point module="SoftPro.OrderTracking.Client.dll" classFull="SoftPro.OrderTracking.Client.Orders.OrderStoreProvider" methodName="SoftPro.EntityModel.ICustomPropertyProvider.get_Properties" methodSignature="System.Collections.Generic.IEnumerable`1[SoftPro.EntityModel.CustomPropertyDefinition] SoftPro.EntityModel.ICustomPropertyProvider.get_Properties()" methodToken="0x6000a44" ILOffset="114" />
  <Point module="SoftPro.EntityModel.dll" classFull="SoftPro.EntityModel.EntityRuntime" methodName="PopulateCustomFieldDescriptorCache" methodSignature="Void PopulateCustomFieldDescriptorCache(System.Collections.Generic.IDictionary`2[System.String,System.Type])" methodToken="0x60004f3" ILOffset="11" />
  <Point module="SoftPro.EntityModel.dll" classFull="SoftPro.EntityModel.EntityRuntime" methodName="EnsureModelLoaded" methodSignature="Void EnsureModelLoaded(SoftPro.EntityModel.ModelName, System.Action`1[System.Int32])" methodToken="0x60004f2" ILOffset="878" />
  <Point module="SoftPro.OrderTracking.Client.dll" classFull="SoftPro.OrderTracking.Client.Orders.OrderStoreProvider" methodName="EnsureDefaultOrderDefinitionLoaded" methodSignature="Void EnsureDefaultOrderDefinitionLoaded(System.Action`1[System.Int32])" methodToken="0x6000a34" ILOffset="33" />
  <Point module="SoftPro.OrderTracking.Server.dll" classFull="SoftPro.OrderTracking.Server.Orders.OrderStore" methodName="SoftPro.OrderTracking.Client.Orders.IOrderStore.EnsureOrderDefinitionsLoaded" methodSignature="Void SoftPro.OrderTracking.Client.Orders.IOrderStore.EnsureOrderDefinitionsLoaded(System.Action`1[System.Int32])" methodToken="0x600018d" ILOffset="0" />
  <Point module="SoftPro.OrderTracking.Server.dll" classFull="SoftPro.OrderTracking.Server.Package" methodName="<EnsureOrderDefinitionsLoaded>b__0" methodSignature="Void <EnsureOrderDefinitionsLoaded>b__0(System.Object)" methodToken="0x60002b4" ILOffset="13" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading.QueueUserWorkItemCallback" methodName="WaitCallback_Context" methodSignature="Void WaitCallback_Context(System.Object)" methodToken="0x6001743" ILOffset="14" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading.ExecutionContext" methodName="runTryCode" methodSignature="Void runTryCode(System.Object)" methodToken="0x600158f" ILOffset="24" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Runtime.CompilerServices.RuntimeHelpers" methodName="ExecuteCodeWithGuaranteedCleanup" methodSignature="Void ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)" methodToken="0x6004380" ILOffset="-1" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading.ExecutionContext" methodName="RunInternal" methodSignature="Void RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)" methodToken="0x600158e" ILOffset="50" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading.ExecutionContext" methodName="Run" methodSignature="Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)" methodToken="0x600158d" ILOffset="134" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading.QueueUserWorkItemCallback" methodName="System.Threading.IThreadPoolWorkItem.ExecuteWorkItem" methodSignature="Void System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()" methodToken="0x6001741" ILOffset="35" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading.ThreadPoolWorkQueue" methodName="Dispatch" methodSignature="Boolean Dispatch()" methodToken="0x600170d" ILOffset="123" />
  <Point module="CommonLanguageRuntimeLibrary" classFull="System.Threading._ThreadPoolWaitCallback" methodName="PerformWaitCallback" methodSignature="Boolean PerformWaitCallback()" methodToken="0x600173a" ILOffset="7" />
</ILExceptionData>

Code: Select all

Application: spssvc.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Collections.Generic.KeyNotFoundException
Stack:
   at SoftPro.EntityModel.EntityRuntime.EnsureModelLoaded(SoftPro.EntityModel.ModelName, System.Action`1<Int32>)
   at SoftPro.OrderTracking.Client.Orders.OrderStoreProvider.EnsureDefaultOrderDefinitionLoaded(System.Action`1<Int32>)
   at SoftPro.OrderTracking.Server.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.EnsureOrderDefinitionsLoaded(System.Action`1<Int32>)
   at SoftPro.OrderTracking.Server.Package.<EnsureOrderDefinitionsLoaded>b__0(System.Object)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
   at System.Threading.ExecutionContext.runTryCode(System.Object)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Code: Select all

Faulting application name: spssvc.exe, version: 3.0.60924.1, time stamp: 0x5060a547
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17932, time stamp: 0x50327672
Exception code: 0xe0434352
Fault offset: 0x0000c41f
Faulting process id: 0xfc
Faulting application start time: 0x01cda730367dfc08
Faulting application path: C:\Program Files (x86)\Common Files\SoftPro\Select Server\Instances\spssvr\spssvc.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 89026502-1323-11e2-8c9b-005056af8015
ckootg
Posts: 122
Joined: Fri Jan 06, 2012 6:10 pm

Re: Select Server crashing

Post by ckootg »

I think it's related to the custom field definitions I copied over from our other database. The field types must have changed.
ckootg
Posts: 122
Joined: Fri Jan 06, 2012 6:10 pm

Re: Select Server crashing

Post by ckootg »

Figured it out. The Context changed from ExistingSecurityInstrument to ExistingLien.
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Select Server crashing

Post by John Morris »

Great debugging! :)

FYI: During the tech preview phase, you're better off not copying data between databases.
John Morris
Sr. Software Architect
SoftPro
ckootg
Posts: 122
Joined: Fri Jan 06, 2012 6:10 pm

Re: Select Server crashing

Post by ckootg »

John, Is it too early to be looking at migrating our code? It doesn't sound like Cameron will be ready anytime soon. Do you guys have a timeline, so we can plan ahead? I don't want to be wasting our time, if the code base is going to change. Thanks.
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Select Server crashing

Post by John Morris »

The vast majority of our APIs have been stable for some time. I would expect very few changes between now and the release. We have not made our release date public yet. We are expecting an end-user beta to be available in the December timeframe.
John Morris
Sr. Software Architect
SoftPro
Post Reply