[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset 84694c3e7adadc97d7d8cee938fe84bbeb961387 by Miss Islington (bot) in branch '3.9': bpo-42225: IDLE - document two unix-related problems. (GH-25078) https://github.com/python/cpython/commit/84694c3e7adadc97d7d8cee938fe84bbeb961387 --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset e92923b028024290a0e621b6b90e3221767d14d4 by Miss Islington (bot) in branch '3.8': bpo-42225: IDLE - document two unix-related problems. (GH-25078) https://github.com/python/cpython/commit/e92923b028024290a0e621b6b90e3221767d14d4 --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: On macOS with 3.10.0a, 8.6.11 appears to fix this issue. >>> chr(128516) "" For IDLE, I am adding a paragraph to the doc. I will then close this issue as 'fixed' (insofar as we can for what is a 3rd party failure). -- stage: patch review -> test

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +23850 pull_request: https://github.com/python/cpython/pull/25106 ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +23849 pull_request: https://github.com/python/cpython/pull/25105 ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1b4a9c7956d5dc64f8002f62bf0faae2d1892f90 by Terry Jan Reedy in branch 'master': bpo-42225: IDLE - document two unix-related problems. (#25078) https://github.com/python/cpython/commit/1b4a9c7956d5dc64f8002f62bf0faae2d1892f90 --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23828 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/25078 ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, seems strictly a matter of complicated color, which is perhaps becoming more common. Firefox colors the checkbox (white checkmark on green field in a largish black square) but not the (smaller) pencil. I did not recognize either the FF or tk Windows

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: At least it is not a regression caused by support of astral characters (issue13153). -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #43647 as a duplicate of this. It reported that BMP chars can fail also. For instance, with "Noto Sans Mono", but not 'Dejavu Mono', the following crash. >>> '\u2705' '✅' >>> '\u270f' '✏' Unfortunately, as least on some *nix, the default

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed Issue42318 about the surrogate pairs error I mention in msg380552. -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please open a new issue for "surrogates not allowed". -- ___ Python tracker ___ ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. the SyntaxError I got (msg380552): It looks like it will be possible to work around that problem in _tkinter.c:unicodeFromTclStringAndSize by merging surrogate pairs. -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that the main installers for Python 3.8 and 3.9 will continue to use Tk 8.6.8 due to problems when building later Tk version on macOS 10.9. The current plan is to add an installer variant to (amongst others) uses Tk 8.6.10 (and .11 when that's

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, does Ronald's report above re 8.6.10 on macOS suggest what might be needed to make print("") work on Mac? As I remember, your year-old _tkinter patch to make print() work on Linux and Windows converts Python strings differently on the two systems.

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash I had on macOS with tk 8.6.8 appears to be gone when using tk 8.6.10. What I got back was a SyntaxError when pasting a smiley emoji in an IDLE shell window when trying to type execute print(""). The SyntaxError message says: 'utf-8' codec can't

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ian Strawbridge
Ian Strawbridge added the comment: On Ubuntu, Tk version is showing as 8.6.10 On Windows 10, Tk version is showing as 8.6.9 -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed a Tk issue about this: https://core.tcl-lang.org/tk/tktview/f9fa92d8e06972b5f0583b07a3c98eaac0a0 What versions of Tk are used? - On macOS I've tested with the Python.org installer, which uses Tk 8.6.8. --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ian Strawbridge
Ian Strawbridge added the comment: Further to the information I posted on Stack Overflow (referred to above) relating to reproducing emoticon characters from Idle under Ubuntu, I have done more testing. Based on some of the code/comments above, I tried modifications which I hoped might

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kevin, Serhiy tried to report this upstream but failed. msg380143. Perhaps you could. One person running my test program reported """ Fedora 32 x86-64 Cinnamon 4.6.7 Linux 5.8.16-200.fc32.x86_64 Python 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Kevin Walzer
Kevin Walzer added the comment: Some work has been done this year on expanding support for these types of glyphs in Tk, but I'm not sure of its current state--it's not my area of expertise. Can you open a ticket at https://core.tcl-lang.org/tk/ so one of the folks working on this can take a

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Kevin Walzer: Is the problem were seeing a known issue with Tk? -- nosy: +wordtech ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: > This version catches exceptions and reports them separately and runs directly > with tkinter, in about a second. The X Error is displayed and then the process exit. Python cannot catch this fatal X Error. --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: The following program fails with: --- X Error of failed request: BadLength (poly request too large or internal Xlib length error) Major opcode of failed request: 138 (RENDER) Minor opcode of failed request: 20 (RenderAddGlyphs) Serial number of

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works on Ubuntu if uninstall the color Emoji font (package fonts-noto-color-emoji). -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, does my test run to completion (without exception) on your Fedora? If it does, I definitely would not disable astral char display on Fedora. This version catches exceptions and reports them separately and runs directly with tkinter, in about a

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread E. Paine
E. Paine added the comment: For me, this is not limited to special characters. Trying to load anything in Tk using the 'JoyPixels' font crashes (sometimes it does load but all characters are very random - most are whitespace - and it crashes again after a call to `fc-cache`). IDLE crashes

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread STINNER Victor
STINNER Victor added the comment: > Fixing OS graphics or tk is out of scope for us. Preventing hangs or crashes > when using tkinter is. On Mac, refusing to insert any astral char into a tk > widget might be the best solution. Serhiy, could that be done in > tkinter/_tkinter? I dislike

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In IDLE on Windows the following prints the first 3 astral planes in a couple of minutes. for i in range(0x1, 0x4, 32): chars = ''.join(chr(i+j) for j in range(32)) print(hex(i), chars) Perhaps half of the assigned chars in the first plane

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The error on Linux could be related to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1498269 -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks different on my computer. I suppose it will crash to you too if you install a color emoji font. -- Added file: https://bugs.python.org/file49557/Ubuntu-2020.04.png ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > Victor, do you see a color smiling face in my example or monochromatic or > just a bar? See attached screenshot: fedora32.png. -- Added file: https://bugs.python.org/file49556/fedora32.png ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, do you see a color smiling face in my example or monochromatic or just a bar? -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, on Linux. Ubuntu 2020.04. Tk 8.6.10. X.Org X Server 1.20.8. I tried to report the bug upstream, but failed. I did not use the Tk bugtracker several years, and it was on different computer, so I have no password to my account, and when I tried to

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy's test also work as expected. $ wish % label .l -text  Since the Serhiy's test doesn't use Python, is it worth it to track this Tk crash in the Python bug tracker? -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, I didn't explain well. My test. I ran: ./python -m idlelib In the IDLE shell, I wrote chr(0x1F604) which displays the emoji as expected: >>> chr(0x1F604) '' -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I generated a script for testing all characters: with open('withtest.sh', 'w', errors='surrogatepass') as f: for i in range(0x100, 0x11): print(f"echo 'label .l -text \"{chr(i)}\"; exit' | wish 2>/dev/null && echo OK '\\U{i:08x}' {chr(i)!r} || echo

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > I get a crash for chr(128516) ("") in Tk. On Linux? What is your Tk version? On my Fedora 32, the character is displayed properly. It seems like Tk is still using X11 whereas my GNOME desktop is using Wayland. $ ./python -m test.pythoninfo|grep

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get a crash for chr(128516) ("") in Tk. $ wish % label .l -text  .l % X Error of failed request: BadLength (poly request too large or internal Xlib length error) Major opcode of failed request: 139 (RENDER) Minor opcode of failed request: 20

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-10-31 Thread Terry J. Reedy
New submission from Terry J. Reedy : On my macOS Mohave, 3.10, echoing '\U0001' (# = hex digit) or chr(#) (decimal digits) in IDLE's shell either prints an error box or hangs. On #13153, freezing on macOS was reported for 3.7.6. Until tkinter on Mac works better, we should try to