Uniface User Forum

 View Only
  • 1.  Uniface 9 has stopped working.

    Posted 07-26-2023 06:26

    Hi,

    I have a weird issue with uniface 9.6. 

    When I try run a form for a particular record, Uniface crashes out ( Uniface 9 has stopped working). 

    But... when I run the same form with the same record in debug mode, I works fine.

    Has anyone seen this before?  What could be the cause./solution 

    Thanks for your help.

    Stanley



    ------------------------------
    Stanley Odukoya
    Software Engineer
    Rocket Forum Shared Account
    ------------------------------


  • 2.  RE: Uniface 9 has stopped working.

    Posted 07-26-2023 08:00
    If you have any watch conditions in the debugger which might change the status remove them.
    Alternatively, turn on proc tracing in the component, and see how far the log makes it.
    I have had the opposite problem in 10.3, in that a service dies when being debugged but not when run normally.

    Iain

    Sent from my iPad




  • 3.  RE: Uniface 9 has stopped working.

    Posted 07-27-2023 03:26

    $hits acts differently in the debugger... 

    use $putmess_logfile in your asn file and see what comes out



    ------------------------------
    Osman Shariff
    ------------------------------



  • 4.  RE: Uniface 9 has stopped working.

    Posted 07-31-2023 09:09

    Hi Stanley,

    based on your rough description it is difficult to provide you with an answer. In your case some memory overwriting seems it is happening...

    However, based on my experience, two could probably be reasons for the anomaly:
    1 - A single component NOT compiled after an "Application Model" update
    2 - A field containing dirty data, probably inserted/updated from outside Uniface, not with a Uniface component based on its "Application Model"

    Trying to solve:
    1 - Re-Compile and put in use ALL your Uniface components/object...
    2 - As already proposed from Iain turn trace trace on entering the faulty component and discover in your log file which is last executed instruction; your issue could be generated from that last instruction or the following one...

    Hope it helps! Let us know how you solved...

    Regards,
    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------



  • 5.  RE: Uniface 9 has stopped working.

    Posted 08-10-2023 10:30

    Hi,

    Thank you for all the ideas to solve this problem,

    We have release a new URR and DOL file, and that has fixed the problems.

    Stanley



    ------------------------------
    Stanley Odukoya
    Software Engineer
    Rocket Forum Shared Account
    ------------------------------



  • 6.  RE: Uniface 9 has stopped working.

    Posted 06-25-2024 05:23

    Stanley

    It is possible to log your proc script execution with following assignment file settings. 

    [settings]
    $PROC_TRACING = 1
    $PROC_LOG_FILE = <FileName>

    Additionally you can use the $PUTMESS_LOG_FILE to get all putmess calls and system errors in the log file. In case of a crash it is even possible to have the log lines written directly to disk, however this will cause a serious performance degradation of the application since uniface needs to wait for the physical disk I/O. So do not  use the bold marked setting in production.

    $PROC_LOG_FILE = <FileName>, direct

    I hope this helps you in finding the issue and solve it.

    Regards

    Jasper de Keijzer

    Principal Software engineer at RocketSoftware.



    ------------------------------
    Jasper DeKeijzer
    Rocket Internal - All Brands
    ------------------------------



  • 7.  RE: Uniface 9 has stopped working.

    Posted 07-05-2024 05:48

    Hi Jasper,

    is any particular uniface version required for this? I've just tried the "direct" switch with my 10.4.02.045. In my environment the following setting results in a file named "tracefile.trc, direct".

    $PROC_TRACING = 1
    $PROC_LOG_FILE = U:\UnifaceSchulung\trace\tracefile.trc, direct

    Best regards



    ------------------------------
    Michael Rösch
    Abrechnungszentrum Emmendingen
    ------------------------------