Skip Menu |

This queue is for tickets about the Tcl-pTk CPAN distribution.

Report information
The Basics
Id: 131286
Status: resolved
Priority: 0/
Queue: Tcl-pTk

People
Owner: Nobody in particular
Requestors: welleozean [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: Fail Installing Tcl::pTk on MacOS Mojave Perl 5.30 with Thread
Date: Sat, 28 Dec 2019 21:35:58 +0100
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle ozean <welleozean [...] googlemail.com>
Installing Tcl::pTk crashes the system (black screen -> macOS login) cpanm Tcl::pTk Tcl has been correctly installed. From the logfile: PERL_DL_NONLAZY=1 "/Users/wc/perl5/perlbrew/perls/perl-5.30.0_WITH_THREADS/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t 2019-12-28 21:29:14.319 perl[53976:344096] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted 2019-12-28 21:29:14.319 perl[53976:344094] HIToolbox: received notification of WindowServer event port death. 2019-12-28 21:29:14.319 perl[53976:344094] port matched the WindowServer port created in BindCGSToRunLoop make: *** [test_dynamic] Hangup: 1
Hi Welle,

I have not used my Macs in a while or have done much work on Tcl::pTk, and might not be able to anytime soon.

I have encountered the kind of issue you describe before, but not when using Tcl::pTk, nor in a reproducible manner. It is when the system process called "WindowServer" crashes. To my knowledge this can be caused by things like an issue in macOS itself, an issue in a driver (particularly graphics drivers, or third-party drivers not included in macOS), or a hardware problem. But I doubt Tcl::pTk does anything low-level enough to be directly responsible, and I'm not sure whether Tcl/Tk could be responsible.

You may be able to find more information by examining the crash report from the Console app (under "System Diagnostic Reports", look for the WindowServer report with the time that the crash occurred).

Your issue is reproducible, correct? Does it happen on multiple machines? It appears the crash occurs when tests are run (which cpanm normally does when installing). Does the issue only occur when tests are run (i.e. running `make test` from the Tcl::pTk distribution directory), or do similar issues occur when using the installed Tcl::pTk and/or using Tcl/Tk directly?
Subject: Re: [rt.cpan.org #131286] Fail Installing Tcl::pTk on MacOS Mojave Perl 5.30 with Thread
Date: Mon, 13 Jan 2020 09:18:54 +0100
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle ozean <welleozean [...] googlemail.com>
Hi Christopher, thank you for your reply. Indeed, it must be something with the machine, i.e. with my new setup (now I have a dual boot, Mojave+Catalina). I am not able to install Tcl::pTk with any version of Perl I have tried, so it has nothing to do with the threaded version of Perl. I can confirm that an already installed Tcl::pTk version as well as direct Tcl/Tk work fine on the same machine. The crash happens during tests (I could not make out which test exactly, unfortunately). Am Di., 31. Dez. 2019 um 15:01 Uhr schrieb Christopher Alexander Chavez via RT <bug-Tcl-pTk@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=131286 > > > Hi Welle, > > I have not used my Macs in a while or have done much work on Tcl::pTk, and > might not be able to anytime soon. > > I have encountered the kind of issue you describe before, but not when > using > Tcl::pTk, nor in a reproducible manner. It is when the system process > called > "WindowServer" crashes. To my knowledge this can be caused by things like > an > issue in macOS itself, an issue in a driver (particularly graphics > drivers, or > third-party drivers not included in macOS), or a hardware problem. But I > doubt > Tcl::pTk does anything low-level enough to be directly responsible, and > I'm not > sure whether Tcl/Tk could be responsible. > > You may be able to find more information by examining the crash report > from the > Console app (under "System Diagnostic Reports", look for the WindowServer > report with the time that the crash occurred). > > Your issue is reproducible, correct? Does it happen on multiple machines? > It > appears the crash occurs when tests are run (which cpanm normally does when > installing). Does the issue only occur when tests are run (i.e. running > `make > test` from the Tcl::pTk distribution directory), or do similar issues occur > when using the installed Tcl::pTk and/or using Tcl/Tk directly? > >
Any updates on this issue? Did it resolve itself?

I find many similar-sounding reports of Tcl/Tk (specifically when using Tkinter, the Python Tcl/Tk wrapper) causing WindowServer to crash after updating to macOS 10.14.6 (usually with the error "CGSTrackingRegionSetIsEnabled returned CG error…"). Despite the number of people encountering the issue, apparently no one investigated it deeply enough to determine the cause beyond calling it a macOS issue (which I agree it likely is). If this issue is still a problem for you, I would be curious exactly which model of Mac you observed the issue for.
Subject: Re: [rt.cpan.org #131286] Fail Installing Tcl::pTk on MacOS Mojave Perl 5.30 with Thread
Date: Thu, 28 May 2020 13:02:16 +0200
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle ozean <welleozean [...] googlemail.com>
Hi Christopher, this is my Mac: [image: Screenshot 2020-05-28 at 09.39.52.png] Note that I have a dual boot with Catalina. Perl is installed with perlbrew: perl-5.30.0_WITH_THREADS Otherwise, installation of Tcl::pTk keeps failing (last time it just froze the computer). Again, perl 5.26 without threads, it is installed fine. Welle Am Do., 21. Mai 2020 um 23:00 Uhr schrieb Christopher Alexander Chavez via RT <bug-Tcl-pTk@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=131286 > > > Any updates on this issue? Did it resolve itself? > > I find many similar-sounding reports of Tcl/Tk (specifically when using > Tkinter, the Python Tcl/Tk wrapper) causing WindowServer to crash after > updating to macOS 10.14.6 (usually with the error > "CGSTrackingRegionSetIsEnabled > returned CG error…"). Despite the number of people encountering the issue, > apparently no one investigated it deeply enough to determine the cause > beyond > calling it a macOS issue (which I agree it likely is). If this issue is > still a > problem for you, I would be curious exactly which model of Mac you > observed the > issue for. > >
Screenshot 2020-05-28 at 09.39.52.png
I informed the Tk Aqua developers about this report. They believe the issue is likely specific to Tk 8.6.9 and earlier (due to major changes made in 8.6.10), and when compiling Tk for macOS 10.15 but then running it on 10.14. It does not sound like there is much interest on their side to investigate this issue further.

So I would suggest seeing if the issue goes away with Tk 8.6.10, even though 
I'm not sure anything will be done if it doesn't. (If the issue does still exist it might help to obtain the crash log from Console.)
I will go ahead and close this ticket, but please feel free to follow up if this issue needs further investigating.