AWS Thinkbox Discussion Forums

Event Plugin - Min Output File Size

Hey all,

I was wondering if it would be possible (and as a followup, if anyone has done so) to integrate an event plugin that would detect and re queue a task if the output file size falls below a set amount (or if its XX% smaller than tasks that preceded it). Right now we are rendering standalone vrscenes that are tiled into tasks. Invariably, one node will “render” and complete a job, however, even Deadline recognizes that the output file size is nill in the task panel (even though the job is “completed”).

I know there is an option for this under the AE plugin, however, I was curious if it was possible to use as an event script (or modify the vray plugin) so that we could incorporate it into our workflow.

Thanks!

Events still can’t fire per-task yet. You could make it an OnJobCompleted event though, I’ve done that for similar stuff.

You’ve probably checked this already, but does V-Ray (and I’m guessing SketchUp) output anything at all to show there was a problem? StdoutHandler is a better course of action here if possible.

Good question - just happened, and this is the last part of the task report. Let me know if this does or does not help, can also send along full task report:

2018-01-31 15:11:56:  0: STDOUT: [2018/Jan/31|15:11:56] Building light cache...:  0.20% [ 0h  0m  0.6s] [ 0h  4m 58.3s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:56:  0: STDOUT: [2018/Jan/31|15:11:56] Building light cache...:  0.20% [ 0h  0m  0.8s] [ 0h  6m 38.2s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:56:  0: STDOUT: [2018/Jan/31|15:11:56] Building light cache...:  0.20% [ 0h  0m  1.0s] [ 0h  8m  9.8s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:56:  0: STDOUT: [2018/Jan/31|15:11:56] Building light cache...:  0.20% [ 0h  0m  1.2s] [ 0h  9m 49.2s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:56:  0: STDOUT: [2018/Jan/31|15:11:56] Building light cache...:  0.20% [ 0h  0m  1.4s] [ 0h 11m 28.7s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:57:  0: STDOUT: [2018/Jan/31|15:11:57] 
2018-01-31 15:11:57:  0: STDOUT: Bitmap file "C:\Program Files\Chaos Group\V-Ray\V-Ray for SketchUp\extension\materials\02 MASONRY\maps\stonework-055Gray_d100.png" loaded.
2018-01-31 15:11:57:  0: STDOUT: [2018/Jan/31|15:11:57] Building light cache...:  0.20% [ 0h  0m  1.6s] [ 0h 13m  8.1s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:57:  0: STDOUT: [2018/Jan/31|15:11:57] Building light cache...:  0.20% [ 0h  0m  1.8s] [ 0h 14m 48.0s est] [0 MB resman] [0 MB texman]
2018-01-31 15:11:57:  0: STDOUT: [2018/Jan/31|15:11:57] Building light cache...:  0.20% [ 0h  0m  2.0s] [ 0h 16m 27.4s est] [0 MB resman] [0 MB texman]
2018-01-31 15:12:03:  0: STDOUT: [2018/Jan/31|15:12:03] Building light cache...:  0.20% [ 0h  0m  7.8s] [ 1h  3m 31.1s est] [0 MB resman] [0 MB texman]
2018-01-31 15:12:03:  0: INFO: Process exit code: -1073741819
2018-01-31 15:12:03:  0: INFO: Finished V-Ray Task
2018-01-31 15:12:03:  0: Done executing plugin command of type 'Render Task'

btw, this was an adjacent task and how this task ended (sucessfully):

2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Denoising complete in 3.42 s 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Number of raycasts: 138819717 (150.63 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Camera rays: 5934141 (6.44 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Shadow rays: 31507742 (34.19 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] GI rays: 24592566 (26.68 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Reflection rays: 0 (0.00 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Refraction rays: 0 (0.00 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Unshaded rays: 82645104 (89.68 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Light cache utilization: 13.21% 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Number of light evaluations: 10945213 (0.48 per pixel) 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Maximum memory usage for resman: 0.00 MB 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Number of intersectable primitives: 3084803 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] SD triangles: 3084803 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] MB triangles: 0 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Static primitives: 0 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Moving primitives: 0 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Infinite primitives: 0 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Static hair segments: 0 2018-01-31 15:12:55: 0: STDOUT: [2018/Jan/31|15:12:55] Moving hair segments: 0 2018-01-31 15:13:26: 0: STDOUT: [2018/Jan/31|15:13:26] Successfully written image file "U:\MAZZOTTA\psd-jpg\scene 2\Base Files\_tile6_scene2_alpha.exr" 2018-01-31 15:13:26: 0: STDOUT: [2018/Jan/31|15:13:26] Frame took 90.80 s. 2018-01-31 15:13:26: 0: STDOUT: [2018/Jan/31|15:13:26] Cleaning up bitmap manager 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] Closing log - 1 error(s), 2 warning(s). 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] Issues Report: 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] Warnings: 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] The parameter 'interactive' has been removed and so it has been ignored! 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] Subpixel color mapping is incompatible with adaptive lights and will be ignored. 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] Errors: 2018-01-31 15:13:27: 0: STDOUT: [2018/Jan/31|15:13:27] Error loading plugin library "C:\Program Files\Chaos Group\V-Ray\V-Ray for SketchUp\extension\vrayappsdk\bin\plugins\vray_BRDFSimbiont.dll": LoadLibrary failed (126): The specified module could not be found. 2018-01-31 15:13:27: 0: INFO: Process exit code: 3 2018-01-31 15:13:27: 0: INFO: Finished V-Ray Task 2018-01-31 15:13:27: 0: Done executing plugin command of type 'Render Task'

The V-Ray standalone plugin should fail on a non-zero exit code. All plugins usually do by default actually… Here’s the override code in the V-Ray standalone plugin:

    def CheckExitCode( self, exitCode ):
        # If V-Ray failed to load a known benign DLL, it will have an exit code other than 0. (ie. 3)
        if not self.failedLoadingDLL:
            if exitCode != 0:
                self.FailRender( "V-Ray returned non-zero error code: %s. Check the render log." % exitCode )

I’m surprised your second job succeeded. Did anyone modify that in your plugin? Maybe we can catch that large negative exit code and fail on that?

Nope, just stock and the plugin looks the same as your code snippet. I think I actually asked you all (Thinkbox) to modify the code because when vray sketchup 3.6 was released, it had that nasty BRDF DLL bug in it, which chaos group will take approximately 3 years to fix, so this was the to prevent ALL jobs from failing (which was the result at the time)

forums.thinkboxsoftware.com/vie … 684#p72684

Don’t know if thats related or not.

I think mepps approach was good but may have been too much of a blanket catch. I think we need to be more specific here.

Can you change that whole block to look like this:

    def CheckExitCode( self, exitCode ):
        # If V-Ray failed to load a known benign DLL, it will have an exit code other than 0. (ie. 3)
        if exitCode == 3:
            if self.failedLoadingDLL:
                return
                
        if exitCode != 0:
            self.FailRender( "V-Ray returned non-zero error code: %s. Check the render log." % exitCode )

Okey doke - just updated it and will put it thru its paces over the next few days and report back with any issues.

Thanks!

Sounds good. I’m wondering if we should merge this into Deadline proper or not… Avoiding any exit code check if you’re using V-Ray seems like a bad idea.

Well, after about a week testing and this does seem to work. In fact, it has caught a couple false positives like we had before and sent those back to render on another node, so I think the change is good and working (at least in my limited testing)

Okay! I’ll ask the dev team to fold this in then. Thanks for beta testing!

Hey edwin, just wanted to see if this was still slated for full release? I updated to 10.11 when it came out, and only the other week did I realize that this rolled back my vray plugin (after a few failed jobs). So it was not in 10.11 (NBD to add in manually), and I don’t think I saw it in the release notes for 10.12, but wanted to confirm it was still on the docket for release.

Thanks!

Actually, the exit code checking just missed the SP12 release. It’s been merged in so it’ll come in SP13.

Privacy | Site terms | Cookie preferences