GithubHelp home page GithubHelp logo

Comments (8)

laeubi avatar laeubi commented on June 8, 2024

I think this is a race condition here:

return (!display.isDisposed()) && (display.getThread() == Thread.currentThread());

so actually the disposed check here is a bit useless when we assume multithreading and maybe better a catch clause is used.

Beside that the check in aboutToRelease seems strange as it only clears out if the thread is an UI thread, but this is only true if display.getThread() == Thread.currentThread() so I think this could be simplified to

@Override
public void aboutToRelease() {
  if (ui == Thread.currentThread()) {
	  ui = null;
  }
}

from eclipse.platform.ui.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

Sure there is a race condition, but the errors I've reported weren't seen in last ~10 years...

from eclipse.platform.ui.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

the check in aboutToRelease seems strange as it only clears out if the thread is an UI thread

This is intentionally, it only allows to release if the UI thread does it.

so I think this could be simplified to

Yes, that can be done. PR?

from eclipse.platform.ui.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

My main concern here is less the errors mentioned (which should be for sure fixed), but that workbench shutdown behavior seem to be changed now.

If that is "expected", I would like to understand what exactly caused shutdown behavior change and if there are other possible side effects beside errors here (worst case: workbench or workspace states are not properly persisted etc).

from eclipse.platform.ui.

laeubi avatar laeubi commented on June 8, 2024

It might be that a Job is running but the test shuts down faster...

from eclipse.platform.ui.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

No, that was my main workspace, not a test. Just a regular shutdown in a workspace that I use every day.

from eclipse.platform.ui.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

This error is fixed now, but as expected we see now two other issues, unfortunately lacking stack traces:

I will keep this issue open to see what the stack traces added say.

from eclipse.platform.ui.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

Haven't seen that after recent changes, let assume we are fine now.

from eclipse.platform.ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.