Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle Shell freezes when printing 100000+ char lines. #71937

Closed
chinmayhegde mannequin opened this issue Aug 12, 2016 · 4 comments
Closed

Idle Shell freezes when printing 100000+ char lines. #71937

chinmayhegde mannequin opened this issue Aug 12, 2016 · 4 comments
Assignees
Labels
topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@chinmayhegde
Copy link
Mannequin

chinmayhegde mannequin commented Aug 12, 2016

BPO 27750
Nosy @terryjreedy
Superseder
  • bpo-1442493: IDLE shell window gets very slow when displaying long lines
  • Files
  • idle_crash.zip: input.txt input used and issue.py python script
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/terryjreedy'
    closed_at = <Date 2016-08-16.06:56:13.614>
    created_at = <Date 2016-08-12.19:08:52.510>
    labels = ['expert-IDLE', 'type-crash']
    title = 'Idle Shell freezes when printing 100000+ char lines.'
    updated_at = <Date 2016-08-16.06:56:13.612>
    user = 'https://bugs.python.org/chinmayhegde'

    bugs.python.org fields:

    activity = <Date 2016-08-16.06:56:13.612>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2016-08-16.06:56:13.614>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2016-08-12.19:08:52.510>
    creator = 'chinmay hegde'
    dependencies = []
    files = ['44113']
    hgrepos = []
    issue_num = 27750
    keywords = []
    message_count = 4.0
    messages = ['272558', '272698', '272733', '272841']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'chinmay hegde']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '1442493'
    type = 'crash'
    url = 'https://bugs.python.org/issue27750'
    versions = ['Python 3.5']

    @chinmayhegde
    Copy link
    Mannequin Author

    chinmayhegde mannequin commented Aug 12, 2016

    Idle editor crashes when input size more than 250 lines given.

    Steps to reproduce:-
    try with below snippet of code

    for i in range(250):
        n=input()

    Execute the snippet of code. But while giving the input copy all 250 inputs with single paste.
    Editor is crashed. On clicking it's giving "Not responding"

    System Config:-
    OS - Windows 10
    Python Version - 3.5.2
    IDLE version - 3.5.2
    Tk version - 8.6.4

    @chinmayhegde chinmayhegde mannequin added topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump labels Aug 12, 2016
    @terryjreedy
    Copy link
    Member

    Please describe more exactly the pasting. Also try the same when you run the same code in the standard python interpreter. Same or different behavior? Also, what system? Pasting varies a bit between OSes. Is '250' needed'?

    @chinmayhegde
    Copy link
    Mannequin Author

    chinmayhegde mannequin commented Aug 15, 2016

    Attaching the exact snippet of code that caused idle crash.issue.py file contains the code and input.txt contains input used.

    Also tried with python interpreter. In python interpreter issue is not seen. It's displaying the output.

    Pasting of input was done by copying the contents from the notepad file to idle.

    Output is 2 dimensional array in the script(variable 'a'). I think due to the size of the output idle is crashing. But issue is not seen in python interpreter.

    System Config:-
    Operating system - Windows 10 64 Bit
    Python Version - 3.5.2
    IDLE version - 3.5.2
    Tk version - 8.6.4

    @terryjreedy
    Copy link
    Member

    200 (lines) * 200 (columns) * 3 (or more chars/item) = line with 120000+ chars -- which you try to print 200 times. This is known to mostly freeze tk Text windows. This was not a crash for me, as I was able to close Shell and continue.

    PS: Please post uncompressed files next time.

    @terryjreedy terryjreedy changed the title Idle editor crashes when input size more than 250 lines given Idle Shell freezes when printing 100000+ char lines. Aug 16, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant