Bug 513843 - Image.getImageDataAtCurrentZoom() generates ArrayIndexOutOfBounds when the Image is constructor with ImageDataProvider
Summary: Image.getImageDataAtCurrentZoom() generates ArrayIndexOutOfBounds when the Im...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.6   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-17 22:58 EDT by Diego Fernandez CLA
Modified: 2020-06-22 17:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Fernandez CLA 2017-03-17 22:58:50 EDT
Steps to reproduce:
- Create an image that uses a ImageDataProvider (ie by using JFace ImageDescriptor or by calling the new Image(display, imageDataProvider)

- Call image.getImageDataAtCurrentZoom()

Result:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10000
	at org.eclipse.swt.graphics.Image.createRepresentaion(Unknown Source)
	at org.eclipse.swt.graphics.Image.init(Unknown Source)
	at org.eclipse.swt.graphics.Image.<init>(Unknown Source)
Comment 1 Lakshmi P Shanmugam CLA 2017-03-20 08:23:49 EDT
Do you have a multi-monitor setup? Can you describe your setup? Which Eclipse build are you using? A similar problem has been fixed (Bug 513637) recently.
Comment 2 Eclipse Genie CLA 2020-06-22 17:50:49 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.