我的应用是在mac intel时发生这个问题,从dump看程序一直卡在mmap_locked,不知要怎么修改 程序dump如下
我在PySide6项目中使用pyobject调用WkWebView程序卡死
Sadly, I don’t read Chinese, so I’m replying here based on a machine translation of your question.
Note that you’re not stuck in mmap_locked
, but rather dlmmap_locked
. This is part of libffi, which is included in the Darwin open source. See here.
This is gonna be tricky because, as explained in the comments for that code, its aim is to create a block of memory that’s both executable and writeable. Modern versions of macOS try really hard to prevent that, for obvious security reasons.
However, in my experience such problems usually manifest as an error rather than with your app getting stuck. To work out what’s going on there I need a full spin dump. Generate this like so:
% sudo spindump PID
where PID
is the process ID of your app.
The spin dump will likely be too large to post here, so upload it to your favourite file sharing service and post a link. See tip 14 in Quinn’s Top Ten DevForums Tips for advice on how to post links.
IMPORTANT Make sure the link doesn’t require me to log in.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"