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.
Steps to reproduce: - Download attached MediaExample project - Download JMF library from http://java.sun.com/products/java-media/jmf/2.1.1/download.html - Open the MediaExample project and resolve broken links - Profile the MediaExample project The EXCEPTION_ACCESS_VIOLATION appears in the output window Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 8) Profiler Agent: Established local connection with the tool # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d945e13, pid=2436, tid=3912 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_05-ea-b04 mixed mode windows-x86) # Problematic frame: # V [jvm.dll+0x95e13] # # An error report file with more information is saved as: Profiler Agent: Initializing... Profiler Agent: Options: >C:\Program Files\netbeans\profiler3\lib,5140,10< Profiler Agent: Initialized succesfully Profiler Agent: Redefining 100 classes at idx 0, out of total 552 Profiler Agent: Redefining 100 classes at idx 100, out of total 552
Created attachment 59005 [details] MediaExample project
Created attachment 59006 [details] Profiler log file
Additional steps: - Profile the MediaExample project in CPU mode - Switch the project profiling to Memory mode The exception appears.
See issue 113847 and bug in JDK http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6598065
According to evaluations of issues mentioned above, this is a JDK issue. Can't be fixed in JavaFX Profiler itself. The suggested work-around is to run profiled application with -Xshare:off.
Let's make sure that it is documented on Wiki
Created JavaFX plugin "Known Issues" wiki page: http://wiki.netbeans.org/JavaFXPluginKnownIssues.
I added -Xshare:off options to the project VM options but the issue is still reproduced: # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d945e13, pid=1620, tid=1472 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_05-ea-b04 mixed mode windows-x86) # Problematic frame: # V [jvm.dll+0x95e13] # # An error report file with more information is saved as: # C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\75\JavaFXApplication2\hs_err_pid1620.log # # If you would like to submit a bug report, please visit: Profiler Agent: Initializing... Profiler Agent: Options: >C:\Program Files\nb\netbeans\profiler3\lib,5140,10< # http://java.sun.com/webapps/bugreport/crash.jsp # Profiler Agent: Initialized succesfully Profiler Agent: Redefining 100 classes at idx 0, out of total 552 Profiler Agent: Redefining 100 classes at idx 100, out of total 552 Profiler Agent: Redefining 100 classes at idx 200, out of total 552 Profiler Agent: Redefining 100 classes at idx 300, out of total 552 Profiler Agent: Redefining 100 classes at idx 400, out of total 552 Profiler Agent: Redefining 52 classes at idx 500, out of total 552 Java Result: 1
Created attachment 60600 [details] IDE log file
Created attachment 60601 [details] Profiler hs_err_pid file
The issue is reproduced with jdk 1.6.0_05 and is not reproduced with jdk1.6.0_10
Can't reproduce with jdk 1.6.0_10 either. Looks like this is a side effect of some VM improvement. Note that jdk 1.6.0_05 uses HotSpot VM 10.0-b19 when jdk 1.6.0_10 uses HotSpot VM 11.0-b11. Have nothing to do with this in scopes of JavaFX Profiler module. The recommendation to use jdk 1.6.0_10 or later for JavaFX projects profiling will be added to Wiki.
verified with JDK 6 update 10