5 Replies Latest reply on Mar 15, 2011 4:05 AM by Ninarama

    Pixelbender 2.5 always hangs after some time

    Ninarama Level 1

      When I'm using Pixelbender 2.5, after 3 or 4 re-builds and moving the slider several times, the PixelBender just hangs (doesn't respond anymore).

      Before it hangs, everything behaves normal as expected.

      This doesn't happen with Pixelbender 2.x.

       

      All Pixelbender Plugins in Photoshop, After Effects or applied as Flash Shaders work fine, though. It seems to be the PixelBender 2.5 application itself.

       

      I don't know if this is because of the code I've written, but I can compile and restart it with 2.1 as long as I want, but on 2.5 it hangs after 3 or 4 restarts.

       

      I'm using:

      Win7, 64Bits, with 4GB RAM, 2.5 GHz Core Duo T9300,

      nVidia 8600M GT with 512MB RAM

       

      I just hope that the next release will be more stable, because I like the new features in 2.5. (like the image inputs don't get swapped like in 2.1)

        • 1. Re: Pixelbender 2.5 always hangs after some time
          Elba Sobrino Adobe Employee

          Could you post the kernel that is causing the problems for you in Pixel Bender Toolkit 2.5?  If you prefer, you can send it to me privately too.

           

          Thanks,
          Elba

          • 2. Re: Pixelbender 2.5 always hangs after some time
            Ninarama Level 1

            This is it:

            <languageVersion : 1.0;>

            kernel DissolveShader
            <   namespace : "";
                vendor : "";
                version : 1;
            >
            {
                input image4 src;
                input image4 map;
                output pixel4 dst;
               
               
                parameter float amount < minValue: 0.0; maxValue: 1.0; defaultValue: 0.0; >;

                void evaluatePixel() {
                    float2 oc = outCoord();
                    float cl = 1.0+((0.5-abs(0.5-amount))*6.0);
                    float4 sn = sampleNearest(map,oc);
                    float mapValue = sn[0];
                    float mapValue2 = sn[1];
                    float blendValue = sn[2];
                    float thresh = clamp(blendValue+((amount*2.0)-1.0),0.0,cl);
                    dst = sampleLinear(src,oc+float2((mapValue-0.5)*(1.0-amount)*100.0,

                                                                     (mapValue2-0.5)*(1.0-amount)*100.0))*thresh;   
                }
            }

             

            It is a quite simple kernel which does a masked blending and displacement at the same time.

            The R and G values of the "map" image are displacement vectors, the B value is the blending mask.

            It did hang even without the displacement part.

            They're values > 1 written to the RGB values, I don't know if that could be a part of the problem, but normally shouldn't cause any problems.

            It runs fine with the pixelbender 2.1 Toolkit

            • 3. Re: Pixelbender 2.5 always hangs after some time
              Elba Sobrino Adobe Employee

              We'll try to reproduce the problem in-house with your code.  We'll let you know if we need any other info.

               

              Thanks!

              --Elba

              • 4. Re: Pixelbender 2.5 always hangs after some time
                AIF Bob Level 3

                We haven’t managed to repro this problem yet – we’ve run it on a couple of different machines using 2.5 and tested it repeatedly and can’t get it to fail. So, we have some more questions:

                 

                * What mode are you running in? GPU,CPU or Flash?

                * If GPU, do you only see this hang in GPU mode, or can you reproduce it in CPU or Flash mode?

                * If GPU, what is the date and version number of the NVIDIA GPU driver you is using? (and is it up to date – new drivers can be downloaded here http://www.nvidia.com/Download/index.aspx?lang=en-us)

                * When you hit "Build and Run" are you changing anything? (e.g. editing the filter code, changing modes, changing images etc.)

                * Can you make the images you’re using available to us?

                 

                Thanks

                 

                Bob

                 

                 

                • 5. Re: Pixelbender 2.5 always hangs after some time
                  Ninarama Level 1

                  Hi Bob,

                   

                  • What mode are you running in? GPU,CPU or Flash?

                  GPU mode. The exported flash shader works fine.

                  • If GPU, do you only see this hang in GPU mode, or can you reproduce it in CPU or Flash mode?

                  CPU and Flash mode seems to work fine, couldn't reproduce hang in those

                  modes.

                  Version number is 8.17.12.5721

                  I see, there is a new version online. And if in those 166MB hasn't been

                  included a full-blown flight simulator, we're all getting screwed

                  ...or online storage ist just a bit too cheap.

                  I will download and install the new version of the driver.

                  • When you hit "Build and Run" are you changing anything? (e.g. editing the filter code, changing modes, changing images etc.)

                  It happened mostly after changing the filter a little bit, it was just

                  minor changes like changing a "0.7" to a "0.8"

                  • Can you make the images you're using available to us?

                  I actually used the included sample images and it happened on all kind

                  of images.

                   

                  Thank you very much for looking into my problem, Bob!

                  I think I will first install the new nVidia driver and see if the

                  problem still persists.

                  If the problems remain, I will send you another message.

                   

                  Sincerely,

                   

                  Nina Cording

                   

                       

                  Thanks

                      

                  Bob

                      

                      

                  >