-
Notifications
You must be signed in to change notification settings - Fork 182
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
java调用postPipeline无法执行customAction #501
Comments
将 2024-12-29T10:14:23.957+08:00 INFO 3891 --- [maa-random-dice] [ Thread-2] c.s.m.random.dice.handler.StartHandler : Screenshot time:5019, result:TaskDetail(taskId=100000001, entry=screenshot, nodeDetails=[NodeDetail(nodeId=200000001, name=screenshot, completed=true, recognition=RecognitionDetail(recoId=0, name=screenshot, hitBox=Rect(x=0, y=0, w=0, h=0), bestResult=null, allResultList=[], filteredResultList=[], algorithm=DIRECT_HIT, rawDetailJson=null, rawDetail=null, rawImage=null, drawImages=[]))], status=io.github.hanhuoer.maa.core.util.Status@263628db) |
发下 debug/maa.log cc @hanhuoer |
日志没报异常
下面是执行日志
2024-12-29T10:19:25.956+08:00 INFO 4407 --- [maa-random-dice] [ main] c.s.m.r.dice.MaaFishJavaApplication : Starting MaaFishJavaApplication using Java 17.0.10 with PID 4407 (/Users/cgb/IdeaProjects/maa-random-dice/target/classes started by cgb in /Users/cgb/IdeaProjects/maa-random-dice)
2024-12-29T10:19:25.958+08:00 INFO 4407 --- [maa-random-dice] [ main] c.s.m.r.dice.MaaFishJavaApplication : No active profile set, falling back to 1 default profile: "default"
2024-12-29T10:19:29.014+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : [maa] set logDir: resources/maa/debug, result: true
2024-12-29T10:19:29.015+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : [maa] set recording: false, result: true
2024-12-29T10:19:29.015+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : [maa] set debugMessage: false, result: true
2024-12-29T10:19:29.016+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : [maa] set saveDraw: false, result: true
2024-12-29T10:19:29.016+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : [maa] set stdoutLevel: INFO, result: true
[2024-11-29 10:19:29.016][INF][Px4407][Tx24025][GlobalOptionMgr.cpp][L72][bool MaaNS::GlobalOptionMgr::set_show_hit_draw(MaaOptionValue, MaaOptionValueSize)] Set show_hit_draw [show_hit_draw_=false]
2024-12-29T10:19:29.016+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : [maa] set showHitDraw: false, result: true
2024-12-29T10:19:29.016+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : Maa v2.3.1 created successfully.
2024-12-29T10:19:29.016+08:00 INFO 4407 --- [maa-random-dice] [ main] io.github.hanhuoer.maa.Maa : adb killer registered.
[2024-11-29 10:19:29.019][INF][Px4407][Tx24025][AdbDeviceFinder.cpp][L123][std::vectorAdbDeviceFinder::Emulator MaaNS::ToolkitNS::AdbDeviceFinder::find_emulators() const] [result=["[emulator.name=MuMuPlayerPro] [emulator.process=3829 MuMuEmulator] "]]
[2024-11-29 10:19:29.019][INF][Px4407][Tx24025][LibraryHolder.h][L64][static bool MaaNS::LibraryHolderMaaNS::AdbControlUnitLibraryHolder::load_library(const std::filesystem::path &) [T = MaaNS::AdbControlUnitLibraryHolder]] Loading library [libname=/Users/cgb/IdeaProjects/maa-random-dice/resources/maa/lib/MaaAdbControlUnit]
[2024-11-29 10:19:29.235][INF][Px4407][Tx24025][ControlUnit.cpp][L22][bool MaaNS::check_version(const std::string &) [ControlUnitT = MaaNS::AdbControlUnitLibraryHolder, GetVersionT = const char *()]] N5MaaNS27AdbControlUnitLibraryHolderE Library version: v2.3.1
[2024-11-29 10:19:29.266][INF][Px4407][Tx24025][DeviceList.cpp][L53][std::optional<std::vectorstd::string> MaaNS::CtrlUnitNs::DeviceList::request_devices()] [devices=["emulator-5554"]]
[2024-11-29 10:19:29.266][INF][Px4407][Tx24025][ControlUnit.cpp][L22][bool MaaNS::check_version(const std::string &) [ControlUnitT = MaaNS::AdbControlUnitLibraryHolder, GetVersionT = const char *()]] N5MaaNS27AdbControlUnitLibraryHolderE Library version: v2.3.1
[2024-11-29 10:19:29.286][INF][Px4407][Tx24025][Connection.cpp][L90][bool MaaNS::CtrlUnitNs::Connection::connect_remote()] unable to connect
[2024-11-29 10:19:29.286][INF][Px4407][Tx24025][Connection.cpp][L41][bool MaaNS::CtrlUnitNs::Connection::connect()] failed to connect remote
[2024-11-29 10:19:29.286][ERR][Px4407][Tx24025][ControlUnitMgr.cpp][L55][virtual bool MaaNS::CtrlUnitNs::ControlUnitMgr::connect()] failed to connect [adb_path_=/Applications/MuMuPlayer.app/Contents/MacOS/MuMuEmulator.app/Contents/MacOS/tools/adb] [adb_serial_=127.0.0.1:16384]
[2024-11-29 10:19:29.286][INF][Px4407][Tx24025][ControlUnit.cpp][L22][bool MaaNS::check_version(const std::string &) [ControlUnitT = MaaNS::AdbControlUnitLibraryHolder, GetVersionT = const char *()]] N5MaaNS27AdbControlUnitLibraryHolderE Library version: v2.3.1
[2024-11-29 10:19:29.310][INF][Px4407][Tx24025][Connection.cpp][L95][bool MaaNS::CtrlUnitNs::Connection::connect_remote()] connected
[2024-11-29 10:19:29.342][WRN][Px4407][Tx24025][ControlUnitMgr.cpp][L72][virtual bool MaaNS::CtrlUnitNs::ControlUnitMgr::connect()] screencap_methods_ is MaaAdbScreencapMethod_None
[2024-11-29 10:19:29.342][WRN][Px4407][Tx24025][ControlUnitMgr.cpp][L88][virtual bool MaaNS::CtrlUnitNs::ControlUnitMgr::connect()] input_methods_ is MaaAdbInputMethod_None
[2024-11-29 10:19:29.342][INF][Px4407][Tx24025][ControlUnit.cpp][L22][bool MaaNS::check_version(const std::string &) [ControlUnitT = MaaNS::AdbControlUnitLibraryHolder, GetVersionT = const char *()]] N5MaaNS27AdbControlUnitLibraryHolderE Library version: v2.3.1
[2024-11-29 10:19:29.384][WRN][Px4407][Tx24025][ControlUnitMgr.cpp][L72][virtual bool MaaNS::CtrlUnitNs::ControlUnitMgr::connect()] screencap_methods_ is MaaAdbScreencapMethod_None
[2024-11-29 10:19:29.384][WRN][Px4407][Tx24025][ControlUnitMgr.cpp][L88][virtual bool MaaNS::CtrlUnitNs::ControlUnitMgr::connect()] input_methods_ is MaaAdbInputMethod_None
[2024-11-29 10:19:29.385][INF][Px4407][Tx24025][AdbDeviceFinder.cpp][L61][std::vector MaaNS::ToolkitNS::AdbDeviceFinder::find() const] [result=["[device.name=MuMuPlayerPro] [device.adb_path="/Applications/MuMuPlayer.app/Contents/MacOS/MuMuEmulator.app/Contents/MacOS/tools/adb"] [device.serial=127.0.0.1:16416] [device.screencap_methods=18446744073709551559] [device.input_methods=18446744073709551607] [device.config={\n}] ","[device.name=MuMuPlayerPro] [device.adb_path="/Applications/MuMuPlayer.app/Contents/MacOS/MuMuEmulator.app/Contents/MacOS/tools/adb"] [device.serial=emulator-5554] [device.screencap_methods=18446744073709551559] [device.input_methods=18446744073709551607] [device.config={\n}] "]]
[2024-11-29 10:19:29.448][INF][Px4407][Tx24025][ControlUnit.cpp][L22][bool MaaNS::check_version(const std::string &) [ControlUnitT = MaaNS::AdbControlUnitLibraryHolder, GetVersionT = const char *()]] N5MaaNS27AdbControlUnitLibraryHolderE Library version: v2.3.1
[2024-11-29 10:19:29.523][INF][Px4407][Tx59631][Connection.cpp][L95][bool MaaNS::CtrlUnitNs::Connection::connect_remote()] connected
[2024-11-29 10:19:29.554][WRN][Px4407][Tx59631][ScreencapAgent.cpp][L46][MaaNS::CtrlUnitNs::ScreencapAgent::ScreencapAgent(MaaAdbScreencapMethod, const std::filesystem::path &)] EmulatorExtras is not supported on this platform
[2024-11-29 10:19:29.554][INF][Px4407][Tx59631][ScreencapAgent.cpp][L50][MaaNS::CtrlUnitNs::ScreencapAgent::ScreencapAgent(MaaAdbScreencapMethod, const std::filesystem::path &)] [methods=18446744073709551575] [method_set=["MinicapDirect","RawWithGzip","Encode","EncodeToFileAndPull"]] [agent_path=/Users/cgb/IdeaProjects/maa-random-dice/resources/maa/agent]
[2024-11-29 10:19:29.707][INF][Px4407][Tx59631][ScreencapAgent.cpp][L223][std::shared_ptr MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()] Testing EncodeToFileAndPull
[2024-11-29 10:19:32.762][INF][Px4407][Tx59631][ScreencapAgent.cpp][L207][auto MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()::(anonymous class)::operator()(Method, std::chrono::steady_clock::time_point) const] [method=EncodeToFileAndPull] [duration=3054ms]
[2024-11-29 10:19:32.762][INF][Px4407][Tx59631][ScreencapAgent.cpp][L223][std::shared_ptr MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()] Testing Encode
[2024-11-29 10:19:36.607][INF][Px4407][Tx59631][ScreencapHelper.cpp][L52][std::optionalcv::Mat MaaNS::CtrlUnitNs::ScreencapHelper::process_data(std::string &, std::function<std::optionalcv::Mat (const std::string &)>)] end_of_line is LF
[2024-11-29 10:19:36.608][INF][Px4407][Tx59631][ScreencapAgent.cpp][L207][auto MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()::(anonymous class)::operator()(Method, std::chrono::steady_clock::time_point) const] [method=Encode] [duration=3845ms]
[2024-11-29 10:19:36.608][INF][Px4407][Tx59631][ScreencapAgent.cpp][L223][std::shared_ptr MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()] Testing RawWithGzip
[2024-11-29 10:19:37.530][INF][Px4407][Tx59631][ScreencapHelper.cpp][L52][std::optionalcv::Mat MaaNS::CtrlUnitNs::ScreencapHelper::process_data(std::string &, std::function<std::optionalcv::Mat (const std::string &)>)] end_of_line is LF
[2024-11-29 10:19:37.531][INF][Px4407][Tx59631][ScreencapAgent.cpp][L207][auto MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()::(anonymous class)::operator()(Method, std::chrono::steady_clock::time_point) const] [method=RawWithGzip] [duration=922ms]
[2024-11-29 10:19:37.531][INF][Px4407][Tx59631][ScreencapAgent.cpp][L237][std::shared_ptr MaaNS::CtrlUnitNs::ScreencapAgent::speed_test()] The fastest method is RawWithGzip [cost=922ms]
[2024-11-29 10:19:37.531][INF][Px4407][Tx59631][InputAgent.cpp][L35][MaaNS::CtrlUnitNs::InputAgent::InputAgent(MaaAdbInputMethod, const std::filesystem::path &)] [methods=18446744073709551607] [method_vector=["Maatouch","MinitouchAndAdbKey","AdbShell"]] [agent_path=/Users/cgb/IdeaProjects/maa-random-dice/resources/maa/agent]
[2024-11-29 10:19:38.625][INF][Px4407][Tx59631][MtouchHelper.cpp][L29][bool MaaNS::CtrlUnitNs::MtouchHelper::read_info()] [info= 10 1080 1920 255
]
[2024-11-29 10:19:38.849][INF][Px4407][Tx59631][MtouchHelper.cpp][L50][bool MaaNS::CtrlUnitNs::MtouchHelper::read_info()] [display_width_=1080] [display_height_=1920] [touch_width_=1080] [touch_height_=1920] [xscale_=1] [yscale_=1] [press_=255] [orientation_=0]
[2024-11-29 10:19:38.915][INF][Px4407][Tx24025][ResourceMgr.cpp][L50][virtual MaaResId MaaNS::ResourceNS::ResourceMgr::post_path(const std::filesystem::path &)] [path=/Users/cgb/IdeaProjects/maa-random-dice/resources]
[2024-11-29 10:19:38.915][INF][Px4407][Tx8009][ResourceMgr.cpp][L265][static const std::unordered_set &MaaNS::ResourceNS::ResourceMgr::available_providers()] [all_providers_vec=["CoreMLExecutionProvider","CPUExecutionProvider"]]
[2024-11-29 10:19:38.915][INF][Px4407][Tx8009][ResourceMgr.cpp][L293][static const std::unordered_set &MaaNS::ResourceNS::ResourceMgr::available_providers()] [s_provider_cache=[3,1]]
[2024-11-29 10:19:38.915][INF][Px4407][Tx8009][ONNXResMgr.cpp][L94][void MaaNS::ResourceNS::ONNXResMgr::use_coreml(uint32_t)] [coreml_flag=4]
[2024-11-29 10:19:38.915][INF][Px4407][Tx8009][ONNXResMgr.cpp][L107][void MaaNS::ResourceNS::ONNXResMgr::use_coreml(uint32_t)] Using CoreML execution provider
[2024-11-29 10:19:38.915][INF][Px4407][Tx8009][OCRResMgr.cpp][L47][void MaaNS::ResourceNS::OCRResMgr::use_coreml(uint32_t)] [coreml_flag=4]
[2024-11-29 10:19:38.915][WRN][Px4407][Tx8009][OCRResMgr.cpp][L51][void MaaNS::ResourceNS::OCRResMgr::use_coreml(uint32_t)] OCR REC with CoreML is very poor. I don’t know the reason yet. Roll back to using CPU for REC. (DET still uses CoreML)
[2024-11-29 10:19:38.916][INF][Px4407][Tx8009][ResourceMgr.cpp][L523][bool MaaNS::ResourceNS::ResourceMgr::load(const std::filesystem::path &)] [path=/Users/cgb/IdeaProjects/maa-random-dice/resources] [ret=true]
[2024-11-29 10:19:38.917][INF][Px4407][Tx8009][ResourceMgr.cpp][L147][std::string MaaNS::ResourceNS::ResourceMgr::calc_hash()] [hash_cache_=7fb0ea9171d2c4b5]
2024-12-29T10:19:38.960+08:00 INFO 4407 --- [maa-random-dice] [ main] c.s.m.r.dice.MaaFishJavaApplication : Started MaaFishJavaApplication in 13.155 seconds (process running for 13.633)
2024-12-29T10:19:38.965+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [0, 0] = [150, 700]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [0, 1] = [230, 700]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [0, 2] = [310, 700]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [0, 3] = [390, 700]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [0, 4] = [470, 700]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [1, 0] = [150, 780]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [1, 1] = [230, 780]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [1, 2] = [310, 780]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [1, 3] = [390, 780]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [1, 4] = [470, 780]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [2, 0] = [150, 860]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [2, 1] = [230, 860]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [2, 2] = [310, 860]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [2, 3] = [390, 860]
2024-12-29T10:19:38.966+08:00 INFO 4407 --- [maa-random-dice] [ main] c.sczfdf.maa.random.dice.bean.RDContext : init_dice_list [2, 4] = [470, 860]
[2024-11-29 10:19:38.970][INF][Px4407][Tx60481][Tasker.cpp][L33][virtual bool MaaNS::Tasker::bind_resource(MaaResource *)] [this=0x125363a00] [resource=0x1250fc800]
[2024-11-29 10:19:38.970][INF][Px4407][Tx60481][Tasker.cpp][L47][virtual bool MaaNS::Tasker::bind_controller(MaaController *)] [this=0x125363a00] [controller=0x109e20e80]
[2024-11-29 10:19:38.972][INF][Px4407][Tx60481][Tasker.cpp][L74][virtual MaaTaskId MaaNS::Tasker::post_pipeline(const std::string &, const json::object &)] [entry=screenshot] [pipeline_override={
"screenshot": {
"action": "Custom",
"custom_action": "screenshotAction",
"post_delay": 0,
"pre_delay": 0
}
}]
[2024-11-29 10:19:38.972][INF][Px4407][Tx37392][Tasker.cpp][L244][bool MaaNS::Tasker::run_task(RunnerId, TaskPtr)] task start: [cb_detail={
"entry": "screenshot",
"hash": "7fb0ea9171d2c4b5",
"task_id": 100000001,
"uuid": "5874c0d3809f79d2"
}]
[2024-11-29 10:19:39.998][INF][Px4407][Tx59631][ControllerAgent.cpp][L767][bool MaaNS::ControllerNS::ControllerAgent::postproc_screenshot(const cv::Mat &)] Resolution changed [raw.cols=1080] [raw.rows=1920] [image_raw_width_=0] [image_raw_height_=0]
[2024-11-29 10:19:39.998][INF][Px4407][Tx59631][ControllerAgent.cpp][L823][bool MaaNS::ControllerNS::ControllerAgent::calc_target_image_size()] [image_target_width_=720] [image_target_height_=1280]
[2024-11-29 10:19:40.000][INF][Px4407][Tx37392][TaskBase.cpp][L129][RecoResult MaaNS::TaskNS::TaskBase::run_recognition(const cv::Mat &, const PipelineData::NextList &)] Task hit [result.name=screenshot] [result.box=[0 x 0 from (0, 0)]]
[2024-11-29 10:19:40.001][INF][Px4407][Tx37392][Tasker.cpp][L256][bool MaaNS::Tasker::run_task(RunnerId, TaskPtr)] task end: [cb_detail={
"entry": "screenshot",
"hash": "7fb0ea9171d2c4b5",
"task_id": 100000001,
"uuid": "5874c0d3809f79d2"
}] [ret=true]
2024-12-29T10:19:43.993+08:00 INFO 4407 --- [maa-random-dice] [ Thread-2] c.s.m.random.dice.handler.StartHandler : Screenshot time:5023, result:TaskDetail(taskId=100000001, entry=screenshot, nodeDetails=[NodeDetail(nodeId=200000001, name=screenshot, completed=true, recognition=RecognitionDetail(recoId=0, name=screenshot, hitBox=Rect(x=0, y=0, w=0, h=0), bestResult=null, allResultList=[], filteredResultList=[], algorithm=DIRECT_HIT, rawDetailJson=null, rawDetail=null, rawImage=null, drawImages=[]))], status=io.github.hanhuoer.maa.core.util.Status@3ad7f42e)
[2024-11-29 10:19:44.000][INF][Px4407][Tx60481][Tasker.cpp][L74][virtual MaaTaskId MaaNS::Tasker::post_pipeline(const std::string &, const json::object &)] [entry=screenshot] [pipeline_override={
"screenshot": {
"action": "Custom",
"custom_action": "screenshotAction",
"post_delay": 0,
"pre_delay": 0
}
}]
[2024-11-29 10:19:44.000][INF][Px4407][Tx37392][Tasker.cpp][L244][bool MaaNS::Tasker::run_task(RunnerId, TaskPtr)] task start: [cb_detail={
"entry": "screenshot",
"hash": "7fb0ea9171d2c4b5",
"task_id": 100000002,
"uuid": "5874c0d3809f79d2"
}]
[2024-11-29 10:19:44.947][INF][Px4407][Tx37392][TaskBase.cpp][L129][RecoResult MaaNS::TaskNS::TaskBase::run_recognition(const cv::Mat &, const PipelineData::NextList &)] Task hit [result.name=screenshot] [result.box=[0 x 0 from (0, 0)]]
[2024-11-29 10:19:44.948][INF][Px4407][Tx37392][Tasker.cpp][L256][bool MaaNS::Tasker::run_task(RunnerId, TaskPtr)] task end: [cb_detail={
"entry": "screenshot",
"hash": "7fb0ea9171d2c4b5",
"task_id": 100000002,
"uuid": "5874c0d3809f79d2"
}] [ret=true]
The text was updated successfully, but these errors were encountered: