jai-imageio
  1. jai-imageio
  2. JAI_IMAGEIO-20

ImageWriter does not write any data to OutputStream (FileOS indeed)

    Details

    • Issuezilla Id:
      20

      Description

      I've found a special bug with ImageWriter using plugin x-png from "ImageIO-
      tools and plugins" v.1.1 : indeed everything works ok on OS X and XP I equiped
      with Radeon Graphics card but I've got a "Sempron from AMD" with a mainboard
      using original integrated chipset w/ graphics using shared memory from "S3
      Graphics", where the latter config does caught an expected dead-lock. I
      expected the dead-lock on synchronization-process where I checked the image
      data for its file size. It shows "file size is 0 bytes" after calling
      ImageWriter's to cache the data on disk. Thereby checking for caching issue, I
      modified ImageIO.setCacheDirectory(File) to a neighbour directory name and it
      shows no file when running the application. Though ImageReader is OK because I
      can display pictures that requires once to be loaded, ImageWriter fails to
      write image data with no exception thrown, like the image weren't loaded, which
      is wrong for those obvious reasons.
      Is that issue corrected in 1.2 release ? I'll look again to PNG plugins and
      ImageWriter source code and see for some more informations.

        Activity

        Hide
        b23prodtm added a comment -

        -Dcom.sun.media.imageio.disableCodecLib=true is the option to activate (default
        is "null" or "false")!!! (answer was in the forum)
        It resolves most dead-locks but native graphics acceleration might be broken.

        seems now ok...

        Show
        b23prodtm added a comment - -Dcom.sun.media.imageio.disableCodecLib=true is the option to activate (default is "null" or "false")!!! (answer was in the forum) It resolves most dead-locks but native graphics acceleration might be broken. seems now ok...
        Hide
        bpb added a comment -

        There is insufficient information here to enable any investigation to proceed.

        Also, the issue tracker at http://jai-imageio-core.dev.java.net is the one which
        should be used.

        Show
        bpb added a comment - There is insufficient information here to enable any investigation to proceed. Also, the issue tracker at http://jai-imageio-core.dev.java.net is the one which should be used.
        Hide
        b23prodtm added a comment -

        Well, what do you mean "insufficient" ? This issue is one I haven't found any
        better answer. As I said, codecLib natives had to be disabled, because windows
        does get no data written to the stream.
        I could make a slight modification to the previous test, since I'm working
        around this problem : that issue is true even with a dedicated graphics card
        (ATI radeon was tested). if anyone has a release working with codeclibs NATIVES
        enabled, please post here below !

        Show
        b23prodtm added a comment - Well, what do you mean "insufficient" ? This issue is one I haven't found any better answer. As I said, codecLib natives had to be disabled, because windows does get no data written to the stream. I could make a slight modification to the previous test, since I'm working around this problem : that issue is true even with a dedicated graphics card (ATI radeon was tested). if anyone has a release working with codeclibs NATIVES enabled, please post here below !
        Hide
        b23prodtm added a comment -

        Thread to be continued at https://jai-core.dev.java.net/issues/show_bug.cgi?
        id=118 !

        Show
        b23prodtm added a comment - Thread to be continued at https://jai-core.dev.java.net/issues/show_bug.cgi? id=118 !

          People

          • Assignee:
            b23prodtm
            Reporter:
            b23prodtm
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: