Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ErikC
  •  ErikC
  • Paid support Topic Starter
2015-02-27T08:15:34Z
Hi,

I was checking my tasks and i do not know excaclty what I did, but I think I was checking my on error settings of a File Delete task.
My client crashed spontaniously.

2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Before InitCompare
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Before Compare
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Compare complete
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Difflist done
2/27/2015 8:53:37 AM	Info	User 'xxxxxxxxxxxx' - Updated Task: Delete zips op G: ouder dan 14 dagen
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Before InitCompare
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Before Compare
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Compare complete
2/27/2015 8:53:37 AM	Debug	API->GetObjectDiff->Difflist done
2/27/2015 8:53:37 AM	Err	ClientError: Collection was modified; enumeration operation may not execute.: 
Server stack trace: 
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at WriteArrayOfTaskClassToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
   at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteJobClassToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMessageClassToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclar
2/27/2015 8:53:37 AM	Err	ClientError: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.: 
Server stack trace: 
   at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at CommServer.Classes.WCF.IWCFServiceCallback.OnMessageReceived(Message message)
   at CommServer.Classes.WCF.WCFServiceContract.Send(Message message)


Regards
Erik
Uses Visualcron since 2006.
Sponsor
Forum information
Support
2015-02-27T08:18:47Z
Did you click ok to save the Task? How many Tasks do you have? Do you know if you did any change to it or if the Job was running?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2015-02-27T08:25:35Z
I'm guessing here, but I think I did not change anything and cancelled out of the window.
I also don't know which job I was in. I was in a trance cheching my file delete tasks on the on error tab.
So how many tasks my job had... sorry don't know which job i was looking at.

If I encounter it again i let you know. I might have some more info.

regards
Erik
Uses Visualcron since 2006.
ErikC
  •  ErikC
  • Paid support Topic Starter
2015-02-27T08:47:27Z
Back again ..

I had the same crash again. I was removing a flow from a task this time saving the task.
The job had 4 tasks and I removes a flow line from a file delete task.

The logging of this crash is the same as the 1st post.

regards
Erik
Uses Visualcron since 2006.
Support
2015-02-27T08:56:33Z
Originally Posted by: ErikC 

Back again ..

I had the same crash again. I was removing a flow from a task this time saving the task.
The job had 4 tasks and I removes a flow line from a file delete task.

The logging of this crash is the same as the 1st post.

regards
Erik



We had a similar problem for deleting a Task. Can you reproduce this? If so, can you test reproducing this in 7.6.1. too?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2015-02-27T09:06:15Z
I'll try.

I had this cracsh now 5 times I think, all with the delete flow and save action. It doesn't happen all the time, so I'll try to reproduce it on 7.6.1

Regards
Erik
Uses Visualcron since 2006.
ErikC
  •  ErikC
  • Paid support Topic Starter
2015-02-27T13:07:44Z
Till now I did not try to check it on 7.6.1, but I had a lot of troubles here.
My client keeps crashing, and after several times the client will not load my jobs anymore.
I have to restart the whole server to make it working again.

Because I have to remove file write notifications on all tasks I thought I create a nice app (using API) for this to do.
But this has the same result. After a few flow notification changes, the connection is lost. Result is my client crashes even faster 😊

My C# code is very simple:
            if (s.Connected)
            {               
                List<JobClass> jobs = s.Jobs.GetAll();

                for (int i = 0; i < jobs.Count; i++)
                {
                    JobClass job = jobs[i];
                    List<TaskClass> tasks = job.Tasks;
                    for (int j = 0; j < tasks.Count; j++)
                    {
                        TaskClass task = tasks[j];
                        List<FlowClass> flows = task.Flow;
                        for (int k = 0; k < flows.Count; k++)
                        {
                            FlowClass flow = flows[k];

                            if (flow.NotificationId == "acbc3631-9ad4-4220-beed-8ed8eab1d8d7")
                            {
                                task.Flow.Remove(flow);
                                s.Jobs.Tasks.Update(task);
                            }
                        }
                    }                    
                }
            }

It takes a moment to remove the flow / update the task, but after a few modifications the connection is lost generating the error in my 1st post here on server level and if this happens all the upcomming itterations fail.

As we want to use the flow how it should be, I hope you have a solution asap.

Regards,
Erik 😞
Uses Visualcron since 2006.
ErikC
  •  ErikC
  • Paid support Topic Starter
2015-02-27T13:53:19Z
It's the same in 7.6.1

I created a wait task with a on complete file write task.
When i cloned this task like 20 times the client chrashed itself (different error. I'll post it in the beta topic).

After running my code wit the dll's for 7.6.1 I got the same error as 7.6.0.

Regards,
Erik
Uses Visualcron since 2006.
Support
2015-02-27T14:50:11Z
Could you please test this version now: http://www.visualcron.co....aspx?g=posts&t=4830 

If it does not work then please send the latest code you use for reproducing the error.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2015-03-01T09:01:10Z
We have tried to reproduce this with the latest build all weekend but we can't. If you can, please export your settings and send to us and tell us exactly what to do to reproduce this.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2015-03-02T07:40:27Z
Hi,

I tried to reproduce it wit the Friday build and I succeeded.
I emailed you with the server logs and added a reply in the 7.6.1 beta topic. (here )

Regards
Erik
Uses Visualcron since 2006.
Support
2015-03-02T19:47:51Z
Thank you for all the feedback and patience. Official 7.6.1. has been released today where we have fixed this issue.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top