This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239094 - GUI Snapshot disabled while debugging applets
Summary: GUI Snapshot disabled while debugging applets
Status: STARTED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-04 01:33 UTC by idclaar
Modified: 2015-02-04 17:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description idclaar 2013-12-04 01:33:28 UTC
I've got socket attach debugging setup and am able to connect to the JVM that is running the applet in my browser (IE9), but the GUI Snapshot option never gets enabled.  Breakpoints are getting hit, and object inspection works fine, but trying to find where code is for components would be nice too!  This used to work well pre-7.x, though I've never been able to get more than frame outlines to show up in the Snapshot viewer (and then only when hovering over a component.)
Comment 1 Martin Entlicher 2013-12-04 15:53:27 UTC
The GUI debugger was introduced in 7.1 (issue #198850), and I'm not aware about severe changes since that. However it's true that when I create a simple Applet and debug it in the applet viewer, the "Take GUI Snapshot" action is enabled, but it replies with "No application GUI was found". I've tried in both NetBeans 7.1 and 7.4 with identical results.
Comment 2 Martin Entlicher 2013-12-04 16:57:23 UTC
The problem is, that there are two AWT-EventQueue threads.
One in the main thread group and one in the applet file thread group.
The GUI snapshot code does not count with multiple AWT-EventQueue threads.
Comment 3 idclaar 2013-12-04 17:59:21 UTC
Hi Martin, thank you for looking into this.  I've also experienced the "No application GUI was found" behavior before when debugging applets in my weblogic, but this is something new since I've never had the feature be completely disabled before when debugging applets.  

It still works fine for things like the AnagramGame project used in the "Using the Visual Debugger in NetBeans IDE" tutorial though, so my first thought was something having to do with my particular setup, but since it worked pretty well initially, I thought it best to write it up.  Is there some additional information I can get you that will help in diagnosing the issue?
Comment 4 Martin Entlicher 2013-12-04 18:10:39 UTC
Thanks. I've already reproduced the problem and I'm working on a fix.
Comment 5 Martin Entlicher 2013-12-05 16:00:41 UTC
I've fixed the problem of not found application GUI:
changeset:   268657:721e7f2f8b96
http://hg.netbeans.org/core-main/rev/721e7f2f8b96
changeset:   268658:8faaaefdf152
http://hg.netbeans.org/core-main/rev/8faaaefdf152

I'll check if I can do something about the empty snapshot of applets and if I can reproduce the disabled Take GUI Snapshot action...
Comment 6 idclaar 2015-02-04 01:48:57 UTC
It's been a while since I logged this bug, and I was wondering if any new effort has been put into my initial issue ("GUI Snapshot disabled while debugging applets")?  I'm still working on applet (!) and could really use this feature to work in NB 8.  Are other experiencing this same issue, or am I a lone sufferer?  I guess anyone these days still working in applets is suffering, even if they aren't experiencing this behavior in the IDE.  Let me know either way.  Thanks!
Comment 7 Martin Entlicher 2015-02-04 17:00:34 UTC
I was not able to consistently reproduce the disabled Take GUI Snapshot action, therefore I do not have a fix yet. But I have reports from QE about this action being occasionally disabled. I'm busy with new development till 8.1 feature freeze, I'll concentrate more on bugfixes after the feature freeze. This is definitely an issue which I plan to look at again.