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 243038 - Text cursor disappears in the text editor and the terminal
Summary: Text cursor disappears in the text editor and the terminal
Status: VERIFIED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 09:13 UTC by gbc
Modified: 2015-11-23 12:15 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 gbc 2014-03-19 09:13:01 UTC
This bug occurs only when using Java8. No problem with Java7.
FYI I'm using jVi.

I don't see the text cursor in the text editor. I only known on which line it is thanks to the Current Line Highlighting feature. When I move it up/down, the highlight of the current line is correct, but I don't see the text cursor. Sometimes, the cursor blinks one or two times just after moving it, then it disappears.

This also occurs in the Terminal window. When this window is not focused, the text cursor is displayed after the shell prompt using an empty rectangle. When I click on the terminal window to give it focus, the text cursor becomes a plain rectangle then disappears.
Comment 1 Milutin Kristofic 2014-03-28 11:59:21 UTC
Can you please attach messages.log from Netbeans. What is your operating system, what is java version and Netbeans version. Thank you
Comment 2 gbc 2014-03-28 12:46:13 UTC
I just installed Java8 again on my system, and I can't reproduce this bug anymore.
Comment 3 bbouwens 2014-07-22 09:36:48 UTC
I observe the same problem here, the "About" says:

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 2
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.14.8-100.fc19.x86_64 running on amd64; ANSI_X3.4-1968; en_US (nb)
User directory: /home/bram/.netbeans/8.0
Cache directory: /home/bram/.cache/netbeans/8.0

This was when started from the KDE menu. When I start from the command line with /usr/local/netbeans-8.0/bin/netbeans the problem seems gone, and "About" has:

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 2
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.14.8-100.fc19.x86_64 running on amd64; UTF-8; en_US (nb)
User directory: /home/bram/.netbeans/8.0
Cache directory: /home/bram/.cache/netbeans/8.0

and it looks like the problem is gone! Encoding should definitely be UTF-8 of course.
Comment 4 surlykke 2014-12-18 09:45:29 UTC
I've also seen this problem. 
After reading bbouwens' comment, I changed, in: ~/.local/share/applications/netbeans-8.0.2.desktop, the line:

   Exec=/bin/sh "/home/christian/devtools/netbeans-8.0.2/bin/netbeans"

to 

   Exec=/home/christian/devtools/netbeans-8.0.2/bin/netbeans

and the problem went away.
Comment 5 gbc 2014-12-18 10:29:45 UTC
Although I dit not reported, this bug reappeared some time after my last post. I also use KDE as my desktop environment. I can confirm that surlykke's fix work for me too.
Comment 6 ricktw 2015-05-12 11:59:10 UTC
Thanks surlykke@netbeans.org
I was also running Netbeans with "/bin/sh". Removing this solved the issue for me too.
Comment 7 bbouwens 2015-08-28 12:50:16 UTC
Also tried the trick with removing /bin/sh, but for me that doesn't help.
Now it could relate to that I use /bin/zsh as default shell (no this isn't the place to start a shell war) so there may be something subtle in the environment, but I don't see yet why.
Comment 8 Milutin Kristofic 2015-08-28 13:07:21 UTC
All of you have KDE and are you using jVi?
Comment 9 bbouwens 2015-08-28 14:02:30 UTC
At least I do. But I've actually seen the problem also in the office, under GNOME.

In the mean time I found out that starting from the desktop doesn't set the LC_ALL; if I explicitly set it in the first lines of /usr/local/netbeans-8.0.2/bin/netbeans, the problem is gone.

So why isn't it set then, and why does Netbeans default to something silly instead of UTF-8?
Comment 10 Milutin Kristofic 2015-08-28 15:31:00 UTC
I am sending to launcher for evaluation.
Comment 11 marbach 2015-11-03 16:33:09 UTC
Cursor disappear, sometime stop responding. 
Ubuntu 14 LTS
javac 1.8.0_45-internal 
netbeans 8.0.2
problem only with java 8. 

- starting netbeans with /bin/sh, /bin/bash
- disabling "use modal frame"
- Oracle Java 8
- From scratch with test user without any custom configuration. same problem.
Comment 12 marbach 2015-11-03 16:35:15 UTC
This is jVi issue. No problem if jVi is not installed.
Comment 13 ricktw 2015-11-23 12:15:45 UTC
Indeed caused by the [jVi](http://sourceforge.net/p/jvi/discussion/10909/thread/80f191d3/) plugin.

The plugin implmented a work-around. Configure `Mac Retina Cursor Xor Bug` like this:

`Tools` -> `Options` -> `jVi Config` -> `Platform` -> `Mac Retina Cursor Xor Bug` :: true