Skip to content

RIDE Console Output Size Limit? #1687

Closed

Description

@Farb

I met a strange problem when I used RIDE to call a .exe program by Process library.And the program output some logs,then I used the Log output the infos to the console of RIDE.My case is as follows:
·${dailyJob} RYP2P.Schedule.exe jobkey:dailydatajob runParams:startdate=2017-1-01$runmode=test$userid=-1 autoclose:true
·

    RunDailyJob
    [Documentation]    test Job
    OperateConfigInfo    update ry_modulesign set Online=1;
    Log Many    ensure my Job offline
    ${result}    Run Process    ${dailyJob}    shell=true    cwd=RyP2P.Schedule    stdout=${CURDIR}/stdout.txt
    Log    ${result.stdout}

The .exe program will execute a very complicated business logic.For example,it will loop through a year,the step length is one day.In every day,the program
will outputs a words like 'today is ${today}'。Therefore,the progarm will outputs lots of content finally.In my program,the problem is that the case cannot stop.
If you write the log to the file in the program,you will find the loop will pause in some stage such as the very day of half year.However,when you click the stop button
of RIDE,the loop will continue running to the end of the program.If I comment the Log ${result.stdout},the case will end quickly.I guess that if RIDE has a limit over
the console size or it is a bug of RIDE?

Thanks in advance!

Activity

  1. Casalis commented on Mar 17, 2017

    @Casalis

    Have you still got this problem?
    How many lines does the ".exe" return for each day?
    Is the Log file longer that the RIDE console log?

  2. added
    enhancement
    pending
    and removed
    enhancement
    on Jun 1, 2019
  3. HelioGuilherme66 commented on Dec 1, 2019

    @HelioGuilherme66
    Member

    Closing because is too old and we cannot reproduce, or lack of information.

  4. reopened this on Dec 1, 2019
  5. Nyral commented on Dec 1, 2019

    @Nyral
    Contributor

    @HelioGuilherme66 You can use the test in this suite to reproduce the issue. It should crash after 300 iterations or so.
    MessageLog.txt

    To sum it up, we need trim lines that go over a certain size and also maybe periodically clear memory log and console if number of lines/chars reach a certain size.

  6. added
    bug
    prio-medium
    and removed
    pending
    on Dec 2, 2019
  7. added this to the v1.7.4 milestone on Dec 2, 2019
  8. HelioGuilherme66 commented on Dec 2, 2019

    @HelioGuilherme66
    Member

    @Nyral With your example, I cannot reproduce (today's development version):
    image

  9. modified the milestones: Future, v2.0 on Jul 18, 2021
  10. added
    analyze
    on Jul 18, 2021
  11. added
    fixed
    and removed
    analyze
    on May 8, 2022
  12. HelioGuilherme66 commented on May 8, 2022

    @HelioGuilherme66
    Member

    This is fixed by stopping the log when a memory limit is reached. The following message is shown in the log:

    Messages log exceeded 80% of process memory, stopping for now...
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfixedprio-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions