Memory Error in Bridge while running a script with multiple moveTo()'s.

I have written a script to create folders based on the names of assets in the parent folder, then move the assets with matching names into the appropriate folders. The script runs perfectly up to somewhere between 1,000 to 1,500 images moved and then I receive a memory error from Bridge.
I have been running this on folders with an excess of 25,000 assets in them. My work around was to put a simple counter in the script to let me know when 1,000 assets had been moved, throw up an alert, and then I would view the Task Manager to let me know when the CPU usage had dropped below 50% and would ok the alert, then it would run the next 1000 assets.
My question, is it possible in scripting to monitor your memory usage to allow a pause in the script so Bridge processing can catch up?

Don't do that!
$.sleep() doesn't "sleep". ExtendScript is not multi-threaded. $.sleep just waits on the $.sleep() command to execute. It actually blocks all processing rather than free up the processor to do things like garbage collection.
First try the $.gc() command. To my knowledge there is no way to track ES' memory usage.
If that doesn't work, try scheduling a task...
Let's say that you find that after 1000 moves, it takes 60 seconds for the processor to cool off:
doAThousandMoves = function() {
// execute 1000 moves
app.scheduleTask( "doAThousandMoves()", 60000, true );
The way I would actually code this is to scan the folder tree and create a global array that contained all of the files to be moved.
I would then move them 1 at a time, shifting them off the array. Something like this:
var mover = {}; // global object declaration
mover.init = function() {
mover.files = new Array();
// fill mover files with the file objects to be moved.
app.scheduleTask( "mover.move()", 10 );
mover.move = function() {
var i = 0;
while ( i++ < 1000 ) {
file = mover.files.shift();
// move file
if ( mover.files.length > 0 ) {
app.scheduleTask( "mover.move()", 60000 );
In fact, you should probably break this into chunks of about 10 or so at a time (you can reduce the gap between calls). Doing so will make the operation appear to be running as a background process.
Regards
Bob

Similar Messages

  • An error occured while running a script

    On launching Bridge, I an consistently receiving the following error.
    "There were problems loading a startup script the last time bridge was launched. Would you like to load them now?"
    Clicking [Yes] produces the following error:
    An error occurred while running a script. The script may not be compatible with this version of Bridge. Check for available updates by selecting the Updated command in the Help Menu
    Error in /Library/Application Support/Adobe/StartupScripts/AdobeStockPhotos.jsx
    Line 54: result = eval(script);
    Timeout while waiting for the engine
    I am running Bridge Mac CS2 - 1.0.4.6
    Adobe Stock Photos Update 1.0.8
    Power Mac G4 733 / OS X 10.3.9
    Updating either Bridge or Adobe Stock Photos does not correct the behavior.
    And curiously Stock Photos appears in the Favorites pane and appears to function.
    Any help ?
    Kurt Griffith.

    Good day,
    The Bridge v1.04.6 PS CS2 I am presently using has always come up with the Internet connection Error Message and none of my large imaging machines are connected nor will they ever be connected to the Internet.
    Is there a setting to do away with the Bridge trying to connect on my
    behalf ? I've spent a lot of time trying to 'fix' a problem that shouldn't have arisen.
    It wastes a lot of time trying to do something, which I do not want it doing.
    Thanks for any assistance you can provide in the matter. And please
    keep cranking out your wondrous though not totally controlable software, or so it seems.
    Best - Stephen Graham

  • Error while running OMBPlus Script

    Hi,
    I am getting below error while running OMBPlus script.
    +../../../jdk/bin/java[87]: getconf: not found+
    OMB*Plus: Release 9.2.0.4.0
    Copyright (c) 2003 Oracle Corporation. All rights reserved.
    Exception in thread "main"
    I am not even able to run ./OMBPlus.sh.
    Can anyone help me on this?
    Thanks in advance,
    Regards,
    Sachin Bansal

    Hi Nawneet,
    Thanks for the reply..
    I tried the same thing on our server. But there also I am getting the same error.
    Am I missing anything?
    What I am doing is:
    1. Created one .tcl file (deploy_map.tcl).
    2. Going to path where OMBPlus.sh resides i.e.$OWB_HOME/bin/unix
    3.Then I called ./OMBPlus.sh and passed the path of deploy_map.tcl as an argument.
    For e.g. if path of deploy_map.tcl is /abc/xyz/deploy_map.tcl
    Then I would call OMBPlus like below:
    ./OMBPlus.sh /abc/xyz/deploy_map.tcl
    Even if I would not pass any argument then still it should be connected to OMBPlus. But that's not happening.
    Regards,
    Sachin Bansal

  • Error ORA-00911- while runing DB SCript in pl/sql

    hi friends, i am getting the error , while running the script.
    set feedback off
    set define off
    alter table TSS_FID_TRADING_DATA disable all triggers;
    alter table TSS_FOREIGN_BOND_PRICE disable all triggers;
    set feedback on
    set define on
    thanks in advance

    Looks like to no mistakes in your commands.
    But still check the error message details
    00911, 00000, "invalid character"
    // *Cause: identifiers may not start with any ASCII character other than
    //         letters and numbers.  $#_ are also allowed after the first
    //         character.  Identifiers enclosed by doublequotes may contain
    //         any character other than a doublequote.  Alternative quotes
    //         (q'#...#') cannot use spaces, tabs, or carriage returns as
    //         delimiters.  For all other contexts, consult the SQL Language
    //         Reference Manual.
    // *Action:Regards,
    Sabdar Syed.

  • Am facing this error sqlcode :-6502 while running sql code in plsql block

    Am facing this error sqlcode :-6502 while running sql code in plsql block.
    am using query :
    SELECT SUBSTR('123456DE789KL|987654321|B',1,INSTR('123456DE789KL|987654321|B','|')-1) FROM DUAL;
    CAN any body tell me why.

    BD_Fayez wrote:
    I've tried the following, but don't get any error.As I mentioned, most likely variable is too short:
    SQL> declare
      2  strSub varchar2(2);
      3  begin
      4  SELECT SUBSTR('123456DE789KL|987654321|B',1,INSTR('123456DE789KL|987654321|B','|')-1) into strSub FROM DUAL;
      5  dbms_output.put_line(strSub);
      6  end;
      7  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    SQL> SY.

  • Why MicroSoft 2000 SR needed while running the script using test manager???

    hi all,
    whenever I trying to run a script using test manager,one POP-UP comes which starts installing MICROSOFT 2000 SR.
    and in few seconds it complaining for some missing component,
    can any body tell me why it is happening.
    what is the need of Microsoft 2000 SR while running the script in test manager.
    tnx
    USOni

    USoni
    I have seen that problem happening before, even that i was never able to figure out why, something that you can try is changing the service log in credentials for both:
    Oracle Application Testing Suite Agent Service
    Oracle Application Testing Suite Application Service
    and use a proper user with admin rights.
    let me know if that helped
    Regards
    Alex

  • How to find the missing fonts while running the script?

    hi,
    I need to create a script to find the missing font. not only for that. Actually i created a script to read the file properties. but i have a problem while running the script.
    I have put "User Interation Level" to never interact. Even i need to check wheather each file have "missing fonts". mean time i never stop the script.
    Is It Possible???
    Regards,
    SubhaOviya

    Here's a shot of the Find Font Dialog:
    Papyrus (highlighted in the list) is missing, and there's a yellow warning triangle to show that. Fonts that ar not missing have an icon to show the type of font. You'll also see it shown as missing in the "Info" box at the bottom of the dialog.
    If you use the Replace With dropdown you will only see fonts listed that are installed on the system. In order to actually use the missing font, rather than substitute a different font in its place, you must obtain and install the missing font on the system.
    Are you seeing something different when you open Find Font?

  • While  running open script software i am getting issue of script exception occured . an unexpected exception occured in the script.script section unspecified.

    while  running open script software i am getting issue of script exception occured . an unexpected exception occured in the script.script section unspecified.
    i am using software version 12.5.0.1

    while  running open script software i am getting issue of script exception occured . an unexpected exception occured in the script.script section unspecified.
    i am using software version 12.5.0.1

  • "A critical error has occurred while running the virtual machine and the machine execution has been stopped"

    I have the following error:
    "A critical error has occurred while running the virtual machine and the machine execution has been stopped"
    When I am installing grid clusterware and when is copying files from one node to other I received that virtualbox error and is stop working.
    Can somebody give me any hint how to solve it ?
    Thank you
    Eugen

    I think that is not a Clusterware issue, The clusterware installation may generating a high load on your machine and Virtual Box is not supporting.
    Check vbox.log file to identify root cause.

  • SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has be

    Hello, I have a sql 2005 server, and I am a developer, with the database on my own machine.  It alwayws works for me but after some minutes the other developer cant work in the application
    He got this error
    Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 192.168.1.140]
    and When I see the log event after that error, it comes with another error.
    SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 192.168.1.140]
    He has IIS5 and me too.
    I created a user on the domain called ASPSYS with password, then in the IIS on anonymous authentication I put that user with that password, and it works, on both machines.
    and in the connection string I have.
    <add key="sqlconn" value="Data Source=ESTACION15;Initial Catalog=GescomDefinitiva;Integrated Security=SSPI; Trusted_Connection=true"/>
    I go to the profiler, and I see that when he browses a page, the database is accesed with user ASPSYS, but when I browse a page, the database is accesed with user SE\levalencia.
    Thats strange.
    The only way that the other developer can work again on the project is to restart the whole machine. He has windows xp profession, I have windows 2000.
    If you want me to send logs please tellme

    Well here's my problem, maybe you can help. Intermittenly I get a login failed when connecting to a db engine through Server Management Studio using Windows authentication. When this happens the following entries are generated on the server's application event log:
    Event Type:        Error
    Event Source:    MSSQLSERVER
    Event Category:                (4)
    Event ID:              17806
    Date:                     1/14/2009
    Time:                     10:41:31 AM
    User:                     N/A
    Computer:          <server name>
    Description:
    SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: <ip address>]
    Event Type:        Failure Audit
    Event Source:    MSSQLSERVER
    Event Category:                (4)
    Event ID:              18452
    Date:                     1/14/2009
    Time:                     10:41:31 AM
    User:                     N/A
    Computer:          <server name>
    Description:
    Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: <ip address>]
    I've already ensured that the server is set to mixed authentication mode. Oddly enough, the workaround that I've found is that if I remote desktop into the server, log in and then log back out, Management Studio is suddenly able to connect again. No idea why it works. 
    As I said before, it is intermitten. Some days it errors on login, other days it doesn't and there are no configuration changes between them. Also, both client and server are in the same domain and same site so there is no VPN or anything in between. I'm really quite stumped. Any help would be great, or if you can point me in the right direction of where to look. Thank you in advance!

  • Error while running InstallOracleProfile script

    good evening every one,
    i have installed odac for VS 2010,while running the InstallOracleProfile script the following error occurs can any one help me in solving this problem.im using windows os. the error as follows
    Connected.
    ------ Running 'C:\Users\johny.OOMSYSTECH.000\Desktop\prakash\odac_path\product\11.2.0\client_1\ASP.NET\SQL\InstallOracleProfile.sql' @PRAKASH.orcl ------
    USER
    PRAKASH
    old 33: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_GetProperties FOR &CurrentUser..ora_aspnet_Prof_GetProperties';
    new 33: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_GetProperties FOR PRAKASH.ora_aspnet_Prof_GetProperties';
    old 34: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_SetProperties FOR &CurrentUser..ora_aspnet_Prof_SetProperties';
    new 34: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_SetProperties FOR PRAKASH.ora_aspnet_Prof_SetProperties';
    old 35: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_GetNOfInactPf FOR &CurrentUser..ora_aspnet_Prof_GetNOfInactPf';
    new 35: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_GetNOfInactPf FOR PRAKASH.ora_aspnet_Prof_GetNOfInactPf';
    old 36: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_GetProfiles FOR &CurrentUser..ora_aspnet_Prof_GetProfiles';
    new 36: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_GetProfiles FOR PRAKASH.ora_aspnet_Prof_GetProfiles';
    old 37: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_DeleteProfiles FOR &CurrentUser..ora_aspnet_Prof_DeleteProfiles';
    new 37: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_DeleteProfiles FOR PRAKASH.ora_aspnet_Prof_DeleteProfiles';
    old 38: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_DeleteInactPf FOR &CurrentUser..ora_aspnet_Prof_DeleteInactPf';
    new 38: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_DeleteInactPf FOR PRAKASH.ora_aspnet_Prof_DeleteInactPf';
    old 39: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_pkg FOR &CurrentUser..ora_aspnet_Prof_pkg';
    new 39: execute immediate 'CREATE PUBLIC SYNONYM ora_aspnet_Prof_pkg FOR PRAKASH.ora_aspnet_Prof_pkg';
    PL/SQL procedure successfully completed.
    Package created.
    Package body created.
    Function created.
    Function created.
    Function created.
    Function created.
    Function created.
    Function created.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    GRANT ora_aspnet_Prof_BasicAccess TO ora_aspnet_Prof_FullAccess
    ERROR at line 1:
    ORA-01919: role 'ORA_ASPNET_PROF_BASICACCESS' does not exist
    GRANT ora_aspnet_Prof_ReportAccess TO ora_aspnet_Prof_FullAccess
    ERROR at line 1:
    ORA-01919: role 'ORA_ASPNET_PROF_REPORTACCESS' does not exist
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    ---------------------- Done ----------------------
    thank you
    prakash

    Earlier in the script, the following CREATE statements were called:
    -- Create roles. Create role privilege is required.
    execute immediate 'CREATE ROLE ora_aspnet_Prof_BasicAccess';
    execute immediate 'CREATE ROLE ora_aspnet_Prof_ReportAccess';
    execute immediate 'CREATE ROLE ora_aspnet_Prof_FullAccess';
    If they didn't succeed, that would explain the GRANT errors you see. If you didn't grant the CREATE ROLE privilege to the user, that would explain why CREATE ROLE calls failed.

  • Getting error while running shell scripts

    Hi DBAS,
    I Have one requirement,i want connect n database dynamically by using dynamic password and execute some oracle commands,i written some script ,but while running i am getting error,please any one correct my error ,i am not able to getting error
    passwrd.pw like this
    abc@abc
    aaa@aaa
    # vi healthcheck.ksh
    #!/bin/ksh
    export PW=`cat /applis/forum/pune/dbhealthchecks/.pw/passwrd.pw`
    for (( i = 0 ; i < ${#PW[@]} ; i++ ))
    do
    sqlplus -s larry/$PW<<EOI
    spool sysdate.dat
    select sysdate from dual;
    done
    exit;
    EOI
    error :
    line 2: syntax error at line 11: `for' unmatched
    thanks!
    larry
    Edited by: tmadugula on Mar 18, 2011 6:26 AM

    Could you explain the reason for the for loop and connection attempts while incrementing var $i?
    It is also no a good idea to provide a password at the command line since it can be seen with 'ps' command.
    Better:
    sqlplus -s <<-EOI
    connect larry/$PW
    etc.

  • Data access error while running  the script in fdm workbench script editor

    Hello Experts,
    I have been getting the error when i run the script in script editor of fdqm workbench client.this is the error
                              -2147467259 Data access error and it is navigating the error at line 30 about this script "Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)"
    Please revert me asap where i should load the data from peoplesoft to one of my planning database through fdm.
    Thanks in advance...

    Hi,
    Thanks for your suggestion's here i am going to run the datapump script so while i am running in workbench it is throwing data access error.So as you guy's suggested i created one import format and added this script to that import format which is added to one of my location even it is throwing the same error.I am getting the error at this sentence   "strWorkTableName" I want to know what is this where it reflect's?So my question is Is there any difference while running data pump or integration script.Please let me know a detailed navigation steps to run this script's with out data access error to run these kind of scripts.
    Note:Again my target is to load the data to planning database through fdqm which i am doing through sql statement's.
    Suggest your valuable suggestion's
    Thanks in advance...
    I am getting the error at this sentence   "strWorkTableName" I want to know what is this where it reflect's?

  • Getting an error message while running FX script logic

    We are getting the following error message, while running the FX script logic - RUN_LOGIC:MDX statement error:"Value (Entity value) for characteristic /CPMB/U8D5FIT".  Any help is truly appreciated.  We are using the standard FX logic scrip *RUN_PROGRAM CURR_CONVERSION

    Hi,
    Hope all the required currency configuration settings are followed in Entity, Input currency, Category, Account correctly. Also reporting currency indicates the right reporting currency with the 'Reporting' propert set to 'Y' to the currency that you want to report in.
    For the period that you are running the currency trans, could you also maintain rates for the reporting currency as 1.
    Check your rate data. And please post your currency conversion script here.
    Thanks,
    Sreeni

  • IDCS5-win. Error while running a script from indesign(not via estk)

    Hi all,
    After running the script from indesign, I get following error
    ASSERT '(engine->getDebugFlags() & ScScript::kExtendedErrors) == ScScript::kExtendedErrors' in ..\..\..\source\components\script\javascript\JavaScriptRunner.cpp at line 412 failed.
    ..\..\..\source\components\script\javascript\JavaScriptRunner.cpp (412)
    any idea about this?
    The script runs fine when run from ES tool kit.
    Thanks

    Hi,
    My colleague found the problem. We were using extendables library and we still haven't figured out what was actually happening, but removing it solved the problem.

Maybe you are looking for

  • HT2534 why do i need to enter credit card for free app purchases when i already set up itunes id

    please HELP me .I want to install the free apps on my ipod touch but after i enter my id login to apple,it wants to ask for credit card .I never had this problem before with my other ipod touch to install apps that r free.Thanx

  • Write cluster data to datamining applicatio​n

    I currently use the DSC module and Citadel to save clusters of data to binary string tags. I use labview 7.0. Can I write this same cluster data to the new datamining application as a binary string or would the cluster info go into columns of data??

  • Problem conecting to Oracle_BI_DW_Server in DAC

    Hi all, we've just configured DAC and Informatica to use Oracle BI APPS 7.9.5.1. I'm testing all the connections in DAC (INFORMATICA_REP_SERVER, Datawarehouse, ORA_11_5_10 and Oracle_BI_DW_Server),all tests are passed but Oracle_BI_DW_Server, it get

  • Hrforms activation error

    Hello all, I'm trying to develop payslip, not using PE51 but using HR Forms (Tcode: HRFORMS). But, when I try to activate it, I'm not able to activate the layout & I get a message 'No vendor specified'. Though, it is not an error or warning, my layou

  • Audigy 2 5.1 with head

    I currently have an audigy 2 configured for 5. surround. But i now want to use a headset (headphones and mic) for skype. I have a logitec headset which has 2 audio jacks - one for the mic and the other for the headphones. How can i get this working w