Skip to content

Problems and Unhandled Exceptions in some unix terminals (those which use libvte). #1160

Open
@rendarz

Description

@rendarz

I'm running a simple prompt-toolkit snippet example, taken from your website.
I have just added few lines to add a console "command" to show you which the problem is.

The snippet can be found in: https://gist.github.com/rendarz/92f57af0ca746c6400299ba7cfd07ed1

Now, the problem is as follows:
When I use with patch_stdout(): as your help DOCS suggest, I encounter the problem, while, when I remove that line, the problem disappear.

The problem seems to happen only on those terminals which uses libvte, such as xfce4-terminal or gnome-terminal, and it seems to NOT happen in those terminals which DO NOT uses libvte, such as Eterm, or xterm. Despite the presence of with patch_stdout(): statement.

While using the console, I have inserted a simple command, as you can see from the example above ^ which makes the program to do a loop, and print 100 numbers, from 0 to 99.
When I fire that command, printing slows down at 31, then it suddenly run again until 65, then it goes at 99 where it makes the program crashing with the follow message:

`
Unhandled exception in event loop:

Exception None
Press ENTER to continue...
`

I can put a try: big like an house in between all the code, but I still get that message that makes the app to crash.
Just try yourself that code I gave to you.

Honestly, I don't know if this is a libvte bug, but surely is something to investigate on.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    patch-stdoutpatch_stdout related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions