Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#150 jVi causes NB to hang

Major
closed-works-for-me
nobody
NetBeans (62)
5
2012-05-24
2011-09-29
Mark B
No

jVi 1.4.2
NB 7.0.1
JDK 1.6.0_24 64-bit
Windows 7 64-bit

Not sure if this is a jVi problem or a NB problem.

When editing a Java source file, I merely right-click in the document (to paste text,) and NB hangs for a very long time. Nothing in the UI responds to user input. The Windows close button does nothing. Eventually "Saving snapshot" appears in the status area. When that happens, the UI becomes responsive again, and the right-click works. If I want to get back to work, I have to manually kill the process.

Happens every time, whether I'm in insert mode or not.

Task manager shows NB and Java not using any CPU at all.

Discussion

  • Ernie Rael
    Ernie Rael
    2011-09-29

    I can't reproduce this, so I'll need more info. I haven't heard about this one before. I'm on XP, nb-7.0.1, jVi-1.4.3; it might be related to windows-7 or perhaps some jVi setting.

    > Not sure if this is a jVi problem or a NB problem.
    >
    > When editing a Java source file, I merely right-click in the document (to
    > paste text,) and NB hangs for a very long time. Nothing in the UI responds
    > to user input. The Windows close button does nothing.

    I don't see this. In normal mode I right click, see the context menu, go down to paste and select it. Some text get's put into the file at the cursor.

    > Eventually "Saving
    > snapshot" appears in the status area.

    You should get the option to report a performance bug after the saving snapshot. If you report the issue and let me know it's number/url I could go have a look (I may need to learn how to interpret it)

    > When that happens, the UI becomes
    > responsive again, and the right-click works. If I want to get back to
    > work, I have to manually kill the process.

    When you say "If I want to get back to work", I assume you mean without waiting for the "Saving snapshot".

    > Happens every time, whether I'm in insert mode or not.
    >
    > Task manager shows NB and Java not using any CPU at all.

    While it's stuck, you could take a thread dump and attach that to the bug. That might give some insight as to what it's getting stuck on.

     
  • Ernie Rael
    Ernie Rael
    2011-10-03

    • status: open --> pending
     
  • Ernie Rael
    Ernie Rael
    2011-10-03

    Any further information on this?

     
  • Mark B
    Mark B
    2011-10-03

    It happened again earlier today, but it doesn't happen now. Go figure.

    I wish I had read your earlier comment sooner. I could have reported the performance issue. But I don't remember being given that option. Maybe I had to wait for the snapshot to complete???

    I don't know what a "snapshot" is... some kind of memory dump? If so, where is it stored? Would it be useful to you? Also, how do you take a thread dump?

    Oh... yes, when I said "get back to work" I meant I didn't want to wait for the snapshot. I didn't have time then.

     
  • Mark B
    Mark B
    2011-10-03

    • status: pending --> open
     
  • Ernie Rael
    Ernie Rael
    2011-10-03

    > It happened again earlier today, but it doesn't happen now. Go figure.

    Must be a good one.

    > I wish I had read your earlier comment sooner. I could have reported the
    > performance issue. But I don't remember being given that option. Maybe I
    > had to wait for the snapshot to complete???

    Yes, once the snapshot completes, you should get that option. You might need to click on a symbol in the lower right corner to make the report.

    > I don't know what a "snapshot" is... some kind of memory dump?

    NB dump's lots of info, I've never deeply dug into one, but I could learn how.

    > If so, where is it stored?

    Probably in userdir (or maybe just in memory unless reported).

    > Would it be useful to you?

    Probably useful. Can't be sure.

    > Also, how do you take a
    > thread dump?

    At http://www.crazysquirrel.com/computing/java/basics/java-thread-dump.jspx

    Generating a Thread Dump

    Windows

    The Java application that you want to produce a thread dump for must
    be running / started in a command console. When you want to produce a
    thread dump press Ctrl-Break

    Note: it's easier to produce a thread dump on Linux as the JVM doesn't
    need to be started in a console window.

    Then copy the info out of the window and into a file.

    Google: "java thread dump" for more info

     
  • Ernie Rael
    Ernie Rael
    2011-12-04

    • status: open --> pending
     
  • Ernie Rael
    Ernie Rael
    2011-12-04

    Last I heard this was can't reproduce. Anything more to add?

     
  • Ernie Rael
    Ernie Rael
    2012-05-24

    Closed since no response after pending state.

     
  • Ernie Rael
    Ernie Rael
    2012-05-24

    • status: pending --> closed-works-for-me