Runtime range error #1125 index out of range

Hi there,
My project is to decode ddjvu image files and display them in flash using Alchemy.
In AS3 code, I declare two bytearrays, one for original image data, the other for the decoded one.
I pass two ByteArrays (not ns::gstate)  into Alchemy just by extracting from "args", and malloc a datasize and  using "AS3_ByteArray_readBytes". Then the c++ code will decode the  image. Then I malloc another one to store output data, and write it to  bytearray using "AS3_ByteArray_writeBytes". After these, I do free the  memory I allocated.
But when I run it in Flex, At the first time, it works perfect, When I  change a input image, it returns range error #1125. Sometimes it even  happens just after reading the input bytearray and then exit.
the error is catched in my c++ code part which has nothing to do with AS3. But I compiled in alc-off mode, it always works fine. So I'm pretty sure it has nothing to do with my c++ code.
In the error imformation, the index is very big integer, about 10 digits, while the range is at thousand level.
I dont know why. I guess it may be memory problem. Because the size of output data can be as large as 100MB.
thx in advance.

I dont think so. Because when the input image is some kind of djvu(1st page of a book), it works fine. but if not, it fails...I just dont know why.

Similar Messages

  • ERROR: String index out of range -1

    When I submit a form, CF throws an error:
    String index out of range: -1
    (Line 2)
    2 : <cfinsert datasource="Logbook" dbtype="odbc"
    tablename="Flights" formfields="*">
    3 : <cflocation url="index.cfm">
    Im not sure what the problem is. I checked the database to
    see if it was the content type, and everything checked out to be
    ok, I also checked the NAME attributes on the HTML on the origonal
    form. They all match. Please help.
    --Stephen

    I never use cfinsert, but formfields = "*" doesn't look
    right.

  • Web Analysis report error : Array Index out of range :1

    while running from workspace , below error is being thrown after making few changes to the layout (e.g. moving Measures from Page to Row ) though Design for HTML setting applied.
    Array Index out of range :1
    These reports are running well in WA studio.
    Can any one advise on this please.

    Array index out of range: 1The only time you will get that error is when you are accessing an elements index that is not present in the actual indexes in that array

  • Error "String index out of range:6" while opening Webi fromBI java Lauchpad

    Dear All,
    I have installed BO 4.0 recently. When I open BI Java Lauch Pad URL I can see Web Intelligence under the applications list. When I click it, a pop up getting opened with message " String index out of range: 6" When I click "Details" icon in the pop up, it is showing this description.
    Detected from bootclasspath: C:
    PROGRA~1
    Java
    jre7
    lib
    deploy.jar
    Java Plug-in 10.0.0.147
    Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM
    User home directory = C:\Users\RT89363
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    I have tried this in a machine where i logged as a normal user. But when i open the same link from a machine where i logged as administrator, it is working fine.
    Could any one help me in sorting out the issue ??
    Thanks in advance.
    Regards
    Ravi.

    Hi Ravi,
    the error is due to the componet JAVA(TM) 7 which is not supported.
    Better to run JAVA 6, I'm running the update 33, you can download it from http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html
    Remeber to remove JAVA &
    Go to control panel --> add remove programs and remove JAVA (TM) 7.
    It will solve the problem.
    Ciao,
    Massimo

  • Importing 59.94 fps  - edl from Premiere CC  - error - Frame index out of range

    I have a Adobe Premiere project with a 5k 59.94 sequence.
    The sequence has two R3d 5K clips both interpreted at 59.94.
    I've exported an edl for the sequence and want to import it into SpeedGrade.
    I have adjusted my preferences in SpeedGrade for 59.94.
    - playback at 59.94
    - base frame rate is set at 59.94, with "both edits and footage have the current base FPS as set above or in the EDL itself"
    I import the EDL and the reels are not loaded. I select "Load from desktop", and the reels still do not load.
    I deselect "don't replace loaded reels" and manually drag the two clips and replace the two reels.
    I can now see the clips in the timeline, but have an error message in my display - "Frame index out of range".
    I'm guessing this could also a be a Premiere CC export problem, but not sure. The sequence is just cuts, no audio.
    Here's the edl info:
    TITLE: sg_test_edit
    FCM: NON-DROP FRAME
    001 A002C035 V C 17:40:23:54 17:40:38:41 00:00:00:00 00:00:14:47
    * FROM CLIP NAME: A002_C035_05094K_001.R3D
    002 A002C013 V C 16:46:38:36 16:46:52:24 00:00:14:47 00:00:28:35
    * FROM CLIP NAME: A002_C013_0509UM_001.R3D
    Trying to nail down a workflow for 4k 60p, and not feeling very encouraged.
    Any suggestions?
    Thanks

    I've had a similar frame-out-of-range problem for the last week or so in Sg ... import an edl, and even if I've already set the "base" in Prefs, and for that project BEFORE re-loading the reels, I ALWAYS get the f-o-o-r screen instead of my footage. After going back and forth setting those things to the same thing again and maybe again, I'll finally get where it all loads & runs. Save the project.
    Come back by opening it again later ... and GET THAT DAMN FRAME-OUT-OF-RANGE thing again and have to ... again ... spend 10-15 minutes setting and re-setting all those same DAMN things until it finally decides to accept my footage.
    I've only ... in the last two weeks ... TWICE opened a project I'd previously had working and graded on ... that simply loaded. Every other time I've had to waste time re-setting/re-setting/re-setting/close-open-re-set/re-setting & etc. until it finally works.
    No help from anyone about why this is now happening, how to stop it, or fix it quickly. Damn dumb behavior.
    Neil

  • Error opening web analysis report in workspace: Array index out of range:2

    I am able to view this report in web analysis studio with no errors..Its only when I go to workspace and open report do I get following error: Array index out of range:2.
    Any suggestions?

    Have you tried checking the "Design for HTML" from the Edit toolbar to see if you get any error when saving?
    Do you have any advanced items on the report, as there are 4 types of differences between Studio and HTML:
    - font differences, Workspace (DHTML) uses the WA Server fonts whereas WA Studio client machine fonts.
    - Service Buttons are very restricted using Workspace
    - Display: Tab selection, Splitter panels, Slider selection do not render in Workspace
    - Cannot restrict WA Tools menu in Workspace at all, where you can in the Studio.
    For exact details check out the Hyperion Web Analysis Studio User’s Guide from the Doc Library:
    http://download.oracle.com/docs/cd/E10530_01/doc/nav/portal_4.htm

  • Substring index out of range

    i am using substring
    and putting string
    into 2 jlabel's
    at runtime
    i dont know the size of index at rumtine
    though i am using database to rerieve information
    into label
    it gives me error
    String index out of  range:40_
    any solutions to this plz..........

    i am using 3jlabels and putting them in jpanel
    which layout i set to gridlayout
    p1.setLayout(new GridLayout(3,0))and here is the problem code in which iam getting runtime error
    try
    String txt1=res.getString(2);
    String txt01=txt1.substring(0,40);
    String txt02=txt1.substring(41);
    label1.setText(txt01);
    label3.setText(txt02);
    label2.setText(res.getString(3));
           //label4.setText(res.getString(4));
    }Edited by: Karamjeet on Jul 11, 2009 1:57 PM

  • String index out of range 12348

    hI,
    While creating external datasource i am getting error string index out of range 12348
    thanks

    it looks like this may be posted to the incorrect forum.  This is a berkeley DB forum.
    thanks
    mike

  • BI Publisher : view Template HTML with graph=String index out of range: -1

    Hello,
    Do you have the same problem : I have made an rtf template with graphics, I have published it and when I edit it with BI Publisher as HTML model, I have the error :
    String index out of range: -1
    but I am able to see it as RTF model ? As PDF model, I don't have error but the graphics are empty.
    Another thing, when I am under Word, I can preview in HTML but the graphics are empty.
    If you have any idea that would be great.
    Thanks in advance for your help.

    mtbdude40 wrote:
    What I need is this:  The ability to create a PDF report with a custom header defining the data (example - select * from emp where deptno = :deptno and the header includes the department name).
    I use this white paper as my source:  http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf
    You need to build and use a Shared Resource -> Report Queries.
    The Report Query will have two queries associated with it (see below).
    one query will be for the header information, the other will be for the data.
    use the "download" of the "xml data" as your source for Altova/other tools.
    If you add/remove/change queries, You'll have to redo your report (from scratch) as that changes the XML Schema required. (at least, with my experience)
    Once you get the hang of it, 2x queries is easy (Header, data)
    I've experimented with 3x queries (header, master,details) but have been unsuccessful.  I have some ideas though ("link" master->detail info via XPath stuff within Altova) but haven't gotten around to testing it.
    If you want to run the report for multiple departments....That might require some finesse.
    Unfortunately, the Source of the Queries can't be a scalar SQL that returns 1 row of 1 column of data type XMLType....
    MK

  • Channel index out of range

    Hello,
    I have an rpf sequence rendered from 3ds Max with Object ID and Z depth checked in setup.
    In after effects CS4 when I choose an ID Matte and choose Object ID to isolate one of the objects I get the following error message:
    "After Effects Error: Channel index out of range. (69::23)"
    Whats going on?

    Ok, if I understand you correctly there is a limit to how many channels AE can read from an rpf file. But I only had two "extra" channels (at 8bit), zdepth and Object ID in the rendered sequence.
    I did a re-render last night at low quality and the problem is gone. Since the original sequence was rendered on different computers some of the information probably did'nt render properly later on in the sequence. I checked individual frames in the original sequence this morning and some of the frames was missing the channel information.
    Confusingly, it seems AE only displays channel information about the first frame in a sequence (in the Project panel).
    Thank you for making things clearer though and I'll look into the EXR-format since it seems to be a safer alternative.

  • 500 String index out of range: -1

    Can someone explain to me why when i create a subdirectory
    /go and put an index.cfm file with just text in it like hello world
    i get the following error:
    500 String index out of range: -1
    String index out of range: -1 .
    This is the same for any sub directories as well under the
    /go directory.
    If however I create this same file in another directory like
    /test under the root it works fine.

    I ran into a similar issue when creating a new live site using the name of a previously deleted site. Are you reusing the name of a previously deleted site?

  • Error Mapping XI:  String index out of range.

    Hi Experts,
    I have a problem with the mapping in XI. The transformation of data is very complex (see below) for field HBKID. I'm not having understanding the process of mapping is performed for the field HBKID. The creation of the transformation was performed using the graphical method for mapping in XI for this case. I think the person who created this data transformation didn't know that could be used USER DEFINED FUNCTION. Could you explain in more detail this MAPPING?
    In the test displays the message: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:ZSD000TF01/ZVBAP/item[2]/HBKID.
    The message is: Exception:java.lang.StringIndexOutOfBoundsException: String index out of range: 3]
    Edited by: Rafael Sá on Feb 9, 2010 10:40 PM

    Hi Experts,
    So, I've done several tests on the tab of tests with various XML and I can't understand reason of the error in MAPPING.
    I'll detail a little more the problem:
    The processing of the interface is made by many items.
    MAPPING ERROR:
    When the interface processes a first item with the information below:
    CHAVE_BANCO = EMPTY
    MEIO_PGTO = D
    TP_CARTAO_CREDITO = EMPTY
    AND a second item with the information below:
    CHAVE_BANCO = 314/3705
    MEIO_PGTO = W
    TP_CARTAO_CREDITO = EMPTY
    The error occurs: The message is: Exception:java.lang.StringIndexOutOfBoundsException: String index out of range: 3]
    MAPPING OK:
    But when the processing is performed inversely, the MAPPING is done correctly.
    When the interface processes a first item with the information below:
    CHAVE_BANCO = 314/3705
    MEIO_PGTO = W
    TP_CARTAO_CREDITO = EMPTY
    AND a second item with the information below:
    CHAVE_BANCO = EMPTY
    MEIO_PGTO = D
    TP_CARTAO_CREDITO = EMPTY
    I don't understand logic mapping for the field HBKID.

  • Error executing CFC. Parameter index out of range (2 number of parameters, which is 1)

    Hi,
    My CFC component is defined as:
    <cffunction name="updateNote" output="false" access="remote"  returntype="void" >
         <cfargument name="notedetails" required="true" type="string" >
         <cfargument name="notename" required="true" type="string" />
         <cfquery name="qupdateNote" datasource="notes_db">
               UPDATE
                   notes
               SET
                   notes.notedetails=<CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#ARGUMENTS.notedetails#">,
               WHERE
                   notename="<CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#ARGUMENTS.notename#">"
        </cfquery>
    </cffunction>
    In Flash builder when I test the operation I get this error:
    "There was an error while invoking the operation. Check  your server settings and try invoking the operation again.
    Reason:  Server error Unable to invoke CFC - Error Executing Database Query. Parameter  index out of range (2 > number of parameters, which is 1)."
    Im really quessing that this is something small but right now its causing me to pull my hair out of my head!! Argg. Tried a bunch of things but I know thik im stuck.
    Help would be very very appreciated.
    Thanks

    Create test.cfm along these lines:
    <cfset myObj = createObject("component", "dotted.path.to.cfc.file")>
    <cfset myResult = myObj.myMethod(arg=value1, etc)>
    <cfdump var="#myResult#">
    Or, really, you could just browse to this:
    http://your.domain/path/to/your.cfc?method=yourMethod&arg1=value1 [etc]
    Although I dunno which of those two approachs will give you a better error message (indeed, it might be the same).
    Try both.
    Adam

  • PI 7.31 (single stack) posting to RFC configuration gives this error: om.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: String index out of range: 0 (raised by system extern ...

    Getting cryptic error while trying to post to a custom RFC from PI 7.31 single stack.
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: String index out of range: 0 (raised by system <extern>|pidevhost)
    Does anyone recognize this error and/or know of detailed instructions for registering custom RFCs in PI 7.31. I could possibly have configured the target wrong but no error says so.
    This is a File-->PI-->RFC scenario. The file processing is super simple and a configuration I have used successfully before. I would assume I'd get a different error if it couldn't parse the file.
    Jody

    Not shure if you already did but try getting some details with XPI Inspector. Also increasing log level for this category might help. You also may wanna check authorization (even if this should show with a different error text) in ECC using ST01.
    My guts feeling is that there is something wrong with payload / signature of RFC.
    Cheers
    Jens

  • MP Error: StringIndexOutOfBoundsException: String index out of range: -1

    Hi All,
    We are using PI 7.1 EHP1, Where in we would like to see the capabilty of User-Module for Conversion of IDoc Messages Between Flat and XML Formats. Gone thru the blog (/people/sap.user72/blog/2005/07/04/get-into-the-zone - Part 2) and maintained the necessary NWA configurations and maintained the necessary module parameters (SAPRelease, SourceJRA, TargetDestination) in Sender File Adapter.
    Now the file is not been picked by file adapter upon checking the Comm Channel Monitoring below error:
    MP: exception caught with cause java.lang.StringIndexOutOfBoundsException: String index out of range -1
    Any help would be highly appreciated.
    Thanks in advance

    Hi Ramani,
    I hope you must have found a solution on this, if not then kindly consider changing your source files, as this error corresponds to only one thing: i.e. DATA Issue. You need to correct the data which you providing to the module for conversion.
    I faced this problem and corrected it by just correcting my test file.
    Regards,
    Nipun Shedhani

Maybe you are looking for

  • IPod Mini Freezes while transferring music

    Hey all... When transferring tracks from iTunes to my iPod Mini, iTunes seems to freeze after / during track #3 song transfer. I've reset, restored, upgraded, done everything i've been reading. I've even done a full MP3 libary scan for any corrupt mp

  • HT204088 print all purchase history. How can I do this?

    I need print all purchase history of itunes, with the date, description and value of each purchase. How can I do this?? I can see in my account/history purchase/see all .... but first I can not to see the complete value, this is clipped; second here

  • Mac Mail - Missing Drafts

    Hi Guys, Recently I took a trip overseas. During this trip I decided to keep a bit of a travel diary using my iphone (4) and my mail account (gmail through the mail app). Each time I would edit the diary as a draft in my mail acount, creating a new d

  • Translating Adobe Forms in WebDynpro ABAP

    Hi experts, I use Adobe Forms for printing purposes only. I have a form (XML based) which has to be in English and German. The original Language is German. So I translated it via the SE63 (all the blue printed Words), which worked fine but after this

  • JSP dosn't reflect changes.

    Hello. I had to change the system date of my machine to provoke certain condition to trigger ( ie. send an e-mail when the instance is about to expire ) The problem I'm facing right now is, no matter what I do, the new changes in my custom jsp are no