Description
Drawing image in XOR Mode leads to crash.
This issue doesn't appear in older version, like r580985.
Attachment is reproducer.
Stack trace:
Windows reported exception: 0xc0000005
Registers:
EAX: 0x1c6c8501, EBX: 0x132e1428, ECX: 0x854d4b1b, EDX: 0x854d4b1b
ESI: 0x00000000, EDI: 0x00000060, ESP: 0x13e0ea2c, EBP: 0x13e0ec18
EIP: 0x13d2260c
Stack trace:
0: updateCache (d:\harmony\classlib\modules\awt\src\main\native\gl\shared\surfacedatastructure.cpp:118)
1: initBitmap (d:\harmony\classlib\modules\awt\src\main\native\gl\windows\gdiblitter.cpp:642)
2: Java_org_apache_harmony_awt_gl_windows_GDIBlitter_xorImage (d:\harmony\classlib\modules\awt\src\main\native\gl\windows\gdiblitter.cpp:426)
3: 0x1C7F80EC <Generated stub>
4: org/apache/harmony/awt/gl/windows/GDIBlitter.blit(IILorg/apache/harmony/awt/gl/Surface;IILorg/apache/harmony/awt/gl/Surface;IILjava/awt/geom/AffineTransform;Ljava/awt/Composite;Ljava/awt/Color;Lorg/apache/harmony/awt/gl/MultiRectArea;)V (GDIBlitter.java:146)
5: org/apache/harmony/awt/gl/CommonGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z (CommonGraphics2D.java:359)
6: org/apache/harmony/awt/gl/CommonGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z (CommonGraphics2D.java:366)
7: xor/demo.paint(Ljava/awt/Graphics;)V (demo.java:30)
8: javax/swing/JComponent.paintImmediately(Ljava/awt/Rectangle;)V (JComponent.java:1060)
9: javax/swing/RepaintManager.paintDirtyRegions()V (RepaintManager.java:186)
10: javax/swing/RepaintManager$1.run()V (RepaintManager.java:80)
11: java/awt/event/InvocationEvent.runAndNotify()V (InvocationEvent.java:98)
12: java/awt/event/InvocationEvent.dispatch()V (InvocationEvent.java:78)
13: java/awt/EventQueueCore.dispatchEventImpl(Ljava/awt/AWTEvent;)V (EventQueueCore.java:138)
14: java/awt/EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (EventQueue.java:144)
15: java/awt/EventDispatchThread.runModalLoop(Ljava/awt/ModalContext;)V (EventDispatchThread.java:68)
16: java/awt/EventDispatchThread.run()V (EventDispatchThread.java:48)
17: java/lang/Thread.runImpl()V (Thread.java:668)
18: ?? (??:-1)
19: JIT_execute_method_default (d:\harmony\drlvm\vm\vmcore\src\util\ia32\base\ini_ia32.cpp:248)
20: DrlEMImpl::executeMethod (d:\harmony\drlvm\vm\em\src\drlemimpl.cpp:520)
<end of stack trace>
Attachments
Attachments
Issue Links
- relates to
-
HARMONY-5278 [classlib][awt] Unexpected behavior of XOR Mode image drawing while draw Image with transparency
- Resolved