dario_segura's profile

1 Message


70 Points

Wed, Jul 15, 2015 4:24 AM


PHOTOSHOP CC 2015 - 'slct' event causes disk error dialog.

Adding a listener to the 'slct' event in JavaScript causes the application to show a dialog with the message:
"Could not complete your request because of a disk error" (image attached)
when the "Auto-Select" option is enabled in the move tool, a layer is selected and a click outside the canvas is performed

Photoshop Version: 20150529.r.88 x64
Operating system: OSX 10.10.4

MacBook Pro (Retina, Mid 2012)
Processor 2.7 GHz Intel Core i7
Memory 16 GB 1600 MHz DDR3
Graphics NVIDIA GeForce GT 650M 1024 MB

Repro steps:

1. Create a simple HTML panel and load the CSInterface.js v 6.0.0 in it.
2. Add the following code after the CSInterface has been loaded:

function charIDToTypeID(keyword)
var value = 0;
value = keyword.charCodeAt(0) * 256 * 256 * 256;
value += keyword.charCodeAt(1) * 256 * 256;
value += keyword.charCodeAt(2) * 256;
value += keyword.charCodeAt(3);
return value;

var select = charIDToTypeID("slct").toString();
var event = new CSEvent("com.adobe.PhotoshopRegisterEvent", "APPLICATION");
event.extensionId = "[EXTENSION_ID_HERE]";
event.data = select;

var csInterface = new CSInterface();

3. Open or create a file with multiple layers.
4. Make sure the move tools is selected and that the "Auto-Select" option is enabled.
5. Select a layer.
6. Click outside the document canvas (to select nothing)
7. Error dialog will appear and the application will become unstable.
8. Cannot quit Photoshop and it has to be force quitted.

No Responses!