Langer, Stephen A. (Fed)
stephen.langer at nist.gov
Wed Dec 15 00:04:00 UTC 2021
On 12/13/21, 1:08 PM, "Ryan Schmidt" <ryandesign at macports.org> wrote:
On Dec 11, 2021, at 15:15, Langer, Stephen A. (Fed) wrote:
> On 12/11/21, 9:00 AM, Ryan Schmidt wrote:
>> On Dec 10, 2021, at 13:51, Langer, Stephen A. (Fed) wrote:
>>> Is anyone running gtk3 programs on an M1 or on Monterey? The following simple script crashes on an M1 Mini with Monterey, when run with python 2.7:
>>> import gi
>>> gi.require_version("Gtk", "3.0")
>>> from gi.repository import Gtk
>>> window = Gtk.Window(Gtk.WindowType.TOPLEVEL, title="test")
>>> The error message is "Trace/BPT trap: 5".
>>> The same program runs without error on an Intel CPU and Big Sur. Unfortunately I can't change the OS on either machine so I can't tell if the problem is due to the OS or the processor, or both.
>> Probably the first diagnostic step should be to look into the crash report. If it doesn't help you figure out the problem, you could send it here; maybe someone here can decipher it. Look for the log in ~/Library/Logs/DiagnosticReports.
> I've attached the log file. It's not telling me anything useful, but I would be delighted to be educated.
It says a buffer overflow was detected and it gives the stack trace showing what functions were called that led to the problem. I'm not an expert in python or gtk internals but maybe if you report it to the gtk developers they will know how to fix it.
Ok, I'll try my luck with them. I thought that that particular combination of os, cpu, and ports would be common here, and someone could tell me if it works for them, so I'd know if there is something wrong with my setup.
More information about the macports-users