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 255994 - [mixeddev] when stepping from Java JNIEnv* does not expand sometimes
Summary: [mixeddev] when stepping from Java JNIEnv* does not expand sometimes
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-18 10:45 UTC by Vladimir Kvashin
Modified: 2016-03-16 08:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb log #1 (117.79 KB, text/plain)
2015-10-18 11:50 UTC, Vladimir Kvashin
Details
Gdb log when " Variable object not found" error window is shown (116.45 KB, text/plain)
2015-10-18 11:52 UTC, Vladimir Kvashin
Details
Gdb log. (107.20 KB, text/plain)
2015-10-18 15:52 UTC, Vladimir Kvashin
Details
The proposed fix (1.59 KB, patch)
2015-10-19 20:07 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2015-10-18 10:45:35 UTC
When stepping from Java into native, sometimes I can not expand variable of type JNIEnv* in tool tip.

One time I tried to expand it in variables view right after expanding it in the tool tip had failed. And I succeeded. After that I could expand it in tool tip as well.

But sometimes it does not expand in variables view as well.
Comment 1 Vladimir Kvashin 2015-10-18 11:50:54 UTC
Created attachment 156773 [details]
gdb log #1
Comment 2 Vladimir Kvashin 2015-10-18 11:51:23 UTC
Sometimes "Variable object not found" error window is shown
Comment 3 Vladimir Kvashin 2015-10-18 11:52:01 UTC
Created attachment 156774 [details]
Gdb log when " Variable object not found" error window is shown
Comment 4 Vladimir Kvashin 2015-10-18 15:52:25 UTC
Created attachment 156784 [details]
Gdb log.

This time it was as follows: I stepped into function, pressed F7 once more, tried expanding tooltip. Got "Variable object not found" message. Then I tried to expand it in variables view and succeeded. After that it expanded in tool tip as well.
Comment 5 Vladimir Kvashin 2015-10-19 17:11:31 UTC
Here is a probably suspicious stack.
Once I got into it while trying to expand tool tip

"AWT-EventQueue-0"
	at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$25.actionPerformed(GdbDebuggerImpl.java:2743)
	at org.netbeans.modules.cnd.debugger.common2.debugger.ToolTipView.setVisible(ToolTipView.java:144)
	at org.netbeans.editor.ext.ToolTipSupport.ensureVisibility(ToolTipSupport.java:797)
	at org.netbeans.editor.ext.ToolTipSupport.setToolTip(ToolTipSupport.java:368)
	at org.netbeans.editor.ext.ToolTipSupport.setToolTip(ToolTipSupport.java:324)
	at org.netbeans.modules.cnd.debugger.common2.debugger.ToolTipView.showTooltip(ToolTipView.java:131)
	at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$26.run(GdbDebuggerImpl.java:2754)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(AccessController.java)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 6 Vladimir Kvashin 2015-10-19 17:40:29 UTC
ToolTipSupport.ensureVisibility
calls toolTip.setVisible(false); in ToolTipSupport.java:797
then calls toolTip.setVisible(true); in ToolTipSupport.java:820

So if a toolip was visible when we entered into this method, then first setVisible(false), then setVisible(true) will be called. Bit first call removes gdb variable - I guess that's the reason.
Comment 7 Vladimir Kvashin 2015-10-19 20:07:17 UTC
Created attachment 156813 [details]
The proposed fix
Comment 8 henk89 2015-10-20 09:44:02 UTC
Fixed in:
enum:536945eb1ac8

The patch proposed has been applied
Comment 9 Quality Engineering 2015-10-29 02:22:48 UTC
Integrated into 'main-silver', will be available in build *201510290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/673029b170bf
User: Nikolay Koldunov <henk89@netbeans.org>
Log: Fixed #255994 - [mixeddev] when stepping from Java JNIEnv* does not expand sometimes
(transplanted from 536945eb1ac83eacd7d5b38ffea19ebef412de0f)
Comment 10 Alexander Pepin 2015-11-27 14:54:03 UTC
Cannot reproduce the issue in build 20151119.