"Application is meditating" & full system freeze
  • Caterpillar
    Caterpillar
    AmiDARK
    Posts: 38 from 2011/10/29
    From: South France
    Hi All,

    In the progress porting the AmiDARK Engine on MorphOS,
    I experience some problems I cannot find how to fix.

    When I run my application (compiled under AmiDevCPP), sometimes :
    1. It run correctly (some functions don't work)
    2. Window open but nothing happen except "Application is meditating"
    3. MorphOS entirely freeze, need a soft reset

    I tried to add various text output to know where the problem is and even with this, I cannot find because :
    1. Sometimes it freezes when loading/creating 3D objects (not always at the same object)
    2. Sometimes it freezes when I refresh the display (starting my sync function)
    3. Sometimes it freeze after refreshing the 3D objects in the sync process)

    Does someone have any clue or an idea on how to hunt this annoying issue ?

    Thank you per advance,

    Kindest Regards,
    AmiDARK
  • »06.11.11 - 18:15
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1516 from 2003/2/24
    From: Finland
    If it doesnt freeze you could try to retrieve crashlog. Run getramdebuglog in shell and if ramdebug is enabled it stores morphos.log to your current dir. If that is not possible you can use serial cabel to see debug in real time. It is also possible retrieve debug log after reset but on some machines it requires tuning boot options.

    You could also try to run it with Wipeout (gg:/tools/wipeout) to find out memory trashing.

    Using memorylists (instead of TLSF allocator) can also reveal some memory trashing (see boot options).
    1 + 1 = 3 with very large values of 1
  • »06.11.11 - 19:03
    Profile
  • Caterpillar
    Caterpillar
    AmiDARK
    Posts: 38 from 2011/10/29
    From: South France
    @itix :
    Hi and thanks for your answer.
    I don't have Wipeout in my MorphOS installation.

    Will DL it from Aminet.

    Thank you.
    Kindest Regards,
    AmiDARK

    [ Edité par AmiDARK 06.11.2011 - 21:24 ]
  • »06.11.11 - 21:23
    Profile Visit Website
  • Caterpillar
    Caterpillar
    AmiDARK
    Posts: 38 from 2011/10/29
    From: South France
    Hi.

    Just to "up" the subject.

    I've done some more tests and the main AmiDARK "system" initialisation is ok.
    Apparently it's a function I've created that cause this issue.

    (I have some ideas on what may cause this ...)

    I'm doing more investigation to fix this.

    Kindest Regards,
    AmiDARK
  • »02.12.11 - 08:08
    Profile Visit Website