Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Tile and LayerGeneratedGlyphDecorator locking up

> So here are some more data points...

Great detective work.

>                 try {
> -                    boolean notifyIcon = refreshIcon(layer);
> +                    boolean notifyIcon = true;
>
>                     boolean notifyLabel = refreshLabel(layer);
>
> And voila, no more lock ups!  Well, until it happened again so traced
> back again and did the following...
>
> #P net.refractions.udig.project
> Index: src/net/refractions/udig/project/render/Tile.java
> ===================================================================
> --- src/net/refractions/udig/project/render/Tile.java   (revision 31218)
> +++ src/net/refractions/udig/project/render/Tile.java   (working copy)
> @@ -147,7 +147,7 @@
>  //                         System.out.println((msg.getNewIntValue() ==
> IRenderer.DONE)  + "; state = done");
>                            if(  swtImage == null || msg.getNewIntValue()==IRenderer.DONE){
>                                //we only care about done events
> -                               disposeSWTImage();
> +//                             disposeSWTImage();
>                            }
>                        }
>                    }
>
> Which has "cured" the lock up problem so far.  Obviously this really
> isn't a proper fix, but it is allowing me to make progress on my
> prototype.

This last one looks suspicions to me; I would only try displosing the
image if it was != null for example :-)
Emily - this is your Tile code am I reading it correct?

It appears as if we are leaking SWT images; and the linux
implementation is calling our bluff and making us wait

Jody


Back to the top