Welcome to the Monastery | |
PerlMonks |
Re: UPDATE 2: Problem Installing Perl-Tk on macOS Monterey (12.6) with Apple M1 chipby cmv (Chaplain) |
on Oct 07, 2022 at 14:59 UTC ( [id://11147283]=note: print w/replies, xml ) | Need Help?? |
I have verified that this is only an issue with the PNG code provided as part of pTk. I was able to manually run tests on all the rest of the pTk code, which was almost 100% successful, but have not yet had the time to nail down the specific cause of this PNG issue.
Here is where I'm currently at: The offending line, causing the segfault, in the basic.t test file is: my $image = $mw->Photo('-format' => "png", -file => $file);Where: file="~/.cpan/build/Tk-804.036-0/PNG/t/../pngtest.png" When a segmentation fault occurs on a Mac, a *.ips file is created in ~/Library/Logs/DiagnosticReports providing more details on the fault. Stack frame analysis from this data yields:
Since I'm not currently using PNG images for anything in my code, I just stubbed out the two test files and installed pTk via CPAN as you normally would. Everything else seems to be working fine. I would like to eventually figure out why this code segfaults on macOS Monterey (12.6) with Apple M1 chip, and feedback to the PNG group on what needs to be fixed. Any suggestions on what to try next would be welcome! Thanks -Craig
In Section
Seekers of Perl Wisdom
|
|