8.5.1 Projector loosing sprite properties after 110 hours running.

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default 8.5.1 Projector loosing sprite properties after 110 hours running.

    Hi,


    I have the following problem:

    After about 110 hours of non stop running, some(or all) sprites loose some or all of their property information. ("property not found") I wasn;t able to determine exactly which properties, but it looked like on one sprite the .ink property was unrecognised.
    Also the screen gets messed up. It looks like all sprites suddenly have their trails turned on.
    (None of my scripts turn trails on.)

    I use setpref for errorlogging purposes, and have read in the knowledge base that this may cause memory leaks, however this cannot be responsible for the problem because the problem occurs before the logging starts.

    setup:
    - windows xp embedded with projectors created in dir 8.5.1
    - projectors running are actually multiple instances of 1 executable. these instances each play their own movie (.dir) file.
    - several projectors (5) running at the same time, with animate in background turned off.
    - projectors communicate to a central data system written in c.
    - used glu32 xtra and a dll to get to this data.
    - other projectors are not affected and c-code runs fine. conclusion, only the one projector is affected.

    I am now tryinig to find out more about the actual errors generated, so I improved my errorlogging.
    Just have to wait 4.5 days for the result! :-/

    If you have suggestions or similar experiences, please let me know.

    Thanks,

    Joris van Liempd

    PS. sorry if this message was posted twice.



    J O R I S webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Trouble running Projector on NT
      I'm new to this and have created a projector which was burnt on to CD. I tried to run it on Windows NT and nothing happens, even though there is an...
    2. Running a separate projector file
      Im fairly new to Director, I am putting toghther a director movie, and when on one screen the viewer has the option of running a separate projector...
    3. Projector Choppiness - Too Much Running at once?
      Hello, I have a Projector file that is comprised of a main sprite scene with 6 buttons all leading to other scenes that play out in this fashion....
    4. projector slowing during several hours
      We built a director 7.02 projector that plays in a kiosk on a Win xp home platform. After about 6 hours, sprites that at the start of the day are...
    5. Import Scipt error when running Projector
      Justawceend wrote: Can't you do what you want without using linked director movie ? LDM are very buggy and very limited. It's better for example to...
  3. #2

    Default on thought

    I had trouble with a kiosk looping videosm never exactly determied
    cause, but it seemed to be related to a memory leak.


    The sprite props loss may just happend to be the first symtoms of used
    up memory. You may want to trace the freeBlock, freeBytes and look for
    any minute loss on each iteration.


    Wonder if glu32 xtra may be causing a memory leak perhaps on each
    instantiation, one could keep a single xtra instance stored in a global
    the whole time.
    JB Guest

  4. #3

    Default Re: 8.5.1 Projector loosing sprite properties after 110 hours running.

    I´ve never had that problem but... you might work around the problem by
    creating a timer handler. Once your application detects you are above say...
    100 hours, re initialize your projector o forget windows (in case of using
    MIAWs)...

    ARturo


    "J O R I S" <webforumsuser@macromedia.com> escribió en el mensaje
    news:bqfbe5$nh8$1@forums.macromedia.com...
    > Hi,
    >
    >
    > I have the following problem:
    >
    > After about 110 hours of non stop running, some(or all) sprites loose some
    or all of their property information. ("property not found") I wasn;t able
    to determine exactly which properties, but it looked like on one sprite the
    ..ink property was unrecognised.
    > Also the screen gets messed up. It looks like all sprites suddenly have
    their trails turned on.
    > (None of my scripts turn trails on.)
    >
    > I use setpref for errorlogging purposes, and have read in the knowledge
    base that this may cause memory leaks, however this cannot be responsible
    for the problem because the problem occurs before the logging starts.
    >
    > setup:
    > - windows xp embedded with projectors created in dir 8.5.1
    > - projectors running are actually multiple instances of 1 executable.
    these instances each play their own movie (.dir) file.
    > - several projectors (5) running at the same time, with animate in
    background turned off.
    > - projectors communicate to a central data system written in c.
    > - used glu32 xtra and a dll to get to this data.
    > - other projectors are not affected and c-code runs fine. conclusion, only
    the one projector is affected.
    >
    > I am now tryinig to find out more about the actual errors generated, so I
    improved my errorlogging.
    > Just have to wait 4.5 days for the result! :-/
    >
    > If you have suggestions or similar experiences, please let me know.
    >
    > Thanks,
    >
    > Joris van Liempd
    >
    > PS. sorry if this message was posted twice.
    >
    >
    >

    Arturo Toledo Guest

  5. #4

    Default Re:on thought

    Thanks for your suggestions.



    I already initialise the glu32 instances on startup. So there probably is no problem with the instantiating, although glu32 may still be leaking somewhere. However, I don't think the connection to a dll is such a complex thing to do, so for now I trust glu32.

    I implemented a version of memory tracking and am now waiting for the results...

    Did your kiosk-movie crash?

    And if so, can you remember how long it took?



    J O R I S webforumsuser@macromedia.com Guest

  6. #5

    Default Re: 8.5.1 Projector loosing sprite properties after 110 hours running.

    Thanks Arturo.


    Restarting after 100 hours might be a final hack around the problem.

    Unfortunately restarting is very unwanted behaviour, so I'd rather find the real problem.

    May be an upgrade to MX would do it?

    Anyone?

    Are there any fundamental or at least significant changes in MX where it concerns memory managment?




    J O R I S webforumsuser@macromedia.com Guest

  7. #6

    Default Re: 8.5.1 Projector loosing sprite properties after 110 hours running.

    > Are there any fundamental or at least significant changes in MX where it
    concerns memory managment?

    no, there are no fundamental or at least significant changes in MX period.
    ;-)

    /Christoffer


    Christoffer Enedahl Guest

  8. #7

    Default Re: on thought

    >... You may want to trace the freeBlock, freeBytes...

    They don't work on Windows. You have to use an xtra like buddyAPI
    ([url]www.mods.com.au[/url]) if you want to monitor memory usage or use the Windows Task
    Manager (ctrl+shift+esc).

    Andrew

    Andrew Morton Guest

  9. #8

    Default Re: 8.5.1 Projector loosing sprite properties after 110 hours running.

    Director´s memory management issue has always been the ISSUE when it comes
    to to bugs. I hope you can solve this Joris and let us know, ok?

    Take care!

    Arturo



    "J O R I S" <webforumsuser@macromedia.com> escribió en el mensaje
    news:bqhg76$dh7$1@forums.macromedia.com...
    > Thanks Arturo.
    >
    >
    > Restarting after 100 hours might be a final hack around the problem.
    >
    > Unfortunately restarting is very unwanted behaviour, so I'd rather find
    the real problem.
    >
    > May be an upgrade to MX would do it?
    >
    > Anyone?
    >
    > Are there any fundamental or at least significant changes in MX where it
    concerns memory managment?
    >
    >
    >
    >

    Arturo Toledo Guest

  10. #9

    Default Re: 8.5.1 Projector loosing sprite properties after 110 hours running.

    Too keep all of you who are interested up to date:

    Memory seems the prime suspect. Virtual memory size is increasing slowly but steadily.

    May be this is a memory framentation problem.

    Is there a way to defragment memory?
    Would it help to unload a lot of members from time to time?
    (I may create a benchmark projector to explore this option)

    The trail-effect is not caused by sprite trails.
    It looks more like directors screen buffer is having difficulties.
    Today we could witness the bug live:

    The projector slows down and starts stuttering.
    Trail effects start appearing during these stutters.
    No errors reported in the log sofar.
    Sound is okay.
    CPU usage is about normal.

    PageFaults are through the roof. 125 miljn and counting.

    We are going to set the virtual memory manually to a high value now to see if this increases the uptime, (instead of letting Windows manage the VM.)






    J O R I S webforumsuser@macromedia.com Guest

  11. #10

    Default Re: 8.5.1 Projector loosing sprite properties after 110 hours running.

    Can you get the projector to quit and restart every 24 hours? That was always
    the usual workaround.

    Andrew

    Andrew Morton Guest

  12. #11

    Default Project requirements and VM

    It is a requirement that the machine runs at least 100 hours. This is an absolute minimum.
    However, this is far below our aim. So 110 (107) hrs is a bit close to this 100 hours and that is
    why it needs to be solved.

    While tracking Virtual memory, it turns out that the amount of Virtual memory increases by 2MB every
    hour!
    Seems like a leak to me.

    Does anyone know what happens when you don't 'catch' return values. Can this result in memory leaks?
    Or Itterative functions not being ended properly? Is this eating stack space, or heap, or whatever it is called?
    Director always seems to ignore these things, but in a compiled language, this usaually means trouble... May be I should look for these constructions in my scripts?







    J O R I S webforumsuser@macromedia.com Guest

  13. #12

    Default Re: Project requirements and VM


    "J O R I S" <webforumsuser@macromedia.com> skrev i meddelandet
    news:bqpcee$hkd$1@forums.macromedia.com...
    > Seems like a leak to me.
    >
    > Does anyone know what happens when you don't 'catch' return values. Can
    this result in memory leaks?

    Only when you are creating a timeout. You need to catch the return value,
    It's a bug in the timeout object.
    > Or Itterative functions not being ended properly? Is this eating stack
    space, or heap, or whatever it is called?
    > Director always seems to ignore these things, but in a compiled language,
    this usaually means trouble... May be I should look for these constructions
    in my scripts?

    Are using the xmlparser xtra? that one leaks.
    In lingo a leak can emerge from circular references. like, one object have
    another object in its property, that object have the first object in its
    property too. When you stop using both objects, and dont clear the
    properies, the objects will remain. causing a leak.

    HTH/Chistoffer


    code example of a leak:

    --script leak
    property pObject
    on new me
    return me
    end
    on SetObject me,aObject
    pObject = aObject
    end

    --in other code
    a = script("leak").new()
    b = script("leak").new()
    a.SetObject(b)
    b.SetObject(a)

    a = void
    b = void


    Christoffer Enedahl 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