Bug 450982 - [javadoc] Javadoc view stops working
Summary: [javadoc] Javadoc view stops working
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2014-11-11 10:14 EST by net jiro CLA
Modified: 2014-11-27 05:36 EST (History)
3 users (show)

See Also:


Attachments
eclipse.workspace/.metadata/.log from eclipse startup with non working javadoc and declaration views (18.70 KB, application/octet-stream)
2014-11-13 08:56 EST, net jiro CLA
no flags Details
old log, rar packed (17.32 KB, application/octet-stream)
2014-11-14 08:52 EST, net jiro CLA
no flags Details
eclipse.workspace/.metadata/.log from eclipse with crashed javadoc and declaration views, and view restart (10.92 KB, application/octet-stream)
2014-11-20 08:18 EST, net jiro CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description net jiro CLA 2014-11-11 10:14:42 EST
I have a Javadoc and Declaration view pulled out to a secondary window (drag detached, not via menu->window->new window). The javadoc view often stops working and remains blank. Sometimes it comes back to life after a while, but rarely. I haven't figured out what activities activate it again. Restarting eclipse works, reset perspective does not.
The mouse hover pop-up continues to show the javadoc correctly so at least the system can parse/access javadoc, but it's not shown in the javadoc view.


-- Configuration Details --
Product: Eclipse 4.4.1.20140925-1820 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.jdt 3.10.0.v20140925-0400
Comment 1 net jiro CLA 2014-11-11 10:44:04 EST
Hmm. My bad. Restarting eclipse does not always kick the javadoc view back to life.
However, closing and re-opening the view from menu (menu->window->show view->javadoc) seems to work every time.
Comment 2 Noopur Gupta CLA 2014-11-12 05:38:28 EST
I couldn't reproduce it with Eclipse 4.5 M3 build.
Please specify the steps so that we can reproduce the issue where Javadoc view stops working. 
Also, check if Declaration view works while the Javadoc view is not working.
Attach the logs, if any.
Comment 3 net jiro CLA 2014-11-13 08:56:22 EST
Created attachment 248631 [details]
eclipse.workspace/.metadata/.log from eclipse startup with non working javadoc and declaration views

Log from latest startup of eclipse. Both the javadoc and description views did not work. Closing the views and re-opening them got both working as they should.
Comment 4 Dani Megert CLA 2014-11-14 08:26:45 EST
The exceptions come from Mylyn.
Comment 5 net jiro CLA 2014-11-14 08:50:36 EST
That was the complete log from start, and with both javadoc and declaration not working. Is there any way I can set verbosity of the logging? If it doesn't catch all exceptions?
I had moved away the old log to get a clean start. I'll attach the old complete log as well.
Comment 6 net jiro CLA 2014-11-14 08:52:46 EST
Created attachment 248667 [details]
old log, rar packed
Comment 7 Sam Davis CLA 2014-11-18 13:01:38 EST
Those exceptions are happening in a job that runs once, at startup, so I really don't think they are related.
Comment 8 Sam Davis CLA 2014-11-18 13:12:44 EST
I also took a look at the Mylyn exceptions in the rar file and couldn't see anything that looks like it would affect the Javadoc or view.
Comment 9 Dani Megert CLA 2014-11-19 05:24:28 EST
Just to confirm: you didn't accidentally disable to follow the selection (the button with the yellow left/right arrows?

Without further details/steps there's nothing we can do. I worked with detached Javadoc view for a day now, and it still updates as expected.
Comment 10 net jiro CLA 2014-11-19 08:52:42 EST
For the last couple of days the Javadoc and Declaration views haven't stopped working like they did before so I can't seem to reproduce the issue any more.
I've double checked that the "link with selection" (left & right yellow arrows button) is enabled. If I disable the link with selection the view just stays where it is. But when it stopped working earlier the view would go completely blank showing no text at all, just the empty soft yellow background and a blinking cursor if I clicked in it.

Sorry for not being more helpful. I'll push an update with attached logs to this bug immediately next time I see it. Thanks anyway :)
Comment 11 Dani Megert CLA 2014-11-19 09:35:20 EST
(In reply to net jiro from comment #10)
> Sorry for not being more helpful. I'll push an update with attached logs to
> this bug immediately next time I see it. Thanks anyway :)

Thanks!
Comment 12 net jiro CLA 2014-11-20 08:18:53 EST
Created attachment 248792 [details]
eclipse.workspace/.metadata/.log from eclipse with crashed javadoc and declaration views, and view restart

This log should contain the crash and restart of the javadoc and description views.
The javadoc view stopped working, and I soon noticed that the description view had also stopped working. I tried unchecking and checking the "link with selection" button but that didn't work (as usual when this error shows up).
Closing and restarting the javadoc and description views got them working again.

Hope this log is informative enough. If not, can I change the logging verbosity somehow to catch the issue next time?
Comment 13 Dani Megert CLA 2014-11-27 05:08:48 EST
OK, it looks like you run out of handles:

!ENTRY org.eclipse.ui 4 0 2014-11-17 16:43:28.490
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4467)
	at org.eclipse.swt.SWT.error(SWT.java:4356)
	at org.eclipse.swt.SWT.error(SWT.java:4327)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:476)
	at org.eclipse.swt.widgets.Control.createHandle(Control.java:703)
	at org.eclipse.swt.widgets.Composite.createHandle(Composite.java:306)
...

Please check when it happens next time, that I'm guessing right here.
Comment 14 net jiro CLA 2014-11-27 05:33:15 EST
Ok. I'm really sorry for pushing this on you guys and wasting your time. I'm not used to windows, having been on linux since '01, so this is sadly not the first tool I run across that works weirdly on windows due to the os design limitations. The learning cliff is kinda steep, but hey, the customer's choice and they are paying for my hours...

Thanks for all the help. You can close this and I'll ping again if I find out anything that indicates that this is not the underlying issue.

Sorry again :(
Comment 15 Dani Megert CLA 2014-11-27 05:36:05 EST
(In reply to net jiro from comment #14)
> Ok. I'm really sorry for pushing this on you guys and wasting your time. I'm
> not used to windows, having been on linux since '01, so this is sadly not
> the first tool I run across that works weirdly on windows due to the os
> design limitations. The learning cliff is kinda steep, but hey, the
> customer's choice and they are paying for my hours...
> 
> Thanks for all the help. You can close this and I'll ping again if I find
> out anything that indicates that this is not the underlying issue.
> 
> Sorry again :(

No problem!