Batch Render - "Exception thrown by method called"

Comments

edlerman wrote on 6/14/2022, 11:56 AM

Did you also create a region for each segment?

Yes of course. I know how to use batch render, it’s just that it’s not completing more than approx 3 regions at a time. Sometimes less.

jetdv wrote on 6/14/2022, 3:09 PM

@edlerman, I was just throwing out other possibilities/settings to try to see if any of those changes would allow it to proceed instead of cause the error hoping to see if some specific setting was triggering the issue.

VEGASNeal1 wrote on 6/15/2022, 11:46 AM

The exception shown in this thread occurs when the Render Progress Dialog is updating its information. It is attempting to read the current disk usage information. Windows is throwing an exception as-if the drive were no longer present. That portion of VEGAS Pro needs improvement. I will add a bug for this in our tracking system.

It is unclear why, in some situations, Windows is acting as if the disk drive is no longer present.

It is possible, I suppose, that Windows is powering down drives that it thinks are not in active use; or powering down the USB connection for external drives that it thinks are not in active use.

To avoid this, it might be worth ensuring that the active Windows power plan is configured to not power down drives or USB devices.

edlerman wrote on 6/15/2022, 12:14 PM

The exception shown in this thread occurs when the Render Progress Dialog is updating its information. It is attempting to read the current disk usage information. Windows is throwing an exception as-if the drive were no longer present. That portion of VEGAS Pro needs improvement. I will add a bug for this in our tracking system.

It is unclear why, in some situations, Windows is acting as if the disk drive is no longer present.

It is possible, I suppose, that Windows is powering down drives that it thinks are not in active use; or powering down the USB connection for external drives that it thinks are not in active use.

To avoid this, it might be worth ensuring that the active Windows power plan is configured to not power down drives or USB devices.


thank you for your excellent reply!

can you advise how I would check my windows power plan? All I can find is monitor and sleep settings which I’ve changed from 3 to 5 hours.

the issue in the original post usually happens around 20-90 mins into the render process though, so I’m thinking it’s another power setting id need to change. As I said before I’m still not the most experienced at this, but am trying :).

thanks!

jetdv wrote on 6/15/2022, 4:16 PM

Open Settings - Power and Sleep - click on Additional Power settings - click on Change Plan Settings - click on Change Advanced Power Settings

edlerman wrote on 6/16/2022, 10:05 AM

Open Settings - Power and Sleep - click on Additional Power settings - click on Change Plan Settings - click on Change Advanced Power Settings

Thank you! I've upped that from 20 to 120 mins! Will see if it helps :).

edlerman wrote on 6/26/2022, 9:31 AM

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Instance '0 C:' does not exist in the specified Category.
   at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
   at System.Diagnostics.PerformanceCounter.NextSample()
   at System.Diagnostics.PerformanceCounter.NextValue()
   at ScriptPortal.Vegas.DetailedRenderLibrary.DetailedRenderDialog.m_timer_Tick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at ScriptPortal.Vegas.IProjectCOM.Render(Object punkArgs, Int32& status)
   at EntryPoint.DoRender(RenderArgs args)
   at EntryPoint.DoBatchRender(ArrayList selectedTemplates, String basePath, RenderMode renderMode)
   at EntryPoint.FromVegas(Vegas vegas)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at ScriptPortal.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
   at ScriptPortal.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)

 

Unfortunately, it's still not working properly. This is an error i got half way through a batch render of just two regions.