Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353101 - "SWTException: Widget is disposed" when right clicking in Java editor window
Summary: "SWTException: Widget is disposed" when right clicking in Java editor window
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-07-26 08:58 EDT by Aaron Digulla CLA
Modified: 2018-05-14 14:05 EDT (History)
5 users (show)

See Also:


Attachments
Stack trace (5.14 KB, text/plain)
2011-07-26 08:58 EDT, Aaron Digulla CLA
no flags Details
Same error, different stack trace (3.25 KB, text/plain)
2011-07-26 08:58 EDT, Aaron Digulla CLA
no flags Details
Thread dump when Eclipse hangs in code completion popup (66.64 KB, text/plain)
2011-07-27 03:51 EDT, Aaron Digulla CLA
no flags Details
Screenshot for attachment 200425 (6.48 KB, image/png)
2011-07-27 03:52 EDT, Aaron Digulla CLA
no flags Details
Stack trace during Ctrl+C/Copy (4.96 KB, text/plain)
2011-07-27 08:04 EDT, Aaron Digulla CLA
no flags Details
VM crash in ActionContributionItem.update() (122.98 KB, text/x-log)
2011-07-27 08:07 EDT, Aaron Digulla CLA
no flags Details
Crash in memcpy() called from ZipFile.getEntry() (152.61 KB, text/x-log)
2011-07-27 08:09 EDT, Aaron Digulla CLA
no flags Details
Small script to analyze the library versions in a hs_err_pid-file (271 bytes, text/plain)
2011-07-27 08:30 EDT, Aaron Digulla CLA
no flags Details
Crash while closing Eclipse (155.73 KB, text/x-log)
2011-07-27 08:48 EDT, Aaron Digulla CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Digulla CLA 2011-07-26 08:58:18 EDT
Created attachment 200355 [details]
Stack trace

Since a while, we're getting "SWTException: Widget is disposed" when trying to open the context menu.

Maybe related: Eclipse hangs in trying to open the tool tip.

Ubuntu/Gnome version: 2.32.1
libgtk2.0-0: 2.24.4-0ubuntu2
Comment 1 Aaron Digulla CLA 2011-07-26 08:58:48 EDT
Created attachment 200356 [details]
Same error, different stack trace

Not sure if this one is related.
Comment 2 Remy Suen CLA 2011-07-26 09:15:42 EDT
The stack traces seem to have nothing to do with mouse clicks. Please attach a thread dump.
Comment 3 Dani Megert CLA 2011-07-26 10:10:18 EDT
>Maybe related: Eclipse hangs in trying to open the tool tip.
Does it hang forever (deadlock) or is it just slow?

Just to confirm: you use 3.7? Which build id?
Comment 4 Aaron Digulla CLA 2011-07-26 10:19:41 EDT
Build id: 20110615-0604 on Linux, 64bit

Sorry, missed the actual bug report :-( What happens is this:

1. I try to open the context menu or use Ctrl+Space
2. Nothing happens or a small blue window opens. Eclipse "hangs". Typing creates the attached errors in the error log.

My guess: From SWT's view, the menu widget or code completion popup is disposed. From GTK's view, the widget has yet to be closed. Since it's a popup widget, it still gets all the input.

I can minimize Eclipse to "unfreeze" it but there will be a window left in the background.

I can use Eclipse for a long time, sometimes several days before this happens. If it happens, it usually happens in quick repetition until I have to restart Eclipse.

So maybe this is a glitch in Gtk and/or Ubuntu but Eclipse is the only affected application.
Comment 5 Dani Megert CLA 2011-07-26 10:23:45 EDT
So, content assist is basically broken? Or do you get the first pop-up with the completions but not the one on the right with the Javadoc help? Might be an issue with the Browser widget.
Comment 6 Aaron Digulla CLA 2011-07-27 03:51:39 EDT
Created attachment 200425 [details]
Thread dump when Eclipse hangs in code completion popup
Comment 7 Aaron Digulla CLA 2011-07-27 03:52:08 EDT
Created attachment 200426 [details]
Screenshot for attachment 200425 [details]
Comment 8 Dani Megert CLA 2011-07-27 03:54:56 EDT
The delay/hang is probably bug 345093.-
Comment 9 Aaron Digulla CLA 2011-07-27 04:04:51 EDT
(In reply to comment #5)
> So, content assist is basically broken? Or do you get the first pop-up with the
> completions but not the one on the right with the Javadoc help? Might be an
> issue with the Browser widget.

I've attached a screen shot. The stack trace doesn't say anything about the browser widget but it hangs in Shell.setVisible(). Not sure which of the two popups this.

Note that this time, I didn't get an NPE. Maybe I'm having two issues here :-/

(In reply to comment #8)
> The delay/hang is probably bug 345093.-

In my case, the popup appears immediately but never goes away. Might be a race in the Gtk code? If so, that's unrelated to the NPE issue.

Should I move the stack traces to bug 345093?
Comment 10 Dani Megert CLA 2011-07-27 04:07:13 EDT
> Should I move the stack traces to bug 345093?

Or just add a link to this bug here.
Comment 11 Aaron Digulla CLA 2011-07-27 08:04:50 EDT
Created attachment 200440 [details]
Stack trace during Ctrl+C/Copy
Comment 12 Aaron Digulla CLA 2011-07-27 08:07:13 EDT
Created attachment 200442 [details]
VM crash in ActionContributionItem.update()
Comment 13 Aaron Digulla CLA 2011-07-27 08:09:12 EDT
Created attachment 200444 [details]
Crash in memcpy() called from ZipFile.getEntry()
Comment 14 Aaron Digulla CLA 2011-07-27 08:10:12 EDT
I've seen the crash in ActionContributionItem.update() two times.

The variety of errors makes me wonder if this is a memory corruption problem in Gtk or somewhere else :-/
Comment 15 Aaron Digulla CLA 2011-07-27 08:11:01 EDT
Possibly related: bug 345093 - Shell.setVisible is extremely slow on Linux
Comment 16 Aaron Digulla CLA 2011-07-27 08:30:08 EDT
Created attachment 200446 [details]
Small script to analyze the library versions in a hs_err_pid-file

This is a small script for Debian-based systems to get a list of library versions loaded in a Java application from the file names in a hs_err_pid* file.
Comment 17 Aaron Digulla CLA 2011-07-27 08:34:07 EDT
Library versions:

gtk2-engines-qtcurve  1.8.5-1
gvfs  1.8.0-0ubuntu2
libasound2  1.0.24.1-0ubuntu5
libaspell15  0.60.6-6
libatk1.0-0  2.0.0-0ubuntu1
libc6  2.13-0ubuntu13
libcairo2  1.10.2-2ubuntu2
libcanberra0  0.28-0ubuntu3
libcanberra-gtk0  0.28-0ubuntu3
libcanberra-gtk-module  0.28-0ubuntu3
libenchant1c2a  1.6.0-2
libfontconfig1  2.8.0-2.1ubuntu3
libfreetype6  2.4.4-1ubuntu2
libgail18  2.24.4-0ubuntu2
libgdk-pixbuf2.0-0  2.23.3-0ubuntu1
libglib2.0-0  2.28.6-0ubuntu1
libgstreamer0.10-0  0.10.32-3ubuntu3.1
libgstreamer-plugins-base0.10-0  0.10.32-1ubuntu5
libgtk2.0-0  2.24.4-0ubuntu2
libgvfscommon0  1.8.0-0ubuntu2
libhunspell-1.2-0  1.2.14-4
libice6  2
libicu44  4.4.2-2
libjpeg62  6b1-1ubuntu1
libltdl7  2.2.6b-2ubuntu3
libnspr4  4.8.7-0ubuntu1
libnss3  3.12.9+ckbi-1.82-0ubuntu2
libogg0  1.2.0~dfsg-1
libpango1.0-0  1.28.4-0ubuntu1
libpixman-1-0  0.20.2-0ubuntu1
libsm6  2
libsoup2.4-1  2.34.0-0ubuntu1
libsqlite3-0  3.7.4-2ubuntu5
libstartup-notification0  0.10-1build1
libstdc++6  4.5.2-8ubuntu4
libtdb1  1.2.9-1fakesync1
libvorbis0a  1.3.2-1ubuntu1
libvorbisfile3  1.3.2-1ubuntu1
libwebkitgtk-1.0-0  1.3.13-0ubuntu2
libx11-6  2
libxau6  1
libxcb1  1.7-2ubuntu2
libxcb-atom1  0.3.6-1build1
libxcb-aux0  0.3.6-1build1
libxcb-event1  0.3.6-1build1
libxcb-render0  1.7-2ubuntu2
libxcb-shm0  1.7-2ubuntu2
libxcomposite1  1
libxcursor1  1
libxdamage1  1
libxdmcp6  1
libxext6  2
libxfixes3  1
libxi6  2
libxinerama1  2
libxml2  2.7.8.dfsg-2ubuntu0.1
libxrandr2  2
libxrender1  1
libxslt1.1  1.1.26-6build1
libxt6  1
libxtst6  2
xulrunner-1.9.2  1.9.2.18+build2+nobinonly-0ubuntu0.10.10.1
Comment 18 Aaron Digulla CLA 2011-07-27 08:48:05 EDT
Created attachment 200447 [details]
Crash while closing Eclipse
Comment 19 Prakash Rangaraj CLA 2011-07-29 13:48:48 EDT
This looks like an SWT bug. Moving to SWT for comments
Comment 20 Eric Williams CLA 2018-05-14 14:05:51 EDT
I can't reproduce this issue on GTK3.22, 4.8 M7, and Fedora 28. Please comment if the bug re-occurs.