Error raised when getting performance data

While I could get networkinfo and batteryinfo, but I cannot get cpuinfo and memoryinfo.
I attached server log, successed performance data and raised error logs.

Server log:

Successed performance data:

Getting cpuinfo raises this error:

WebDriverException(“An unknown server-side error occurred while processing the command. Original error: Unable to parse cpu usage data for ‘app.pkg.name’. Check the server log for more details”, None, [“UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to parse cpu usage data for ‘app.pkg.name’. Check the server log for more details”, ’ at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)‘, ’ at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)’])

Getting memoryinfo raises this error:

WebDriverException(“An unknown server-side error occurred while processing the command. Original error: Unable to parse memory data: ‘Native Heap 57630 57320 276 46 58512 74100 69536 4563\n Dalvik Heap 30199 29260 28 26 31724 53384 28808 24576\n Dalvik Other 20304 17424 0 0 23536 \n EGL mtrack 4503 4503 0 0 4503 \n GL mtrack 12707 12707 0 0 12707 \n TOTAL 300163 239930 44940 217 372414 127484 98344 29139\n Native Heap: 57320 58512\n TOTAL PSS: 300163 TOTAL RSS: 372414 TOTAL SWAP PSS: 217’”, None, [“UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to parse memory data: 'Native Heap 57630 57320 276 46 58512 74100 69536 4563”, ’ Dalvik Heap 30199 29260 28 26 31724 53384 28808 24576’, ’ Dalvik Other 20304 17424 0 0 23536 ‘, ’ EGL mtrack 4503 4503 0 0 4503 ‘, ’ GL mtrack 12707 12707 0 0 12707 ‘, ’ TOTAL 300163 239930 44940 217 372414 127484 98344 29139’, ’ Native Heap: 57320 58512’, " TOTAL PSS: 300163 TOTAL RSS: 372414 TOTAL SWAP PSS: 217’", ’ at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)‘, ’ at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)’])

Appium-Python-Client version:
2.1.2

Appium version:

1.22.1

Appium doctor:

info AppiumDoctor Appium Doctor v.1.16.0
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
info AppiumDoctor :heavy_check_mark: The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor :heavy_check_mark: Node version is 17.2.0
info AppiumDoctor :heavy_check_mark: Xcode is installed at: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor :heavy_check_mark: Xcode Command Line Tools are installed in: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor :heavy_check_mark: DevToolsSecurity is enabled.
info AppiumDoctor :heavy_check_mark: The Authorization DB is set up properly.
info AppiumDoctor :heavy_check_mark: Carthage was found at: /usr/local/bin/carthage. Installed version is: 0.38.0
info AppiumDoctor :heavy_check_mark: HOME is set to: /Users/user
info AppiumDoctor :heavy_check_mark: ANDROID_HOME is set to: /Users/user/Library/Android/sdk
info AppiumDoctor :heavy_check_mark: JAVA_HOME is set to: /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
info AppiumDoctor Checking adb, android, emulator
info AppiumDoctor ‘adb’ is in /Users/user/Library/Android/sdk/platform-tools/adb
info AppiumDoctor ‘android’ is in /Users/user/Library/Android/sdk/tools/android
info AppiumDoctor ‘emulator’ is in /Users/user/Library/Android/sdk/emulator/emulator
info AppiumDoctor :heavy_check_mark: adb, android, emulator exist: /Users/user/Library/Android/sdk
info AppiumDoctor :heavy_check_mark: ‘bin’ subfolder exists under ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home’
info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor ### Diagnostic for optional dependencies starting ###
info AppiumDoctor :heavy_check_mark: opencv4nodejs is installed at: /usr/local/lib. Installed version is: 5.6.0
info AppiumDoctor :heavy_check_mark: ffmpeg is installed at: /usr/local/bin/ffmpeg. ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
info AppiumDoctor :heavy_check_mark: mjpeg-consumer is installed at: /usr/local/lib. Installed version is: 2.0.0
info AppiumDoctor :heavy_check_mark: set-simulator-location is installed
info AppiumDoctor :heavy_check_mark: idb and idb_companion are installed
info AppiumDoctor :heavy_check_mark: applesimutils is installed at: /usr/local/bin/applesimutils. Installed versions are: applesimutils 0.9.4
info AppiumDoctor :heavy_check_mark: ios-deploy is installed at: /usr/local/bin/ios-deploy. Installed version is: 1.11.4
info AppiumDoctor :heavy_check_mark: bundletool.jar is installed at: /Users/user/Library/Android/sdk/build-tools/bundletool.jar
info AppiumDoctor :heavy_check_mark: gst-launch-1.0 and gst-inspect-1.0 are installed at: /usr/local/bin/gst-launch-1.0 and /usr/local/bin/gst-inspect-1.0
info AppiumDoctor ### Diagnostic for optional dependencies completed, no fix possible. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor

Android device information:

marketName: Galaxy A21s
name: SM-A217N
platform: Android