Menu

#189 jvi no cursor on jdk8

Major
closed-fixed
nobody
None
5
2022-11-16
2015-11-02
Arren
No

NetBeans: I just switched from jdk7 to jdk8 to escape the shm bug in the older JVM, and now jvi mostly has no cursor - it WILL appear sometimes, but as a matter of course, it does not. It's as if it stops flashing in the "off" state. Perhaps a timer object got garbage collected? The timing of the stopping flashing kind of feels like this is a weakref/gc problem.

Works when switching back to openjdk-7-amd64.

Broken in: Ubuntu openjdk-8-amd64 8u45-b14-1
Broken in: Azul Zulu zulu-8 8,.7.0.5
Works in: Ubuntu openjdk-7-amd64 7u85-2.6.1-5ubuntu0.15.04.1

Discussion

  • Ernie Rael

    Ernie Rael - 2015-11-03

    I'm currently running recent jVi versions on:

    Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
    System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

    with NB 8.1. I've run with NB 8.0 and jdk8.

    What version of NB are you using?
    What version of jVi?

    I'm running on Windows, that's not your platform. You might try setting the jVi option
    "Mac Retina Cursor Xor Bug", under Platform tab.

    There are no other reports of this problem, stops flashing after a while. I don't think it is jVi.

    Could another plugin be interfering? You might try the NB user's mailing list.

     
  • Arren

    Arren - 2015-11-03

    NetBeans 8.0.2, Linux Ubuntu x86
    jvi 1.5.39.30
    I don't think I have any other nondefault plugins, certainly no editor plugins.
    Switching between jdk 8 and jdk 7 makes the bug appear and vanish reliably.

     
  • Ernie Rael

    Ernie Rael - 2015-11-03

    Did you try changing the option
    Mac Retina Cursor Xor Bug
    under Platform tab in jVi Options?

    Did you verify the cursor is OK if not jVi?

    I can't reproduce it, let me know if you want ot debug it. If so, the first thing to check is if it works when running jVi Standalone Debug (not as a NB Plugin). See
    https://sourceforge.net/p/jvi/code/ci/default/tree/README .

     
    • ColdForest

      ColdForest - 2015-11-06

      Just saw this thread - I'd also like to report problems with the cursor. I use NB v8.0.2 Linux Fedora 22 x86_64. I can see the cursor (disappearing) problem easily when I switch in and out of jVI mode (via the Tools menu jVi checkbox). In non-jVI mode the cursor blinks nominally/correctly but when I'm in jVI mode the cursor typically is not visible (sometimes when I use the mouse to select another line of text the cursor will re-appear briefly and then go away). I've played with the cursor blink rate and "use model frame", but these don't help.

      Actually, setting the blink rate to 0 (no blinking) helps a bit. The cursor does typically stay around longer but when navigating a source file the cursor will disappear when it's over a symbol/keyword and NetBeans is looking to highlight other instances of the symbol/keyword in the document (not sure what this feature is called - "live search" ;)?). So there's definitely something going on here...

       
  • Ernie Rael

    Ernie Rael - 2015-11-06

    @ColdForest,
    Did you try changing the
    Mac Retina Cursor Xor Bug
    option?

    I'll see what I can do about adding some debug stuff that can be turned on in a soon release.

    Is the cursor there on startup? (assuming jVi enabled when shutdown)

    Any random ideas on when it goes into stealth mode?

     
    • ColdForest

      ColdForest - 2015-11-06

      Hi Ernie, wow, OK, enabling "Mac Retina Cursor Xor Bug" made all the difference for me. Thank you! I can now set back my cursor defaults (300ms blink period)/use modal frame and the blinking cursor (box) appears to be sound :) (i.e., doesn't disappear).

      BTW, I run an xfce window manager through and xrdp session (using StarNet's FastX2 product - so I can run the desktop from my Windows 7 64-bit machine). The physical machine is Dell XPS 8300.

       
      • Ernie Rael

        Ernie Rael - 2015-11-06

        Excellent, glad to hear it,

        Maybe it's time to change the option name to 'cursor xor bug'.

        BTW, the JDK bug first showed up with Mac Retina's high res screen, xor mode was flaky. Look like it's spreading, oh well.

         
        • ColdForest

          ColdForest - 2015-11-06

          ;) Thanks for the quick help with this!

           
  • Ernie Rael

    Ernie Rael - 2015-11-06

    @ColdForest,
    This is jdk8?

    A few other questions for everyone:

    Is there an unusual color scheme in effect?

    When the NB window looses focus, the editor cursor should be drawn as an empty rectangle (non-blinking). Does this work?

    When a read only file is editted, the cursor is an empty rectangle and it's color is default red (there's an option.

     
  • Bram Bouwens

    Bram Bouwens - 2016-04-07

    Years ago I tried using Netbeans on Linux (Fedora). I tried it, with the jvi plugin, found this extremely annoying bug, which was reported by (only) a few other people, then went back to Eclipse.

    2 years ago I joined this project, using Netbeans on a Mac, and surprise: the jvi plugin worked fine with that, so I stuck with the Mac then.

    Then I started a sub-project on a Linux box, and found that this bug was still there. Now I just found this bug report, and tried the Mac option above, and yes: it seems to work!

    For completeness: I have over the years tried several Linux flavours (Fedora, Debian), several desktops (KDE, Gnome, ..), several JDK versions (6, 7, 8) and several Netbeans versions (7, 8). It didn't matter: the cursor never worked.

     
  • Ernie Rael

    Ernie Rael - 2016-10-07
    • status: open --> open-fixed
     
  • Ernie Rael

    Ernie Rael - 2022-11-16
    • status: open-fixed --> closed-fixed
     
  • Ernie Rael

    Ernie Rael - 2022-11-16

    Changed the default for the option, so it works out of the box for most people. Also changed the name so doesn't mention MAC.

     

Log in to post a comment.

MongoDB Logo MongoDB