<AWT Dev>  RFR 8230782: Robot.createScreenCapture() fails if “awt.robot.gtk” is set to false
dmitry.markov at oracle.com
Fri Sep 20 10:54:13 UTC 2019
That’s right, this one and JDK-4392080 are devoted to the same problem. I have opened the bug against “xorg.app.xwd” - https://gitlab.freedesktop.org/xorg/app/xwd/issues/3 <https://gitlab.freedesktop.org/xorg/app/xwd/issues/3>
> On 19 Sep 2019, at 20:26, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
> Hi, Dmitry.
> It is interesting that previously this bug was fixed loooong time ago:
> https://bugs.openjdk.java.net/browse/JDK-4392080 <https://bugs.openjdk.java.net/browse/JDK-4392080>
> Looks like the evaluation of that bug is the same as the current one, right?
> Can we report this bug upstream, and provide the patch with a proper description of the bug?
> On 9/19/19 11:25 am, Dmitry Markov wrote:
>> Thank you for the review, Phil!
>> I am afraid we cannot create a regression test for this since the issue takes place only in VNC environment. I have added “noreg-hard” to the bug.
>>> On 19 Sep 2019, at 17:58, Phil Race <philip.race at oracle.com <mailto:philip.race at oracle.com> <mailto:philip.race at oracle.com <mailto:philip.race at oracle.com>>> wrote:
>>> +1 to the fix but any ideas for a regression test.
>>> There are no related keywords on the bug ..
>>> On 9/19/19 9:12 AM, Dmitry Markov wrote:
>>>> Could you review a fix for jdk14, please?
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8230782
>>>> webrev: http://cr.openjdk.java.net/~dmarkov/8230782/webrev.00/
>>>> Problem description:
>>>> After integration of JDK-8210776  we started to use malloc() function for allocation of XColor array in QueryColorMap() (see multiVis.c). However malloc() does not initialise allocated memory. So if the memory contains some “garbage” we may get incorrect data inside the array. As a result Robot.createsScreenCapture() retrieves incorrect colours.
>>>> It is necessary to invoke calloc() for allocation of the array as it used to be before XWD upgrade
>>>>  - https://bugs.openjdk.java.net/browse/JDK-8210776
> Best regards, Sergey.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev