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

30-bit desktop is not supported on X11

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      x86_64
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux Video 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      nVIDIA GPU

      /etc/X11/xorg.conf

      Section "Files"
          ModulePath "/usr/lib64/nvidia/xorg"
          ModulePath "/usr/lib64/xorg/modules"
      EndSection

      Section "Device"
          Identifier "Videocard0"
          Driver "nvidia"
      EndSection

      Section "Screen"
          Identifier "Screen0"
          Device "Videocard0"
          Monitor "Monitor0"
          DefaultDepth 30
          SubSection "Display"
              Depth 30
          EndSubSection
      EndSection


      A DESCRIPTION OF THE PROBLEM :
      Android Studio fails to start throwing InvalidPipeException in sun.java2d ("Unsupported bit depth: 30"


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      I've modified the source file X11SurfaceData.java as follows

          public static SurfaceType getSurfaceType(X11GraphicsConfig gc,
                                                   int transparency,
                                                   boolean pixmapSurface)
          {
              boolean transparent = (transparency == Transparency.BITMASK);
              SurfaceType sType;
              ColorModel cm = gc.getColorModel();
              switch (cm.getPixelSize()) {
              case 30:
                  sType = X11SurfaceData.IntRgbX11;
                  break;

      So no exception is thrown, however this is only first step. I'll investigate further what needs to be modified in order to fix this correctly.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: