Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac 开启 option “show_hit_draw” 后执行识别任务稳定crash #546

Open
XiaoXKKK opened this issue Feb 17, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@XiaoXKKK
Copy link

Image

maa.log


[2025-01-17 15:36:08.287][TRC][Px24690][Tx36911][MessageNotifier.hpp][L19][void MaaNS::MessageNotifier::notify(std::string_view, const json::value &)] | leave, 0ms 
[2025-01-17 15:36:08.289][DBG][Px24690][Tx36911][ChildPipeIOStream.cpp][L83][MaaNS::ChildPipeIOStream::ChildPipeIOStream(const std::filesystem::path &, const std::vector<os_string> &, bool)] [exec_=/opt/homebrew/bin/adb] [args_=["-s","emulator-5554","exec-out","screencap | gzip -1"]] [child_.id()=24786] 
[2025-01-17 15:36:08.360][DBG][Px24690][Tx36911][UnitBase.cpp][L58][std::optional<std::string> MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe(const ProcessArgv &, std::chrono::seconds)] [output.size()=189862] [duration=73ms] 
[2025-01-17 15:36:08.370][INF][Px24690][Tx36911][ControllerAgent.cpp][L767][bool MaaNS::ControllerNS::ControllerAgent::postproc_screenshot(const cv::Mat &)] Resolution changed [raw.cols=1920] [raw.rows=1080] [image_raw_width_=0] [image_raw_height_=0] 
[2025-01-17 15:36:08.371][DBG][Px24690][Tx36911][ControllerAgent.cpp][L797][bool MaaNS::ControllerNS::ControllerAgent::calc_target_image_size()] Re-calc image target size: [image_target_long_side_=0] [image_target_short_side_=720] [image_raw_width_=1920] [image_raw_height_=1080] 
[2025-01-17 15:36:08.371][INF][Px24690][Tx36911][ControllerAgent.cpp][L823][bool MaaNS::ControllerNS::ControllerAgent::calc_target_image_size()] [image_target_width_=1280] [image_target_height_=720] 
[2025-01-17 15:36:08.374][DBG][Px24690][Tx36911][MessageNotifier.hpp][L19][void MaaNS::MessageNotifier::notify(std::string_view, const json::value &)] [notify_=0x102d98000] [notify_trans_arg_=0x0] [msg=Controller.Action.Succeeded] [details={
    "action": "screencap",
    "ctrl_id": 400000002,
    "uuid": "26d0e2b5fed3863d"
}] | enter 
[2025-01-17 15:36:08.374][TRC][Px24690][Tx36911][MessageNotifier.hpp][L19][void MaaNS::MessageNotifier::notify(std::string_view, const json::value &)] | leave, 0ms 

看log应该是识别到了

环境:

  • Python 3.9
  • MaaDebugger 1.7.0
  • MaaFw 3.0.3

Windows下似乎没有这个问题

@MistEO MistEO transferred this issue from MaaXYZ/MaaDebugger Feb 17, 2025
@MistEO MistEO added the bug Something isn't working label Feb 17, 2025
@MistEO
Copy link
Member

MistEO commented Feb 17, 2025

问题原因是 MaaDeps 里面少了 opencv highgui,Windows 好像通过某些奇奇怪怪的方式自动给加上了。

问题影响不大,但是可能会造成 release 包体积大幅增加。等我有空看看到底会增加多少,再决定要不要修复(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants