Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4286812

Print Operation crashes VM in NT with Service Pack 5

    XMLWordPrintable

Details

    • kestrel
    • x86
    • windows_nt
    • Verified

    Description

      When the printButton is pressed the VM crashes in NT with Service Pack 5.
      The printing works fine in winNT with service pack 4, win95 and win98.

      When tried to run one of the printing applications:

      With hotspot :
      ---------------

      using jtreg:

      ACTION: applet -- Failed. Unexpected exit from test [exit code: 3]
      REASON: User specified action: run applet/manual=done

      ImageFormatTest.html
       seconds14.832
      STDOUT:
      #
      # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
      #
      # Error ID: 4F533F57494E13120E43505002BE
      #
      STDERR:

      abnormal program termination

      using appletviewer:(hotspot)

      B:\PrintingLatest\ImageFormat>appletviewer -Xnosecurity *.html

      Warning: disabling security.

      #
      # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
      #
      # Error ID: 4F533F57494E13120E43505002BE
      #

      abnormal program termination

      With Classic VM:
      ------------------
      ACTION: applet -- Failed. Unexpected exit from test [exit code:

      -1073741819]
      REASON: User specified action: run applet/manual=done

      ImageFormatTest.html
       seconds40.128
      STDOUT:
      STDERR:

      TEST RESULT: Failed. Unexpected exit from test [exit code: -1073741819]
      --------------------------------------------------

      using appletviewer:
      We tried using classic VM instead of hotspot...and got the program
      terminated there too(Dr.watson application error is thrown).

      Attachments:
      ImageFormatTest.java
      ImageFormatTest.html
      duke.gif
      duke2.jpg

      The priority has been downgraded to P2 yellow as the bug is not reproducible in JavaSoft. It is failing in India with the jdk1.3.0M build in winNT(with both service pack 4 and 5). Investigation is going on.
      ###@###.### 1999-11-03

      The actual problem does not lie in the service pack as when tried with service pack 1 , 4 , 5 the VM still crashed as mentioned in the report above in winNT from the M build onwards. The same behaviour is exhibited in jdk1.3.0N build too in India.
      Here though I am not able to reproduce the same in winNt but then I get the same crash in win95. See the bug 4281380 fro more details.
      The native applications(like printing from wordpad...) is printing fine.

      ###@###.### 1999-11-08


      In order to trace the error we tried to use appletviewer_g (in jdk1.3.0-N build) and got the following:

      B:\PrintingLatest\TransparentImage>appletviewer_g -Xnosecurity *.html

      Warning: disabling security.

      C:\WINNT\Fonts\ARIAL.TTF - CMAP 3,1 found at offset 282.
      C:\WINNT\Fonts\WINGDING.TTF - CMAP 3,0 found at offset 282.
      C:\WINNT\Fonts\SYMBOL.TTF - CMAP 3,0 found at offset 282.

      *********************
      AWT Assertion Failure
      *********************
      ::GetPrinterA(hPrinter, 5, pPrinterEnum, cbBuf, &dummyWord)
      File '..\..\..\..\src\win32\native\sun\windows\awt_PrintControl.cpp',

      at line 160
      GetLastError() is 7c : The system call level is not correct.

      Do you want to break into the debugger?
      *********************

      This message was shown both on the command prompt and on a dialog. If we say yes/no to this dialog,
      the program throws Dr.watson application error and exits.

       When tried running one small printing application using java_g , we got the same VM crash and the program terminated.

      C:\GUIFunctionalTesting\PrintingAPITesting\test>java_g PrintTest

      *********************
      AWT Assertion Failure
      *********************
      ::GetPrinterA(hPrinter, 5, pPrinterEnum, cbBuf, &dummyWord)
      File '..\..\..\..\src\win32\native\sun\windows\awt_PrintControl.cpp',

      at line 160
      GetLastError() is 7c : The system call level is not correct.

      Do you want to break into the debugger?
      *********************
      #
      # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
      #
      # unexpected exception occurred
      #
      # Error ID: C:/hotspot\src\os\win32\vm\os_win32.cpp, 702
      #

      We are getting the same error while running tests with classic VM in debug mode.

        In 'L' build we got this VM crash only once while using common dialog, but later we were not able to reproduce it even after
      running the test many times. The printing was fine with all the three dialogs.

      B:\PrintingLatest\TransparentImage>appletviewer_g -Xnosecurity *.html

      Warning: disabling security.

      C:\WINNT\Fonts\ARIAL.TTF - CMAP 3,1 found at offset 282.
      C:\WINNT\Fonts\WINGDING.TTF - CMAP 3,0 found at offset 282.
      C:\WINNT\Fonts\SYMBOL.TTF - CMAP 3,0 found at offset 282.

      #
      # HotSpot Virtual Machine Error, assertion failure
      #
      # assert(result != 0 || (handle == 0 || is_weak_global_handle(handle)), "Invalid value read from jni
      handle")
      #
      # Error ID: C:/hotspot\src\share\vm\runtime\jniHandles.hpp, 140
      #


      ###@###.### 1999-11-09

      Attachments

        Issue Links

          Activity

            People

              dassunw Das Das (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: