Welcome to WSL!

Make yourself at home, but before posting, please may I ask you to read the following topics.


Posting 101
Server space, screenshots, and you

Thank you!

PS. please pretty please:


Image

Lenscare OFX crashes in GPU mode on 16.1 and .2

Moderator: Chad

User avatar
Midgardsormr
Fusionator
Posts: 1757
Joined: Wed Nov 26, 2014 8:04 pm
Answers: 14
Location: Los Angeles, CA, USA
Been thanked: 89 times
Contact:

Lenscare OFX crashes in GPU mode on 16.1 and .2

#1

Post by Midgardsormr » Fri Mar 20, 2020 8:07 am

Fusion version: 16.1, 16.2



OS and version: Windows 10 Pro



Additional relevant system info:
- Clevo laptop
- Intel Core i7-7820HK
- 64 GB RAM
- NVIDIA GTX 1070
- Windows 10 Pro 1909
- NVIDIA driver 442.19 (I also tested older NVIDIA drivers, always resulting in crashes under the same circumstances)



Description of the bug:
Fusion 16.2 crashes when using Lenscare OFX plugin when GPU is selected in:
Preferences --> Global and Default Settings --> GPU --> Device: Auto / GPU

With the GPU selected (default setting), Fusion crashes when modifying the focus point on the viewport.
The only way to prevent Fusion from crashing is to disable Selective Update in the viewport, but this degrades completely the workflow.

The only way to make the plugin work is to set:
Preferences --> Global and Default Settings --> GPU --> Device: CPU

This report was originally made on the official form here:
https://forum.blackmagicdesign.com/view ... 10#p605010
by user enrique.monzo. I have copied it here for better persistence and organization. I have not been able to verify the bug, as I don't have any Frischluft plug-ins in my v16 install.


Severity (Trivial, Minor, Major, Critical)
Minor - Workaround is CPU mode.



Steps to reproduce:



Please, if possible, provide a Fusion setup to help demonstrate the behaviour, either as an attachment or between [code] tags:

User avatar
ems
Posts: 3
Joined: Sat May 19, 2018 1:14 pm

Re: Lenscare OFX crashes in GPU mode on 16.1 and .2

#2

Post by ems » Wed Mar 25, 2020 2:33 am

The setup looks as follows:
image.png
The ColorCorrector1 node justs sets the Gamma to 2.2


You find attached, as follows, the two EXR images I used for my tests:
RGB0000.exr
Z0000.exr
You do not have the required permissions to view the files attached to this post.

User avatar
ems
Posts: 3
Joined: Sat May 19, 2018 1:14 pm

Re: Lenscare OFX crashes in GPU mode on 16.1 and .2

#3

Post by ems » Tue Apr 21, 2020 1:19 am

Fusion 16.2.1 has been released, and the issue keeps being present

howiem
Posts: 34
Joined: Fri Jun 07, 2019 3:08 am
Been thanked: 6 times

Re: Lenscare OFX crashes in GPU mode on 16.1 and .2

#4

Post by howiem » Thu Apr 30, 2020 12:55 am

Some notes about the FL plugins here: viewtopic.php?f=16&t=4033

The viewport focus depth picker is very broken - and it's something outside Frishluft's hands, it seems; the problem's somewhere in Fusion's OFX code (possibly Fusion::GetPixelInt32Flt_SSE2? or maybe that's the other bug). BMD have been notified.

You can do the focus depth picking manually: pop the depth buffer up in a viewer, hover over the area of the image you want in focus, read off the z-depth from Fusion's status bar. Then it's a bit of maths: FL's Focal Distance parameter is based on 0 (black / furthest) to 255 (white / nearest) points so you can do a mental fit() function to work out the exact value needed.

Alternatively, use the Sharp Zone "show" mode.

Either way, be sure to leave any custom iris images disconnected until you've finished playing with parameters.

I do feel for the FL developer - these problems only come up when using Fusion as the OFX host, so he's at the mercy of BMD to fix their implementation of the OFX interface. The results are worth the workarounds, though

User avatar
ems
Posts: 3
Joined: Sat May 19, 2018 1:14 pm

Re: Lenscare OFX crashes in GPU mode on 16.1 and .2

#5

Post by ems » Thu Apr 30, 2020 1:24 am

Thank you, howiem, for having a look to the issue, informing BMD and for the info.
Let's hope BMD works on this, because FL is an exceptional plugin that is worth to have and use.