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.
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.
Created attachment 156773 [details] gdb log #1
Sometimes "Variable object not found" error window is shown
Created attachment 156774 [details] Gdb log when " Variable object not found" error window is shown
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.
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)
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.
Created attachment 156813 [details] The proposed fix
Fixed in: enum:536945eb1ac8 The patch proposed has been applied
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)
Cannot reproduce the issue in build 20151119.