Skip to main content
Inspiring
October 28, 2016
Question

Screen flickering in dual monitor

  • October 28, 2016
  • 2 replies
  • 2993 views

I develop Adobe Illustrator plugin for loading images from database. When using dual monitor the screen starts to flicker. (Flickering occurs inconsistently (i.e) Sometimes while opening the ai file after downloading the image from database for first time, sometimes when editing the file after being loaded and sometimes after few times of repeating the above steps.

I have tried following options after searching in adobe forums:

  • Uncheck the option "Show start Workspace when no documents are open"

1. Click on Illustrator and Run as Administrator

2. Go to "Edit > Preferences > General"

3. Uncheck the option "Show start Workspace when no documents are open"

  • Uncheck the option "GPU Performance"
  • Disable Windows Narrator 
  1. Select the Control Panel from the Start menu.
  2. Open Ease of Access.
  3. In the Ease of Access Center, select Explore all settings.
  4. Uncheck the option to "Turn on Narrator" in the "Use the computer without display" section.
  5. Restart the Adobe application. Use the keyboard shortcut Ctrl+Q to close the program if the behavior prevents accessing the menu command.

              

Kindly somebody guide me how to resolve this.

This topic has been closed for replies.

2 replies

Inspiring
November 7, 2016

Hi LeoTaro,

Yes this happens only when plug-in is loaded. Guess this is not caused by plug-in because it works correctly in single monitor system. Flickering occurs only with dual monitor.

Thanks for your reply.

Inspiring
November 7, 2016

I'm not sure I follow your logic. You say the problem only occurs when your plugin is loaded on a dual monitor system. That seems to suggest it is caused by something your plugin is doing.

Does your plugin have its own panel? If so, do you use html5 or native code? Does your plugin respond to any notifications?

Inspiring
November 8, 2016

I use both HTML panels and menus in my plug-in. It basically loads and saves data to and from DB using webservice.

  • Load

Image is downloaded from webservice to %temp% folder and opened using action:

        AIActionParamValueRef parameters = 0;

        AIErr error = sAIActionManager->AINewActionParamValue(&parameters);

        if (!error)

        {           

            error = sAIActionManager->AIActionSetStringUS(parameters, kAIOpenDocumentNameKey,AIPathStr);

            if (!error)

            {

                result = sAIActionManager->PlayActionEvent(kAIOpenDocumentAction, kDialogOff, parameters);

            }

        }

  • Save

Image is saved to db in two formats - ai & JPG. The export JPEG is again done using action:

            AIImageOptJPEGParams jpegExportParameters;

            memset( &jpegExportParameters, 0, sizeof(jpegExportParameters) );   

            jpegExportParameters.quality = 100;

            jpegExportParameters.kind = AIImageOptJPEGStandard;

            jpegExportParameters.scans = 3;

            jpegExportParameters.blurAmount = 0;

            jpegExportParameters.resolution = 65535*300;

sAIActionManager->AIActionSetRawDataBytes(parameters, 'parm', (ASUInt32) sizeof(AIImageOptJPEGParams), (const char*) &jpegExportParameters);

result = sAIActionManager->PlayActionEvent(kAIExportDocumentAction, kDialogOff, parameters);

YES, The problem only occurs when your plugin is loaded on a dual monitor system.

Plugin does not respond to any AI notifications. There are multiple extensions used which communicate using events as given below:

            new CSInterface().requestOpenExtension(extensionName);

            var tout = setTimeout(function () {

                var event = new CSEvent(dialogReadyEvent, 'APPLICATION', 'ILST', extensionName);

                event.data = '<payload>';

                event.data += '<action>' + "Edit" + '</action>';

                event.data += '</payload>';

                new CSInterface().dispatchEvent(event);

                clearTimeout(tout);

            }, 1000);

I really feel thankful for your help and please let me know if you need further details

Inspiring
October 28, 2016

Does this only happen when your plugin is loaded? Are you sure it is not something caused by your plugin?