New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDE window leaks undisposed Timer objects even when closed #3655

Closed
JakubValtar opened this Issue Aug 18, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@JakubValtar
Contributor

JakubValtar commented Aug 18, 2015

  1. Run PDE
  2. Open jVisualVM
  3. Open new PDE window File/New
  4. Bunch of new threads appear
  5. Close the new PDE window
  6. Timer-xx thread created with the new PDE stays alive

After trying out some examples I have 30 waiting timer threads here (one for each exmple). Not good.

@JakubValtar JakubValtar added the pde label Aug 18, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Aug 18, 2015

Member

What's creating the thread?

Member

benfry commented Aug 18, 2015

What's creating the thread?

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Aug 18, 2015

Contributor

Don't know, it gets created when I create a new PDE window. Maybe error checker is using it to run periodically?

Contributor

JakubValtar commented Aug 18, 2015

Don't know, it gets created when I create a new PDE window. Maybe error checker is using it to run periodically?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Aug 19, 2015

Member

Try setting DISABLE_CARET = true inside JEditTextArea and see if that fixes it.

Member

benfry commented Aug 19, 2015

Try setting DISABLE_CARET = true inside JEditTextArea and see if that fixes it.

@benfry benfry closed this Aug 19, 2015

@benfry benfry reopened this Aug 19, 2015

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Aug 19, 2015

Contributor

It's Timer timer in processing.app.ui.Editor.

Contributor

JakubValtar commented Aug 19, 2015

It's Timer timer in processing.app.ui.Editor.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Aug 19, 2015

Member

!#%#@ not my code... Try with my most recent commit?

Member

benfry commented Aug 19, 2015

!#%#@ not my code... Try with my most recent commit?

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Aug 19, 2015

Contributor

Solved.

Contributor

JakubValtar commented Aug 19, 2015

Solved.

@benfry benfry changed the title from PDE window leaks Timer thread when closed to PDE window leaks undisposed Timer objects even when closed Aug 20, 2015

@benfry benfry closed this Aug 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment