FMS2 CRASHING! (almost seems to be random)

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default FMS2 CRASHING! (almost seems to be random)

    I'm writing an application that utilizes the XMLSocket object, and the XML /
    XMLNode objects. It's getting to the point where there is allot of code
    building / parsing XML some very simple Messages. It seems that once I've
    passed a certain threshhold of building/sending, then a-synchronously
    recieving/parsing about 2 xml messages, FMS2 will crash when the application is
    reloaded. It will work fine the first time the app instance is run after a
    server restart, but if the app instance ends (via connections dropping, or via
    application.shutdown()) the next time the app is run, there seems to be a 70%
    chance that FMS2 will crash.

    After looking at the core log file, I get this error every time FMS crashes:

    2005-11-28 18:12:11 5060 (e)2581279 Assert failed in \server\js\jsXML.cpp line
    1523 -

    Sometimes this error only shows up once, but sometimes it shows up several
    times in a row (a few seconds apart).

    A look at the crash dump file lead me to this file path for the problematic
    source file:
    c:\flashfarm\depot\branches\FlashCom_Edison\main\t incan\server\js\jsXML.cpp


    I've tried to narrow down in my code exactly what is invoking this, but since
    it happens at random times throughout my code (I put traces all over to see
    where it stops), I can't find it. It's also not really doing anything tricky
    with XML right now, so that adds to the confusion. If I stop it after it only
    recieves 1 XML response, then I don't ever seem to run into the issue, but once
    I've sent / recieved 2 or more messages, the crash is inevitable, albiet it
    will come at a random time. The one thing I can think of that I'm doing that
    might be a little out of the ordinary is extending the XML and XMLNode objects
    to give me an easy way to get a child node by name or name / attribute values.
    It's very simple though. Here it is (the dots at the begnining of some lines
    are used to make it more readable on this website... they're not actually in
    the code):

    // Extend the XML & XMLNode objects to return a childnode by name, or
    undefined if the node doesn't exist.
    // The second & third optional parameters will only return the node if the
    named attribute / value
    // combo are also found in the node.
    XML.prototype.getChildNode = XMLNode.prototype.getChildNode =
    function(sNodeName, sAttributeName, sAttributeValue) {
    ....if (this.hasChildNodes) {
    ........for(var x = 0; x < this.childNodes.length; x++) {
    ............if (this.childNodes[x].nodeName == sNodeName) {
    ................if (sAttributeName != null && sAttributeValue != null) {
    ....................if (this.childNodes[x].attributes[sAttributeName] ==
    sAttributeValue) {
    ........................return this.childNodes[x];
    ....................}
    ................} else {
    ....................return this.childNodes[x];
    ................}
    ............}
    ........}
    ....}

    ....// The requested node was not found. Return undefined:
    ....return undefined;
    }


    Sorry for the long post, but this crash, from what I can tell, seems to be a
    problem in FMS2, and not my code. If anyone knows how to get in touch with
    Macromedia on bugs like this (I don't know if they read these boards), or if
    anyone has any ideas on this or has run into the same things, please let me
    know.

    If someone from Macromedia could please look at the following cpp file on line
    1523:
    c:\flashfarm\depot\branches\FlashCom_Edison\main\t incan\server\js\jsXML.cpp

    Please let me know what this might be. I'll understand if it's something that
    can't be fixed until a later release, but if you could give me a hint as to
    what I might be able to avoid using in my code in order to avoid this, I'd
    greatly appreciate it!

    Thanks,
    -Bryan

    BryanTheCrow Guest

  2. Similar Questions and Discussions

    1. FMS2 and CS3
      I've been beating my head against the wall on trying to get a simple video streaming going with CS3 and FMS2. Are there any "HelloWorld" type...
    2. FMS2 on FC4 anyone?
      Has anyone been able to install FMS2 on Fedora Core 4? Installations with -plaformWarnOnly goes fine. But the server won't start. I can see the...
    3. [Q] Can I do this with FMS2???
      Hi... :) Okay... I was wondering if this can be done in FMS2... Let's say that I have a movieClip that is the same size as the stage, and this...
    4. Using Math.random to go to random frames
      Hello everyone. My cerebral density is preventing me from seeing the solution to this problem. I have the following code which causes the user to...
    5. Random image in a random place.
      Anyone know javascript? I have a grid(4 x 4) of 16 spacer images and a few text links on the side. Each text link represents a different folder of...
  3. #2

    Default Re: FMS2 CRASHING! (almost seems to be random)

    Sorry, forgot to note. The crash alert shows the following:

    FMSCore.exe - Application Error

    The instruction at "0x0051d504" referenced memory at "0x0074065". The memory
    could not be "written".

    Upon disasembling FMSCore.exe, I found the following line of assembly was
    causing the error:
    0051D504 mov dword ptr [esi+4],edi

    I have the dump file if macromedia would like it to find out what method was
    being invoked...

    BryanTheCrow Guest

  4. #3

    Default Re: FMS2 CRASHING! (almost seems to be random)

    Just a note... if you want someone from macromedia to respond, this isn't the place to make it happen. Contact them directly or report a bug. I don't think I've ever seen anyone from MM post here.
    JayCharles Guest

  5. #4

    Default Re: FMS2 CRASHING! (almost seems to be random)

    Quick update:

    I posted about this issue on the Flashcomguru Forums and have been contacted
    by Macromedia. I'll post the solution we come to on that site (for anyone
    running into the same issue):

    [url]http://www.flashcomguru.com/forum/forum_posts.asp?TID=1590[/url]


    thatguy2g Guest

  6. #5

    Default Re: FMS2 CRASHING! (almost seems to be random)

    Quick Update:

    I posted about this issue on the Flashcomguru Forums and have been contacted
    by Macromedia.

    Once we reach a solution I'll post here, and on the Flashcomguru Forum:

    [url]http://www.flashcomguru.com/forum/forum_posts.asp?TID=1590[/url]

    BryanTheCrow Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139