Update overhead [message #150709] |
Mon, 13 September 2004 15:16 |
Eclipse User |
|
|
|
Originally posted by: dave.derry.equifax.com
I have a problem that has been driving us nuts for a couple of weeks
now. The application is a stand-alone app that is primarily SWT. We have
one panel however that consists of draw2d objects. The LightweightSystem
is set into a Canvas. A ScrollPane is created and set into the
LightweightSystem (I discovered that we were setting the ScrollPane into
a Figure that was set into the LwS, but I don't think that could be
causing our trouble). The ScrollPane contains a Figure that we add all
our objects to. Another panel of the window contains a TableTree.
The application is driven by events received from various other
applications. The events are passed through a JavaSpace. When an event
is received that affects one of our domain objects, we update the Figure
representing that object, as well a TableTreeItem that is controlled by
that object. For a time we see that the Figures in the Canvas remain in
sync with the TableTreeItems that correspond to them. But then, although
the TableTreeItems continue to update, the canvas seems to hang. In
fact, if we drag the scrollbar, it can take up to a minute before it
actually moves.
I'm at a loss here, and have already pulled out most of my hair ;-{
Does anyone have any ides what could be going on here? Or any
suggestions that I might try?
TIA,
Dave Derry
|
|
|
Re: Update overhead [message #150715 is a reply to message #150709] |
Mon, 13 September 2004 16:00 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Sounds really strange to me. Is the CPU busy during that minute? Try
pausing the thread with the debugger to see what is being executed.
"Dave Derry" <dave.derry@equifax.com> wrote in message
news:ci4ddi$e9f$1@eclipse.org...
> I have a problem that has been driving us nuts for a couple of weeks
> now. The application is a stand-alone app that is primarily SWT. We have
> one panel however that consists of draw2d objects. The LightweightSystem
> is set into a Canvas. A ScrollPane is created and set into the
> LightweightSystem (I discovered that we were setting the ScrollPane into
> a Figure that was set into the LwS, but I don't think that could be
> causing our trouble). The ScrollPane contains a Figure that we add all
> our objects to. Another panel of the window contains a TableTree.
>
> The application is driven by events received from various other
> applications. The events are passed through a JavaSpace. When an event
> is received that affects one of our domain objects, we update the Figure
> representing that object, as well a TableTreeItem that is controlled by
> that object. For a time we see that the Figures in the Canvas remain in
> sync with the TableTreeItems that correspond to them. But then, although
> the TableTreeItems continue to update, the canvas seems to hang. In
> fact, if we drag the scrollbar, it can take up to a minute before it
> actually moves.
>
> I'm at a loss here, and have already pulled out most of my hair ;-{
> Does anyone have any ides what could be going on here? Or any
> suggestions that I might try?
>
> TIA,
> Dave Derry
>
|
|
|
Re: Update overhead [message #150787 is a reply to message #150715] |
Tue, 14 September 2004 12:10 |
Eclipse User |
|
|
|
Originally posted by: dave.derry.equifax.com
<red-face>
I think I found the problem yesterday afternoon while running additional
tests. In the log file I spotted a NullPointerException coming out of
the DeferredUpdateManager (hadn't seen this before). Tracing that turned
up an update to label test that was in a method that was *not* being
called in a sync/asyncExec block. Moving that into the correct location
*seems* to have resolved the problem. Exceptions really are costly!
</red-face>
Dave
Randy Hudson wrote:
> Sounds really strange to me. Is the CPU busy during that minute? Try
> pausing the thread with the debugger to see what is being executed.
>
> "Dave Derry" <dave.derry@equifax.com> wrote in message
> news:ci4ddi$e9f$1@eclipse.org...
>
>>I have a problem that has been driving us nuts for a couple of weeks
>>now. The application is a stand-alone app that is primarily SWT. We have
>>one panel however that consists of draw2d objects. The LightweightSystem
>>is set into a Canvas. A ScrollPane is created and set into the
>>LightweightSystem (I discovered that we were setting the ScrollPane into
>>a Figure that was set into the LwS, but I don't think that could be
>>causing our trouble). The ScrollPane contains a Figure that we add all
>>our objects to. Another panel of the window contains a TableTree.
>>
>>The application is driven by events received from various other
>>applications. The events are passed through a JavaSpace. When an event
>>is received that affects one of our domain objects, we update the Figure
>>representing that object, as well a TableTreeItem that is controlled by
>>that object. For a time we see that the Figures in the Canvas remain in
>>sync with the TableTreeItems that correspond to them. But then, although
>>the TableTreeItems continue to update, the canvas seems to hang. In
>>fact, if we drag the scrollbar, it can take up to a minute before it
>>actually moves.
>>
>>I'm at a loss here, and have already pulled out most of my hair ;-{
>>Does anyone have any ides what could be going on here? Or any
>>suggestions that I might try?
>>
>>TIA,
>>Dave Derry
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03089 seconds