Selur's Little Message Board
Evaluate: Unhandled C++ exception! - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: Evaluate: Unhandled C++ exception! (/thread-2507.html)



Evaluate: Unhandled C++ exception! - kingcrimsonster - 20.04.2022

When I enable some filters, AVS viewer window closes with error:

Quote:Evaluate: Unhandled C++ exception!
(C:\Windows\Temp\tempPreviewAvisynthFile05_32_20_701.avs, line 27)
..... avsViewer error output - END ---



RE: Evaluate: Unhandled C++ exception! - Selur - 20.04.2022

Preview script itself seems fine:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi3.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
# loading source: L:\!_Video\P\!_Single\Denise Masino\Black Label XXX Vol. 1 - Muscle Elegance Productions\gotovo\Black Label - Scene1-.avi
# color sampling YV12@8, matrix: bt601, scantyp: top field first, luminance scale: limited
Source = LWLibavVideoSource("L:\!_Video\P\!_Single\Denise Masino\Black Label XXX Vol. 1 - Muscle Elegance Productions\gotovo\Black Label - Scene1-.avi",cache=false,dr=true,format="YUV420P8", prefer_hw=0)
# current resolution: 624x352
# deinterlacing
SourceFiltered = Source
Source = Source.AssumeBFF()
Source = Source.QTGMC(Preset="Medium", InputType=0, TR2=1, Sharpness=1.0, SourceMatch=0, Lossless=0, ediThreads=6, PrevGlobals="Reuse")# added PrevGlobals="Reuse" to handle multiple QTGMC instances
Source = Source.SelectOdd()
SourceFiltered = SourceFiltered.AssumeBFF()
SourceFiltered = SourceFiltered.QTGMC(Preset="Medium", InputType=0, TR2=1, Sharpness=1.0, SourceMatch=0, Lossless=0, ediThreads=6, PrevGlobals="Reuse")# added PrevGlobals="Reuse" to handle multiple QTGMC instances
SourceFiltered = SourceFiltered.SelectOdd()
# filtering
# anti-aliasing
SourceFiltered = SourceFiltered.Turnleft().nnedi3(field=1,nsize=4,dh=true).TurnRight().BicubicResize(SourceFiltered.width,SourceFiltered.height,0,0,0.5,0)
# stacking horizontal for filter preview
# adjust color to RGB32 (for preview)
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec601")
# adjust color to RGB32 (for preview)
Source = Source.ConvertToRGB32(matrix="Rec601")
StackHorizontal(Source, SourceFiltered)
PreFetch(6)
# setting output fps to 23.976fps
AssumeFPS(24000,1001)
#  output: color sampling RGB32@8, matrix: bt601, scantyp: progressive, luminance scale: limited
return last
Does it work if you reopen avsViewer?

Some filter combinations cause problems when they are killed and restarted ot fast, which is why 'Synth auto refresh' is disabled by default. (like mentioned in the tool-tip)

Cu Selur


RE: Evaluate: Unhandled C++ exception! - kingcrimsonster - 20.04.2022

Quote:Does it work if you reopen avsViewer?
Yes, after reopen avsViewer, preview working.


RE: Evaluate: Unhandled C++ exception! - Selur - 20.04.2022

Quote:Yes, after reopen avsViewer, preview working.
Then it's an expexted effect and the reason why 'Synth auto refresh' is disabled by default.

Cu Selur


RE: Evaluate: Unhandled C++ exception! - kingcrimsonster - 20.04.2022

Quote:Then it's an expexted effect and the reason why 'Synth auto refresh' is disabled by default.

if the 'Synth auto refresh' is disabled, then it will become very difficult to work.


RE: Evaluate: Unhandled C++ exception! - Selur - 20.04.2022

Quote:if the 'Synth auto refresh' is disabled, then it will become very difficult to work.
Still there is nothing I can do about it.
-> Either don't use Hybrid or live with the fact that you sometimes have to restart the Avisynth Preview.

Cu Selur