Issue Details (XML | Word | Printable)

Key: VISUALVM-314
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: thurka
Reporter: Mike Swingler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
VisualVM

Unexpected IO and NPE exceptions

Created: 30/Sep/09 03:25 PM   Updated: 12/May/10 07:20 AM
Component/s: code
Affects Version/s: 1.1.1
Fix Version/s: not determined

Time Tracking:
Not Specified

Environment:

Operating System: Mac OS X
Platform: Macintosh


Issuezilla Id: 314
Tags:
Participants: jsedlacek, Mike Swingler and thurka


 Description  « Hide

During qualification testing of VisualVM on Mac OS X 10.6 Snow Leopard, we encountered the following failures attaching to a Java2Demo process:

  • STEPS TO REPRODUCE
    1. > export JAVA_HOME=`/usr/libexec/java_home -v 1.6`
    2. > $JAVA_HOME/bin/java -Dcom.sun.management.jmxremote -jar /Developer/Extras/Java/JFC/Java2D/Java2D.jar
    3. > /usr/bin/jvisualvm
    4. Select Java2D
    5. Select the Monitor tab
    6. Click the "Heap Dump" button
    7. If a red button appears in the lower right hand corner, click it
  • REGRESSION
    This was the first time I noticed a little red button (which may have contained a minus sign) in the lower right hand corner. I clicked it and learned that it's an error
    button.

This bug is not readily reproducible, but we believe it is important to report it if it can provide some clues to a deeper issue.

-------------------------------------------------------------------------------
>Log Session: Wednesday, July 8, 2009 3:19:04 PM PDT
>System Info:
Product Version = VisualVM
Operating System = Mac OS X version 10.6 running on x86_64
Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02-88; Apple Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_15-b02-216
Java Home = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
System Locale; Encoding = en_US (visualvm); MacRoman
Home Directory = /Users/mrj
Current Directory = /private/tmp/jdb_722
User Directory = /Users/mrj/Library/Application Support/visualvm/6u14
Installation = /System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/visualvm
/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/profiler3
/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/platform9
Boot & Ext. Classpath =
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsfd.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.ja
r:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Framework
s/JavaVM.framework/Versions/1.6.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/laf.jar:/System/Library/Frameworks/Jav
aVM.framework/Versions/1.6.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsse.jar:/System/Library/Framewor
ks/JavaVM.framework/Versions/1.6.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/charsets.jar:/System/Library/Java/Ex
tensions/AppleScriptEngine.jar:/System/Library/Java/Extensions/dns_sd.jar:/System/Library/Java/Extensions/j3daudio.jar:/System/Library/Java/Extensions/j3dcore.
jar:/System/Library/Java/Extensions/j3dutils.jar:/System/Library/Java/Extensions/jai_codec.jar:/System/Library/Java/Extensions/jai_core.jar:/System/Library/Java/E
xtensions/mlibwrapper_jai.jar:/System/Library/Java/Extensions/MRJToolkit.jar:/System/Library/Java/Extensions/QTJava.zip:/System/Library/Java/Extensions/vecma
th.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.6.0/Home/lib/ext/dnsns.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/localedata.jar:/System/Library/Frameworks/JavaVM.fr
amework/Versions/1.6.0/Home/lib/ext/sunjce_provider.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/sunpkcs11.jar
Application Classpath =
/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/platform9/lib/boot.jar:/System/Library/Frameworks/JavaVM.framewo
rk/Resources/VisualVM.bundle/Contents/Home/platform9/lib/org-openide-
modules.jar:/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/platform9/lib/org-openide-
util.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/dt.jar
Startup Classpath =
/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/platform9/core/core.jar:/System/Library/Frameworks/JavaVM.framew
ork/Resources/VisualVM.bundle/Contents/Home/platform9/core/org-openide-
filesystems.jar:/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/bin/../visualvm/core/com-sun-tools-visualvm-
modules-startup.jar:/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/bin/../visualvm/core/locale/core_visualvm.jar
-------------------------------------------------------------------------------

      • Profiler message (Wed Jul 08 15:19:25 PDT 2009): Starting target application...
        /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -
        agentpath:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/VisualVM.bundle/Contents/Home/profiler3/lib/deployed/jdk16/mac/libprofilerin
        terface.jnilib Xbootclasspath/a:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/VisualVM.bundle/Contents/Home/profiler3/lib/jfluid
        server.jar:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/VisualVM.bundle/Contents/Home/profiler3/lib/jfluid-server-15.jar
        org.netbeans.lib.profiler.server.ProfilerServer
        /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/VisualVM.bundle/Contents/Home/profiler3/lib/deployed/jdk16/mac 5141 10
        ___Profiler+Calibration+Run___
        INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
        org.openide.util [7.18.1.1 1 090628]
        org.openide.modules [7.7.1 090628]
        org.netbeans.lib.profiler/1 [1.3.1 081204]
        org.openide.awt [7.3.1.1 090628]
        org.jdesktop.layout/1 [1.6.1 1.0.3 090628]
        org.netbeans.api.progress/1 [1.12.1.1 1 090628]
        org.openide.dialogs [7.8.1 090628]
        org.netbeans.swing.outline [1.1.1 090628]
        org.openide.nodes [7.7.1.1 090628]
        org.openide.explorer [6.16.1 1 090628]
        org.openide.windows [6.24.1 090628]
        org.openide.filesystems [7.13.1.1.1 1 090628]
        org.netbeans.modules.editor.mimelookup/1 [1.10.1 090628]
        org.openide.text [6.21.1 090628]
        org.openide.actions [6.8.1.1 090628]
        org.netbeans.lib.profiler.common/1 [1.4.1 081204]
        org.netbeans.spi.quicksearch [1.0.1 090628]
        org.netbeans.modules.options.api/1 [1.10.1 090628]
        org.netbeans.modules.queries/1 [1.13.1 090628]
        org.openide.loaders [7.2.1 090628]
        org.openide.io [1.13.1 090628]
        org.openide.execution [1.12.1 090628]
        org.netbeans.lib.profiler.ui/1 [1.3.1 081204]
        org.netbeans.modules.profiler/1 [1.9.1 081204]
        org.netbeans.bootstrap/1 [2.15.1 090628]
        org.netbeans.core.startup/1 [1.14.1.1 090628]
        org.netbeans.modules.autoupdate.services [1.5.1 090628]
        org.netbeans.modules.sendopts/2 [2.3.1 090628]
        com.sun.tools.visualvm.core/0 [1.2 090629]
        com.sun.tools.visualvm.host/0 [1.0 090629]
        com.sun.tools.visualvm.application/0 [1.1 090629]
        com.sun.tools.visualvm.tools/0 [1.0 090629]
        com.sun.tools.visualvm.coredump/0 [1.0 090629]
        com.sun.tools.visualvm.heapdump/0 [1.0 090629]
        com.sun.tools.visualvm.threaddump/0 [1.0 090629]
        com.sun.tools.visualvm.application.views/0 [1.0 090629]
        org.netbeans.modules.favorites/1 [1.14.1 090628]
        com.sun.tools.visualvm.attach/0 [1.1 090629]
        org.netbeans.core.output2/1 [1.10.1.1 1 090628]
        com.sun.tools.visualvm.sa/0 [1.0 090629]
        com.sun.tools.visualvm.modules.startup [1.0 090629]
        org.netbeans.swing.plaf [1.8.1 090628]
        org.netbeans.core/2 [3.10.1.1 090628]
        org.netbeans.modules.settings/1 [1.15.1 090628]
        org.netbeans.swing.tabcontrol [1.13.1 090628]
        org.netbeans.core.windows/2 [2.12.1.1 090628]
        org.netbeans.modules.applemenu/1 [1.9.1 090628]
        org.netbeans.modules.autoupdate.ui [1.5.1 090628]
        org.netbeans.core.ui/1 [1.12.1 090628]
        org.netbeans.modules.masterfs/2 [2.15.1 090628]
        org.netbeans.modules.templates [1.3.1 090628]
        org.netbeans.modules.options.keymap [1.4.1 090628]
        org.netbeans.modules.core.kit [1.2.1 090628]
        org.netbeans.core.execution/1 [1.12.1.1 090628]
        com.sun.tools.visualvm.jvm/0 [1.1 090629]
        com.sun.tools.visualvm.host.views/0 [1.0 090629]
        org.netbeans.modules.javahelp/1 [2.11.1 090628]
        com.sun.tools.visualvm.jmx/0 [1.1 090629]
        com.sun.tools.visualvm.modules.appui [1.0 090629]
        com.sun.tools.visualvm.jvmstat/0 [1.0 090629]
        org.netbeans.modules.editor.mimelookup.impl/1 [1.3.1 090628]
        org.netbeans.modules.progress.ui [1.2.1 090628]
        com.sun.tools.visualvm.profiler/0 [1.0 090629]
        WARNING [org.openide.filesystems.Ordering]: Not all children in Windows2/Modes/explorer/ marked with the position attribute: [ExplorerTopComponent.wstcref],
        but some are: [favorites.wstcref, runtime.wstcref]
        WARNING [org.openide.filesystems.Ordering]: Not all children in Toolbars/ marked with the position attribute: [Standard.xml], but some are: [File, Snapshot,
        Memory]
        Diagnostic information
        Input arguments:
        -Djdk.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
        -Dnetbeans.system_http_proxy=DIRECT
        -Dnetbeans.system_http_non_proxy_hosts=
        -
        Dnetbeans.dirs=/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/bin/..//visualvm:/System/Library/Frameworks/JavaV
        M.framework/Resources/VisualVM.bundle/Contents/Home/bin/..//profiler3:
        -Dnetbeans.home=/System/Library/Frameworks/JavaVM.framework/Resources/VisualVM.bundle/Contents/Home/platform9
        -Dcom.apple.mrj.application.apple.menu.about.name=visualvm
        -Xms24m
        -Xmx192m
        -Dsun.jvmstat.perdata.syncWaitMs=10000
        Compiler: HotSpot 64-Bit Server Compiler
        Heap memory usage: initial 26.0MB maximum 189.0MB
        Non heap memory usage: initial 23.2MB maximum 132.0MB
        Garbage collector: ParNew (Collections=6 Total time spent=0s)
        Garbage collector: ConcurrentMarkSweep (Collections=1 Total time spent=0s)
        Classes: loaded=4536 total loaded=4536 unloaded 0
        INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 2,147,483,648
        INFO [null]: Total physical memory 2,147,483,648
        INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: Processing URL: https://visualvm.dev.java.net/uc/6u14/updates.xml.gz?
        unique=0805ec8d9-0cae-4825-946a-39d825426c8a_cfe74558-e453-4eda-9f7b-bd33b0d80fe5
        INFO [com.sun.tools.visualvm.attach.AttachModelImpl]: takeHeapDump
        INFO [com.sun.tools.visualvm.attach.AttachModelImpl]: takeHeapDump
        java.io.IOException: Broken pipe
        at sun.tools.attach.MacosxVirtualMachine.write(Native Method)
        at sun.tools.attach.MacosxVirtualMachine.writeString(MacosxVirtualMachine.java:285)
        at sun.tools.attach.MacosxVirtualMachine.execute(MacosxVirtualMachine.java:157)
        at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:195)
        at sun.tools.attach.HotSpotVirtualMachine.dumpHeap(HotSpotVirtualMachine.java:162)
        [catch] at com.sun.tools.visualvm.attach.AttachModelImpl.takeHeapDump(AttachModelImpl.java:45)
        at com.sun.tools.visualvm.jvm.JVMImpl.takeHeapDump(JVMImpl.java:314)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpProvider$1.run(HeapDumpProvider.java:66)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:536)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:961)
        SEVERE [org.openide.util.RequestProcessor]
        java.lang.NullPointerException
        at com.sun.tools.visualvm.core.snapshot.SnapshotDescriptor.<init>(SnapshotDescriptor.java:26)
        at com.sun.tools.visualvm.heapdump.HeapDumpDescriptor.<init>(HeapDumpDescriptor.java:30)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpDescriptorProvider.createModelFor(HeapDumpDescriptorProvider.java:21)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpDescriptorProvider.createModelFor(HeapDumpDescriptorProvider.java:17)
        at com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:91)
        at com.sun.tools.visualvm.core.datasource.descriptor.DataSourceDescriptorFactory.getDescriptor(DataSourceDescriptorFactory.java:45)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpView.<init>(HeapDumpView.java:39)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpViewProvider.createView(HeapDumpViewProvider.java:25)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpViewProvider.createView(HeapDumpViewProvider.java:18)
        at com.sun.tools.visualvm.core.ui.DataSourceViewProvider.getView(DataSourceViewProvider.java:83)
        at com.sun.tools.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:117)
        at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.openWindowAndSelectView(DataSourceWindowManager.java:156)
        at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:30)
        at com.sun.tools.visualvm.core.ui.DataSourceWindowManager$1.run(DataSourceWindowManager.java:70)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:536)
        [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:961)
        SEVERE [org.openide.util.RequestProcessor]
        java.lang.NullPointerException
        at com.sun.tools.visualvm.core.snapshot.SnapshotDescriptor.<init>(SnapshotDescriptor.java:26)
        at com.sun.tools.visualvm.heapdump.HeapDumpDescriptor.<init>(HeapDumpDescriptor.java:30)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpDescriptorProvider.createModelFor(HeapDumpDescriptorProvider.java:21)
        at com.sun.tools.visualvm.heapdump.impl.HeapDumpDescriptorProvider.createModelFor(HeapDumpDescriptorProvider.java:17)
        at com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:91)
        at com.sun.tools.visualvm.core.datasource.descriptor.DataSourceDescriptorFactory.getDescriptor(DataSourceDescriptorFactory.java:45)
        at com.sun.tools.visualvm.core.explorer.ExplorerModelBuilder.processAddedDisplayableDataSources(ExplorerModelBuilder.java:127)
        at com.sun.tools.visualvm.core.explorer.ExplorerModelBuilder.processIndependentAddedDataSources(ExplorerModelBuilder.java:91)
        at com.sun.tools.visualvm.core.explorer.ExplorerModelBuilder.processAddedDataSources(ExplorerModelBuilder.java:80)
        at com.sun.tools.visualvm.core.explorer.ExplorerModelBuilder.access$100(ExplorerModelBuilder.java:37)
        at com.sun.tools.visualvm.core.explorer.ExplorerModelBuilder$1.run(ExplorerModelBuilder.java:73)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:536)
        [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:961)
        INFO [com.sun.tools.visualvm.attach.AttachModelImpl]: takeHeapDump
        INFO [com.sun.tools.visualvm.attach.AttachModelImpl]: takeHeapDump
        INFO [com.sun.tools.visualvm.attach.AttachModelImpl]: takeHeapDump
        INFO [com.sun.tools.visualvm.attach.AttachModelImpl]: takeHeapDump


thurka added a comment - 30/Sep/09 11:44 PM

I will take a look. BTW: Does monitored Java2D application crashed, while VisualVM was doing heap dump?


Mike Swingler added a comment - 12/Dec/09 06:04 PM

Yes, the monitored app does crash.


jsedlacek added a comment - 12/May/10 07:20 AM

The 'java.lang.NullPointerException' is fixed since VisualVM 1.2. The
java.io.IOException: Broken pipe is still to be investigated.