Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] DSF views not getting updated after having intense UI updates for sometime
  • From: Vishnu Sarath <vishnu.sarath@xxxxxxxxxxx>
  • Date: Mon, 14 Oct 2024 07:06:31 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ashling.com; dmarc=pass action=none header.from=ashling.com; dkim=pass header.d=ashling.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=neidrUVifKA51ljfCCElLOusPM3kBpicCs2FFiYCezg=; b=bORf8KGian5Aethu3kW5mKxLRD5JeeZSFdjOMpT6QoU9UuCIXlOYvfEIxVQSwU+HJT3rkLQQHY3L8y3kib3SIuKzORd4n7QppzSnHGHuxjmpBSdeaMxQdY/ZzgoZGGVNJXt6MqJw0UFAoWzCucDvJH2FYqgOz9KyO4Wk1u4pTLOr5Ppf3FCkWBQp1k6xhem2lgHiNkG1aBLwa+PVuwjgf+oZDuDwcnUA3MlpAWGgdSk7rii3sJhbJbFTsz6W3TuZC4ZlDOfUMO/khlHmElFmEpkGKE8p2ugSJJrVnJXDEhDNY4aJZIb3Xv4rrwe58Z9QmGm+uwZqjbXJWY0smlXOrg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fCe+tszzU53xz82gVbFIcEXdtVP0yPSCE4L3ybwunwYuE9sJRgRHfTZW5GlNX4jbLyXEhPixjhDntWOfeJW3h1W9MMelU7m3nfYz1E1s0q6hGEHjLvtXpDM5M79dkzZV3Z7oqMR0ZoWAFsIsSpl4CK0vbhhcuvdeOLguTp+70VgMHAEDhL2bafOVCBpnNuu9kvrM/b4WK0Z+Wj9qOhiV7X5zZMVx9XJYUcg2zDHEIlC9fRtJtV8/Q5TwlcRegbHwFYw06iLLfrQBSKeQhH13EPIffgmpM2V2674bCT2CZgpDV0/0e0vqKE+ben/2akXwVdluH4Ax9TKkwBZDhR1gcQ==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Adscl4P6BwR8vn+FRBCb64fTZUmvMQAHjXaAACcNjnAAC+MNgAAhaAag
  • Thread-topic: DSF views not getting updated after having intense UI updates for sometime

Hi Jonah,

 

We have gone through the logs when we had this issue and saw an exception related to SimpleDisplayExecutor. Could you please have a look at the below screenshot.

 

 

And as always thank you for the quick responses from your side 😊!

 

Thanks,

Vishnu

 

 

From: Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: 13 October 2024 20:37
To: Vinod Appu <vinod.appu@xxxxxxxxxxx>
Cc: CDT General developers list. <cdt-dev@xxxxxxxxxxx>; Nipin P <nipin.p@xxxxxxxxxxx>; Vishnu Sarath <vishnu.sarath@xxxxxxxxxxx>
Subject: Re: DSF views not getting updated after having intense UI updates for sometime

 

> Do you think if Display.async called by other threads multiple times going to make something similar?

 

I don't think there is an issue with Display.asyncExec implementation, but there could be a bug in SimpleDisplayExecutor or some other global state. Not sure if there is an easy way to find all static data dsf ui uses, but from your symptoms it seems likely that one of those fields is going to be in a bad state. 

 

Hopefully some long runs with tracing on (and perhaps a faster refresh interval?) will expose the case. 

 

HTH 

Jonah 

 

 

 

On Sun, Oct 13, 2024, 05:40 Vinod Appu <vinod.appu@xxxxxxxxxxx> wrote:

1) Are there any exceptions in the log - if the Diaplay.asyncExec call in SimpleDisplayExecutor throws an exception AFAICT that may break the implementation, so hopefully there would be a log entry in this case

[Vinod] Nothing seen in the first place, trying to reproduce but the issue is not always coming.

 

2) You mentioned restarting Eclipse is required to restore correct behaviour. What about just closing/opening the affected views? 

[Vinod] No, no change.

 

Do you think if Display.async called by other threads multiple times going to make something similar?

 

~Vinod

 

From: Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: 12 October 2024 20:18
To: Vishnu Sarath <vishnu.sarath@xxxxxxxxxxx>
Cc: cdt-dev@xxxxxxxxxxx; Vinod Appu <vinod.appu@xxxxxxxxxxx>; Nipin P <nipin.p@xxxxxxxxxxx>
Subject: Re: DSF views not getting updated after having intense UI updates for sometime

 

Hi Vishnu,

 

That sounds concerning, and it also sounds like it will be hard to identify where that fails. I hope you can find a way to get to the failure state faster than 15 mins.

 

I recommend you try running with various traces on as that should hopefully help identify where it is getting stuck. See screenshots below for these options files:

 

 

 

 

I would also do a thread dump once in the failed state (either pausing in the IDE or using jstack - visualvm may be helpful too?) to see if some secondary threads are deadlocked.

 

Unfortunately I don't know where the problem may be, but looking at org.eclipse.cdt.dsf.ui.concurrent.SimpleDisplayExecutor to see whether things are being queued and not run, or if they aren't being queued. The reason I recommend starting around this class is that very little state is preserved between sessions, but org.eclipse.cdt.dsf.ui.concurrent.SimpleDisplayExecutor.fExecutors is one of them.

 

The other couple of questions I would look to answer:

 

1) Are there any exceptions in the log - if the Diaplay.asyncExec call in SimpleDisplayExecutor throws an exception AFAICT that may break the implementation, so hopefully there would be a log entry in this case

2) You mentioned restarting Eclipse is required to restore correct behaviour. What about just closing/opening the affected views? 

 

HTH

Jonah

 

 


~~~
Jonah Graham (he/him)
Kichwa Coders
www.kichwacoders.com

 

 

On Sat, 12 Oct 2024 at 07:55, Vishnu Sarath <vishnu.sarath@xxxxxxxxxxx> wrote:

Hi All,

 

I am facing issue like: DSF views are not getting updated after using the UI thread intensely for sometime.

 

Just a background of what's happening in my test setup:

* We have multiple view getting refreshed at an interval of 1sec and 2secs (including trace compass views) during a CDT debug session.

* After running the same in this setup for around 15mins, we see that none of the DSF views (like Debug view, Variables views, Register view and other views which we extended from Variables) are working, the VMNodes are not getting updated. Non-DSF views are working fine.

* But we can see that the debug operations (like Resume, suspend) are sending out proper commands to GDB. So I hope the DSF session executor thread is working fine  (and of course the main (UI) thread also).

* Even if we terminate and restart, the debug launch, the issue persists (none of the DSF views are getting updated). To get recovered we need to restart the IDE.

 

I am a little confused on where to start with the analysis. Has anyone encountered a similar issue? Really appreciate if anyone could shower some thoughts on which area I should be focussing (or debugging) while root causing the issue.

 

Thanks,

Vishnu


Back to the top