- Messages
- 223
- Country

Hi Arno!
I'm having a recurring problem with writing out effects files - lots of effects (about 1.2 million) over a wide area, so lots of files... What's the methodology behind the file naming? The step seems to be working fine producing a series of "Starting writing", "Finished writing", "Parsing..." (starting and finishing), etc. - all in no particular apparent order - sometimes it starts and finishes writing, sometimes it parses.
I get over 3,700 files but the process ends when it comes with and error saying it can't find a file with a certain name - I'll try to get the error message again. scenProc crashed as I was reviewing the output and I can't save a log file (for some reason) when this error occurs.
Just wondered if the "file name" error has anything to do with large number of files, what the order of files, naming (location?), processing, and writing might be, etc.? I will try processing smaller areas to see if I get results from that.
EDIT:
A bit more information on the Error details from a log I managed to record after running a file with fewer objects processed:
8:41 AM CreateXMLEffect Information Created 13284 XML effects
...
9:35 AM SceneryProcessor Error One or more errors occurred.
9:35 AM SceneryProcessor Error at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at ASToFra.scenProc.Steps.ExportBGL.Process(List`1 cells, String[] arguments)
at ASToFra.scenProc.Processor.SceneryProcessor.Process()
at ASToFra.scenProc.Processor.SceneryProcessor.ProcessFile(String filename, Boolean errorReporting)
9:35 AM SceneryProcessor Error Cannot start process because a file name has not been provided.
9:35 AM SceneryProcessor Error at System.Diagnostics.Process.Start()
at ASToFra.ObjectWriter.BGLXWriter.CompileBGL(String xmlFileName, String compilePath)
at ASToFra.ObjectWriter.BGLXWriter.Write(String filename, Scenery scenery, Int32 subWriterIndex)
at ASToFra.scenProc.Steps.ExportBGL.<>c__DisplayClass1.<Process>b__0(GridCell cell)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
ian
I'm having a recurring problem with writing out effects files - lots of effects (about 1.2 million) over a wide area, so lots of files... What's the methodology behind the file naming? The step seems to be working fine producing a series of "Starting writing", "Finished writing", "Parsing..." (starting and finishing), etc. - all in no particular apparent order - sometimes it starts and finishes writing, sometimes it parses.
I get over 3,700 files but the process ends when it comes with and error saying it can't find a file with a certain name - I'll try to get the error message again. scenProc crashed as I was reviewing the output and I can't save a log file (for some reason) when this error occurs.
Just wondered if the "file name" error has anything to do with large number of files, what the order of files, naming (location?), processing, and writing might be, etc.? I will try processing smaller areas to see if I get results from that.
EDIT:
A bit more information on the Error details from a log I managed to record after running a file with fewer objects processed:
8:41 AM CreateXMLEffect Information Created 13284 XML effects
...
9:35 AM SceneryProcessor Error One or more errors occurred.
9:35 AM SceneryProcessor Error at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at ASToFra.scenProc.Steps.ExportBGL.Process(List`1 cells, String[] arguments)
at ASToFra.scenProc.Processor.SceneryProcessor.Process()
at ASToFra.scenProc.Processor.SceneryProcessor.ProcessFile(String filename, Boolean errorReporting)
9:35 AM SceneryProcessor Error Cannot start process because a file name has not been provided.
9:35 AM SceneryProcessor Error at System.Diagnostics.Process.Start()
at ASToFra.ObjectWriter.BGLXWriter.CompileBGL(String xmlFileName, String compilePath)
at ASToFra.ObjectWriter.BGLXWriter.Write(String filename, Scenery scenery, Int32 subWriterIndex)
at ASToFra.scenProc.Steps.ExportBGL.<>c__DisplayClass1.<Process>b__0(GridCell cell)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
ian
Last edited:
