Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: On Pressing JButton, JAVA Crashes'

  1. #1
    Member suyog53's Avatar
    Join Date
    Sep 2012
    Location
    Mumbai
    Posts
    37
    My Mood
    Daring
    Thanks
    2
    Thanked 1 Time in 1 Post

    Cool On Pressing JButton, JAVA Crashes'

    I have created a project in Netbeans using swing components...'
    Multiple frames are displayed one after another as the project runs...'
    '
    But most frequently, somewhere in the middle, when I press 'ok'(JButton), the project is closed with giving error information as JAVA crashed'
    It happens most of the times, but sometimes, JButton works correctly showing next frame and the project runs successfully...'
    '
    Please if any1 could help me for how to prevent JAVA from crashing...'
    The message displayed in Netbeans Console is:
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7625a86c, pid=1980, tid=3724
    #
    # Java VM: Java HotSpot(TM) Client VM (1.7.0-ea-b19 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C  [SHLWAPI.dll+0x1a86c]
    #
    # An error report file with more information is saved as:
    # H:\Editions\pillu\Image_Scrambler\hs_err_pid1980.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
    Java Result: 1
    BUILD SUCCESSFUL (total time: 24 seconds)
    '
    I use
    OS: Windows 7'
    IDE: Netbeans 7.0.1'
    JAVA: Version 1.7'
    Also, I assigned VM memory as -Xmx512m to deal with larger files in project...'
    '
    Thanx in advance...'
    '


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: On Pressing JButton, JAVA Crashes'

    # An error report file with more information is saved as:
    # H:\Editions\pillu\Image_Scrambler\hs_err_pid1980.l og
    Well, what did it say?

  3. #3
    Member suyog53's Avatar
    Join Date
    Sep 2012
    Location
    Mumbai
    Posts
    37
    My Mood
    Daring
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: On Pressing JButton, JAVA Crashes'

    @jps...sorry for not posting the contents of log file...'
    It says...
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7625a86c, pid=1980, tid=3724
    #
    # Java VM: Java HotSpot(TM) Client VM (1.7.0-ea-b19 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C  [SHLWAPI.dll+0x1a86c]
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
     
    ---------------  T H R E A D  ---------------
     
    Current thread (0x04264400):  JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3724, stack(0x044e0000,0x04530000)]
     
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000001
     
    Registers:
    EAX=0x00000001, EBX=0x0025e6b0, ECX=0x00008000, EDX=0x00010001
    ESP=0x0452edbc, EBP=0x0452edc4, ESI=0x00000000, EDI=0x0452eddc
    EIP=0x7625a86c, EFLAGS=0x00010287
     
    Top of Stack: (sp=0x0452edbc)
    0x0452edbc:   753ce640 00000001 0452ede4 7625a8d2
    0x0452edcc:   00000001 00008000 0452eddc 0025e724
    0x0452eddc:   00000000 b99de205 0452edf4 75341642
    0x0452edec:   00000001 7538cb48 0452f020 753416de
    0x0452edfc:   00000001 00000001 00000000 27d59618
    0x0452ee0c:   00000001 0452ee8c 0452ee8c 7537b7ed
    0x0452ee1c:   0025e71c 00000000 0025e6b0 0452ee3c
    0x0452ee2c:   7537c178 0025e6b0 00000000 0452f01c 
     
    Instructions: (pc=0x7625a86c)
    0x7625a85c:   00 00 00 8d 14 48 33 f6 3b c2 0f 83 84 00 00 00
    0x7625a86c:   0f b7 08 66 85 c9 74 18 0f b7 c9 83 f9 20 74 7b 
     
     
    Stack: [0x044e0000,0x04530000],  sp=0x0452edbc,  free space=315k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [SHLWAPI.dll+0x1a86c]
    C  [SHLWAPI.dll+0x1a8d2]
    C  [SHELL32.DLL+0x21642]
    C  [SHELL32.DLL+0x216de]
    C  [SHELL32.DLL+0x21687]
    C  [awt.dll+0xafd65]
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    J  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::StubRoutines (1)
     
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    J  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::Interpreter
    v  ~BufferBlob::StubRoutines (1)
     
    ---------------  P R O C E S S  ---------------
     
    Java Threads: ( => current thread )
      0x05bb4000 JavaThread "TimerQueue" daemon [_thread_blocked, id=5728, stack(0x060a0000,0x060f0000)]
      0x01921800 JavaThread "DestroyJavaVM" [_thread_blocked, id=2624, stack(0x00b20000,0x00b70000)]
    =>0x04264400 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3724, stack(0x044e0000,0x04530000)]
      0x01a0d000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3048, stack(0x04490000,0x044e0000)]
      0x01a0c800 JavaThread "AWT-Shutdown" [_thread_blocked, id=4620, stack(0x04440000,0x04490000)]
      0x04326800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4008, stack(0x043f0000,0x04440000)]
      0x0199d000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=736, stack(0x04030000,0x04080000)]
      0x0198ec00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5248, stack(0x03fe0000,0x04030000)]
      0x0198e000 JavaThread "Attach Listener" daemon [_thread_blocked, id=4676, stack(0x03f90000,0x03fe0000)]
      0x01985400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4948, stack(0x03f40000,0x03f90000)]
      0x0197f000 JavaThread "Finalizer" daemon [_thread_blocked, id=5572, stack(0x03d00000,0x03d50000)]
      0x0197a400 JavaThread "Reference Handler" daemon [_thread_blocked, id=1828, stack(0x03cb0000,0x03d00000)]
     
    Other Threads:
      0x01970c00 VMThread [stack: 0x00b70000,0x00bc0000] [id=3532]
      0x0199e800 WatcherThread [stack: 0x04080000,0x040d0000] [id=4044]
     
    VM state:not at safepoint (normal execution)
     
    VM Mutex/Monitor currently owned by a thread: None
     
    Heap
     def new generation   total 960K, used 827K [0x07c90000, 0x07d90000, 0x0a3f0000)
      eden space 896K,  87% used [0x07c90000, 0x07d53658, 0x07d70000)
      from space 64K,  72% used [0x07d80000, 0x07d8b980, 0x07d90000)
      to   space 64K,   0% used [0x07d70000, 0x07d70000, 0x07d80000)
     tenured generation   total 4096K, used 3366K [0x0a3f0000, 0x0a7f0000, 0x27c90000)
       the space 4096K,  82% used [0x0a3f0000, 0x0a739910, 0x0a739a00, 0x0a7f0000)
     compacting perm gen  total 12288K, used 1097K [0x27c90000, 0x28890000, 0x2bc90000)
       the space 12288K,   8% used [0x27c90000, 0x27da2700, 0x27da2800, 0x28890000)
        ro space 8192K,  66% used [0x2bc90000, 0x2c1e9388, 0x2c1e9400, 0x2c490000)
        rw space 12288K,  52% used [0x2c490000, 0x2cadae78, 0x2cadb000, 0x2d090000)
     
    Dynamic libraries:
    0x00400000 - 0x00422000 	C:\Program Files\Java\jdk1.7.0\bin\java.exe
    0x76db0000 - 0x76eec000 	C:\Windows\SYSTEM32\ntdll.dll
    0x76350000 - 0x76424000 	C:\Windows\system32\kernel32.dll
    0x75060000 - 0x750aa000 	C:\Windows\system32\KERNELBASE.dll
    0x76430000 - 0x764d0000 	C:\Windows\system32\ADVAPI32.dll
    0x760c0000 - 0x7616c000 	C:\Windows\system32\msvcrt.dll
    0x76220000 - 0x76239000 	C:\Windows\SYSTEM32\sechost.dll
    0x76b00000 - 0x76ba1000 	C:\Windows\system32\RPCRT4.dll
    0x7c340000 - 0x7c396000 	C:\Program Files\Java\jdk1.7.0\jre\bin\msvcr71.dll
    0x6d7c0000 - 0x6da13000 	C:\Program Files\Java\jdk1.7.0\jre\bin\client\jvm.dll
    0x76990000 - 0x76a59000 	C:\Windows\system32\USER32.dll
    0x762a0000 - 0x762ee000 	C:\Windows\system32\GDI32.dll
    0x76f90000 - 0x76f9a000 	C:\Windows\system32\LPK.dll
    0x76a60000 - 0x76afd000 	C:\Windows\system32\USP10.dll
    0x73400000 - 0x73432000 	C:\Windows\system32\WINMM.dll
    0x76170000 - 0x7618f000 	C:\Windows\system32\IMM32.DLL
    0x75200000 - 0x752cc000 	C:\Windows\system32\MSCTF.dll
    0x74e00000 - 0x74e4b000 	C:\Windows\system32\apphelp.dll
    0x6d210000 - 0x6d218000 	C:\Program Files\Java\jdk1.7.0\jre\bin\hpi.dll
    0x75f70000 - 0x75f75000 	C:\Windows\system32\PSAPI.DLL
    0x6d770000 - 0x6d77c000 	C:\Program Files\Java\jdk1.7.0\jre\bin\verify.dll
    0x6d2a0000 - 0x6d2bf000 	C:\Program Files\Java\jdk1.7.0\jre\bin\java.dll
    0x6d7b0000 - 0x6d7bf000 	C:\Program Files\Java\jdk1.7.0\jre\bin\zip.dll
    0x75320000 - 0x75f69000 	C:\Windows\system32\SHELL32.DLL
    0x76240000 - 0x76297000 	C:\Windows\system32\SHLWAPI.dll
    0x76830000 - 0x7698c000 	C:\Windows\system32\ole32.dll
    0x74e80000 - 0x74e8c000 	C:\Windows\system32\CRYPTBASE.dll
    0x73b60000 - 0x73ba0000 	C:\Windows\system32\uxtheme.dll
    0x003e0000 - 0x003f2000 	C:\Program Files\RocketDock\RocketDock.dll
    0x73e60000 - 0x73ffe000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\comctl32.dll
    0x76190000 - 0x7621f000 	C:\Windows\system32\OLEAUT32.dll
    0x76ef0000 - 0x76f73000 	C:\Windows\system32\CLBCatQ.DLL
    0x73c50000 - 0x73d45000 	C:\Windows\system32\propsys.dll
    0x73440000 - 0x73461000 	C:\Windows\system32\ntmarta.dll
    0x752d0000 - 0x75315000 	C:\Windows\system32\WLDAP32.dll
    0x764d0000 - 0x7666d000 	C:\Windows\system32\SETUPAPI.dll
    0x74fa0000 - 0x74fc7000 	C:\Windows\system32\CFGMGR32.dll
    0x74f80000 - 0x74f92000 	C:\Windows\system32\DEVOBJ.dll
    0x6d000000 - 0x6d12e000 	C:\Program Files\Java\jdk1.7.0\jre\bin\awt.dll
    0x6e580000 - 0x6e5d1000 	C:\Windows\system32\WINSPOOL.DRV
    0x73bb0000 - 0x73bc3000 	C:\Windows\system32\dwmapi.dll
    0x6d1e0000 - 0x6d207000 	C:\Program Files\Java\jdk1.7.0\jre\bin\fontmanager.dll
    0x6d720000 - 0x6d751000 	C:\Program Files\Java\jdk1.7.0\jre\bin\t2k.dll
    0x6d340000 - 0x6d364000 	C:\Program Files\Java\jdk1.7.0\jre\bin\jpeg.dll
    0x6d530000 - 0x6d546000 	C:\Program Files\Java\jdk1.7.0\jre\bin\net.dll
    0x76fa0000 - 0x76fd5000 	C:\Windows\system32\WS2_32.dll
    0x76820000 - 0x76826000 	C:\Windows\system32\NSI.dll
    0x74910000 - 0x7494c000 	C:\Windows\system32\mswsock.dll
    0x74900000 - 0x74906000 	C:\Windows\System32\wship6.dll
    0x6d550000 - 0x6d559000 	C:\Program Files\Java\jdk1.7.0\jre\bin\nio.dll
    0x060f0000 - 0x06288000 	C:\Windows\system32\NetworkExplorer.dll
    0x73110000 - 0x7311a000 	C:\Windows\system32\slc.dll
    0x6f9d0000 - 0x6f9e2000 	C:\Windows\system32\MPR.dll
    0x735e0000 - 0x735e8000 	C:\Windows\System32\drprov.dll
    0x74e50000 - 0x74e79000 	C:\Windows\System32\WINSTA.dll
    0x72d10000 - 0x72d24000 	C:\Windows\System32\ntlanman.dll
    0x734e0000 - 0x734f6000 	C:\Windows\System32\davclnt.dll
    0x73600000 - 0x73608000 	C:\Windows\System32\DAVHLPR.dll
    0x73680000 - 0x7368f000 	C:\Windows\system32\wkscli.dll
    0x6e6a0000 - 0x6e6ab000 	C:\Windows\system32\cscapi.dll
    0x73690000 - 0x73699000 	C:\Windows\system32\netutils.dll
    0x6de20000 - 0x6de29000 	C:\Windows\system32\LINKINFO.dll
    0x6de40000 - 0x6de6e000 	C:\Windows\System32\shdocvw.dll
    0x74f00000 - 0x74f0b000 	C:\Windows\system32\profapi.dll
    0x06390000 - 0x0642f000 	C:\Windows\system32\SearchFolder.dll
    0x06440000 - 0x0649c000 	C:\Windows\System32\StructuredQuery.dll
    0x74dc0000 - 0x74dc8000 	C:\Windows\System32\Secur32.dll
    0x74de0000 - 0x74dfa000 	C:\Windows\System32\SSPICLI.DLL
     
    VM Arguments:
    jvm_args: -Dfile.encoding=UTF-8 -Xmx512m 
    java_command: code.main_pro
    Launcher Type: SUN_STANDARD
     
    Environment Variables:
    PATH=C:\PROGRAM FILES\PC CONNECTIVITY SOLUTION\;C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\
    USERNAME=Su
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
     
     
     
    ---------------  S Y S T E M  ---------------
     
    OS: Windows NT 6.1 Build 7600 
     
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
     
    Memory: 4k page, physical 2086136k(1217640k free), swap 4172272k(2955084k free)
     
    vm_info: Java HotSpot(TM) Client VM (1.7.0-ea-b19) for windows-x86, built on Aug 30 2007 02:52:02 by "java_re" with unknown MS VC++:1310
     
    time: Wed Oct 17 19:08:20 2012
    elapsed time: 24 seconds

Similar Threads

  1. How to Add ActionListener to a JButton in Swing?
    By JavaPF in forum Java Swing Tutorials
    Replies: 17
    Last Post: April 24th, 2013, 05:14 PM
  2. Replies: 1
    Last Post: January 31st, 2013, 04:55 AM
  3. IE9 crashes on closing window containing Java Applet
    By parthei in forum Java Applets
    Replies: 4
    Last Post: August 30th, 2012, 01:24 AM
  4. How to Add ActionListener to a JButton in Swing?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 15
    Last Post: February 10th, 2011, 02:21 AM
  5. How to make an error message when my program crashes?
    By noFear in forum Java Theory & Questions
    Replies: 10
    Last Post: August 11th, 2010, 08:50 AM

Tags for this Thread