Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: raysakamoto2019 [...] gmail.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-1.083 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="0000000000007ba5950587935245"
Message-ID: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
X-Received: by 2002:a24:70cd:: with SMTP id f196mr14854238itc.153.1556441697327; Sun, 28 Apr 2019 01:54:57 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.083
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E2B3D24008A for <cpan-bug+Tcl-pTk [...] hipster.bestpractical.com>; Sun, 28 Apr 2019 04:55:04 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W0+qy0nbAyUB for <cpan-bug+Tcl-pTk [...] hipster.bestpractical.com>; Sun, 28 Apr 2019 04:55:03 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id C351A2401F7 for <bug-Tcl-pTk [...] rt.cpan.org>; Sun, 28 Apr 2019 04:55:02 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 5D0647C1A5 for <bug-Tcl-pTk [...] rt.cpan.org>; Sun, 28 Apr 2019 01:55:01 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id B014B7C1C2 for <bug-Tcl-pTk [...] rt.cpan.org>; Sun, 28 Apr 2019 01:54:59 -0700 (PDT)
Received: from mail-it1-f196.google.com (mail-it1-f196.google.com [209.85.166.196]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 07DD47C1A5 for <bug-Tcl-pTk [...] rt.cpan.org>; Sun, 28 Apr 2019 01:54:58 -0700 (PDT)
Received: by mail-it1-f196.google.com with SMTP id a190so12174540ite.4 for <bug-Tcl-pTk [...] rt.cpan.org>; Sun, 28 Apr 2019 01:54:58 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: APXvYqzZBd7pnbH4n45PTBOkhdHrVgIa9ULqS/mYm3arP8SM5UwxKyl35QbC2L+Zzy5k3w0B51qLkeTqrf7PdZxbKvQ=
Delivered-To: cpan-bug+Tcl-pTk [...] hipster.bestpractical.com
Subject: macOS different behaviour at mw creation with newest frameworks
Return-Path: <raysakamoto2019 [...] gmail.com>
X-RT-Mail-Extension: tcl-ptk
X-Original-To: cpan-bug+Tcl-pTk [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=28iia5GhUsK/ENn16ls7hA51h+WXl0QdUTAffaqYyG4=; b=t4mBV056BUI9sG4L5X3S9gHUt1Ln4YhDGFbnoQr8KDZRD8q3+PGihyU5zVDbDbL2fh hzJVoXmD8COVzd+vrwMpBhgZmOqSZDmJzd3JChMfT+6Nwif23+gqB7AOVVVmls5RcUi5 Rj6iU6nxJoOMdqy1y9DwqhGRpYGZTRO99YOnQCoFoOz5WcmAu0fzodeE/ayHxAhu7/WI fBPNoECdGUDEaCtcvfTGkcKKMdlYO1PftaZ3srqHvL1DtCSzlbNOMQhn6kB4bM0lSA+I CaBLuv6149c0YF5a+ZUIG5SN9SueU44Dnv9cPs0tgdXM2FtzFx4xl9zzbmUnte1o7JEB MaUw==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=28iia5GhUsK/ENn16ls7hA51h+WXl0QdUTAffaqYyG4=; b=G+LH0luh5gKBcmp+y7A/5yKfDMAjEBxwRlGVt+1OE2B7bkGLvC7PjaI+uKZ20bFFIH 8wyP6WWac7BkTlcJ4zULq/KTnHskU6yaAkJHF5zO7Ujm0nyTTKQ9z/Gtoldy14FKJH1G GLJsAb0S8keQ2sYsYiQX7IOHLQmcFnXBYLQSCTs4NxTSMY5WrP1onuuTikqAarDJl1xa RIQP6tsADWeVAUctjAW2r5ztWRShsHohF1N4cu0olv+xTIOfXH0AJCaSluCvN2CHSeWo 6VfCtQsNMlT9jLi5IZMBs6nXBnCBJ+O9SMYmILH1uH98MpKt4M91wh1NQkig/huFHvRX wCyQ==
X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' TK_TLD 0.3, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, HREF_LABEL_TEXT_ONLY 0, NO_URI_HTTPS 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BODY_TEXT_X4 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HREF_LABEL_TEXT 0, __HREF_LABEL_URI 0, __HTML_AHREF_TAG 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __SINGLE_URI_MPART_BOTH 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Sun, 28 Apr 2019 10:54:46 +0200
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.4.28.84815
To: bug-Tcl-pTk [...] rt.cpan.org
From: ray sakamoto <raysakamoto2019 [...] gmail.com>
X-GM-Message-State: APjAAAXLizfD1LLh6g31M6bva3uJUznkdYmnlcoDy4THQq52R+mqrIMm 2glXUiQ8V/Kd3GFe9vC7gxT690aVlaJDxnCYMuCpJ04G3NVEog==
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1440
Download (untitled) / with headers
text/plain 1.4k
Hello, I am moving from Tcl/Tk 8.6.9 to the latest available trunk since it solves some big problems on Mojave, such as fullscreen support. However, using for example the same basic script (see below) to show the linked Tcl/Tk version, I noticed a different behaviour which I am not able to link to Tcl::pTK or to the newest frameworks. When I launch the script, I immediately see an (empty) main window of a fix size (probably the default size), then, after a fraction of second, I see the window enlarge to fit its content. With the older frameworks, I could only see the final window. I guess something takes more time to be loaded now, and this causes this delay effect which is quite disturbing. use Tcl::pTk; my $int = new Tcl::pTk; $int->Eval(<<'EOS'); # pure-tcl code to create widgets (e.g. generated by some GUI builder) text .e ## http://wiki.tcl.tk/1626#tk_version .e insert end "tcl_version $tcl_version\n" .e insert end "tcl_patchLevel $tcl_patchLevel\n" .e insert end "tk_version $tk_version\n" .e insert end "tk_patchLevel $tk_patchLevel\n" .e insert end "tk_library $tk_library\n" pack .e EOS my $e = $int->widget('.e'); # get .e entry into play $e->insert( "end", " Tcl::pTk $Tcl::pTk::VERSION Tcl $Tcl::VERSION \$^V $^V \$] $] "); $int->MainLoop; As the new Tcl/Tk will become the facto the official release any time soon, I think somebody could have a look at this strange behaviour. Ray
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1985
MIME-Version: 1.0
In-Reply-To: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
Content-Type: text/html; charset="utf-8"
Message-ID: <rt-4.0.18-18256-1556478817-1531.129347-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1537
Hi Ray,

I decided to finally try out Tk core-8-6-branch on aqua to look into this issue. I can confirm your observation, but I believe it is an upstream issue.

To refine what the issue is: an empty window now appears immediately after doing package require Tk (which is part of what MainWindow->new or Tcl::pTk->new does); whereas previously no window appeared until Tcl::DoOneEvent() starts getting called (which is what MainLoop() does). This is not specific to Tcl::pTk.

I have opened an upstream ticket to see what the cause is and whether this is intentional: https://core.tcl.tk/tk/tktview?name=d1989fb7c
. At a minimum it is now inconsistent with behavior on other windowing systems. I would probably have to bisect the changes in order to figure out the cause by myself.

Comparing side by side, it doesn't appear that something is taking more time to load; the final result appears in almost exactly the same amount of time, just that an empty window now appears briefly during that time.

MIME-Version: 1.0
In-Reply-To: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
Content-Type: text/html; charset="utf-8"
Message-ID: <rt-4.0.18-21672-1556508321-1621.129347-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 718
I've identified the change that is responsible for this behavior: https://core.tcl.tk/tk/info/5e709226cc664f61

Apparently it is to address a bug that was reported: https://core.tcl.tk/tk/info/56a1823c73

Not sure if the specific approach used was needed to resolve that bug, or if it is more of a rough workaround, and might be resolved in a way that does not introduce the behavior you reported. I would suggest adding a comment to the upstream ticket to CC yourself and be notified of any updates.
MIME-Version: 1.0
In-Reply-To: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CANnm6=yPjhCwxX_9sYex2YLiEapis_FKTRS8PrJcL+TRSEsjfw [...] mail.gmail.com>
Content-Type: text/html; charset="utf-8"
Message-ID: <rt-4.0.18-24384-1574732475-27.129347-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 136
The upstream ticket I created was closed, and I am assuming the issue remains resolved as of the Tk 8.6.10, so I will close this ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.