| Summary: | [Cocoa][10.11] PaintEvent.GC.copyArea () crashes Eclipse Neon on OSX 10.11 and above | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | saikarthik Natesan <saikarthik.kn> |
| Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | arunkumar.thondapu, lshanmug, peter |
| Version: | 4.6 | ||
| Target Milestone: | 4.8 M2 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| See Also: |
https://git.eclipse.org/r/103273 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=f28f8cb0510c91905751bee0f128e0912d8324c8 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 516837 | ||
|
Description
saikarthik Natesan
On 10.12, I get a hang, not a crash. The problem here is that there is recursion causing the hang. e.gc.copyArea(image, 0, 0) causes the Canvas to send a paint event and calls the e.gc.copyArea() in the Listener code again & again. This can be verified if we remove the listener in the listener code by adding canvas.removeListener(this) before calling e.gc.copyArea(). I think GC.copyArea() is not expected to send a paint event. Will need to investigate this further. New Gerrit change created: https://git.eclipse.org/r/103273 Gerrit change https://git.eclipse.org/r/103273 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=f28f8cb0510c91905751bee0f128e0912d8324c8 Pushed the fix to master, will verify with the next I-build. Verified fix in I20170821-2000. Verified with I20170911-2000. |