Subject: | [macOS] |
Date: | Sat, 15 Jun 2019 10:00:09 +0200 |
To: | bug-Tcl-pTk [...] rt.cpan.org |
From: | welle ozean <welleozean [...] googlemail.com> |
I have a GUI application compiled as an executable for macOS (Mojave). On
some machines, I get the following error (I can not replicate it on mine!)
which I thought related to pp/PAR. I've posted the error on the pp/PAR
mailing list too, but people said I should indagate the Tcl::pTk error. I
still think the problem is in the executable. However, I want to trace the
issue back in Tcl::pTk. Where does this message get thrown? It all happens
when a button is clicked or a bind (bound to the same button) is invoked.
The fact that I can not replicate the issue on my machine makes debugging
quite hard.
Tcl::pTk::Error: Illegal division by zero at (eval 183) line 37.
while executing
"if {$catchVal != 0} {
if { $retVal != "_TK_BREAK_\n" } { # BREAK returns
are not errors
return..."
(command bound to event)
Error Started at script/MYPROGRAM.pl line 206.
Stack Trace:
at Tcl/pTk.pm line 923.
eval {...} called at Tcl/pTk.pm line 923
Tcl::pTk::DoOneEvent(Tcl::pTk=SCALAR(0x7fcff0f88698), 0) called at
Tcl/pTk.pm line 906
Tcl::pTk::MainLoop() called at script/MYPROGRAM.pl line 206
require main called at
/Users/we/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/PAR.pm line
645
PAR::_run_member(Archive::Zip::ZipFileMember=HASH(0x7fcfec6621f0), 1)
called at script/main.pl line 26
require main called at
/Users/we/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/PAR.pm line
645
PAR::_run_member(Archive::Zip::ZipFileMember=HASH(0x7fcfec6624d8)) called
at /Users/we/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/PAR.pm
line 432
PAR::import("PAR") called at -e line 585
eval {...} called at -e line 41
__par_pl::BEGIN() called at script/MYPROGRAM.pl line 0
eval {...} called at script/MYPROGRAM.pl line 0
The second variant of the error is:
pTk::Error: Illegal division by zero at (eval 183) line 37.
while executing
"::perl::CODE(0x7fcff141bb28)"
invoked from within
".top161.ttkframe181.ttkbutton183 invoke "
invoked from within
".top161.ttkframe181.ttkbutton183 instate !disabled {
.top161.ttkframe181.ttkbutton183 invoke } "
invoked from within
".top161.ttkframe181.ttkbutton183 instate pressed {
.top161.ttkframe181.ttkbutton183 state !pressed;
.top161.ttkframe181.ttkbutton183 instate !disabled..."
(command bound to event)
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>