[TOC]
概述 QNN初始化失败 在使用QNN1.15的时候出现模型初始化失败的问题。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 # push default.cfg to /var/log/ # start to capture DSP Logs DiagPortChangeTest --mode=ondevice --logfilesize=15mb --logdir=/var/log/analyzer --config=/var/log/default.cfg --maxdiskspace=1gb # Run the code to reproduce the issue # Stop to capture logs after reproduces DiagPortChangeTest --mode=null # pull the log from device /var/log/analyzer/ondevice_logging/the folder xxxxx #
排查程序:https://ecloud.baidu.com/index.html#/person/652353762
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 1970-01-01 10:19:03.188 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[13], powerLevel[3] 1970-01-01 10:19:03.188 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.188 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.188 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[11], powerLevel[3] 1970-01-01 10:19:03.189 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: success [0] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.189 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[5], powerLevel[3] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.189 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[19], powerLevel[3] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.189 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[7], powerLevel[3] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.189 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[3], powerLevel[3] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.189 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.190 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[17], powerLevel[3] 1970-01-01 10:19:03.190 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.190 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.190 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[1], powerLevel[3] 1970-01-01 10:19:03.190 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel failed, powerConfigIdInited[0] 1970-01-01 10:19:03.190 2 VisionDemo [ERROR] QnnPredictor(4000): free context error!!!! Could not free context,ret = 5002 1970-01-01 10:19:03.190 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[32], powerLevel[3] 1970-01-01 10:19:49.354 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[183], powerLevel[0] 1970-01-01 10:19:49.355 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: success [0] 1970-01-01 10:19:49.355 2 VisionDemo [INFO ] QnnPredictor(4000): init model: face_mouth_landmark from BinaryBuffer 1970-01-01 10:19:49.355 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[184], powerLevel[0] 1970-01-01 10:19:49.356 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: [13003] 1970-01-01 10:19:49.356 2 VisionDemo [ERROR] QnnPredictor(4000): QnnPredictor init setPowerLevel Error ret=13 1970-01-01 10:19:49.356 2 VisionDemo [ERROR] VisionInitializer: Init predictor with model_id=face_mouth_landmark, infer_type=4000 FAILED! 1970-01-01 10:19:49.356 2 VisionDemo [DEBUG] VisionInitializer: model version: eyeCenter230518V11FP16 1970-01-01 10:19:49.368 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[185], powerLevel[0] 1970-01-01 10:19:49.369 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: [13003] 1970-01-01 10:19:49.369 2 VisionDemo [ERROR] QnnPredictor(4000): QnnPredictor init setPowerLevel Error ret=13 1970-01-01 10:19:49.369 2 VisionDemo [ERROR] VisionInitializer: Init predictor with model_id=face_eye_center, infer_type=4000 FAILED! 1970-01-01 10:19:49.369 2 VisionDemo [DEBUG] VisionInitializer: model version: HandPhoneDetection230607V15MainFP16 1970-01-01 10:19:49.389 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[186], powerLevel[0] 1970-01-01 10:19:49.390 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: [13003] 1970-01-01 10:19:49.390 2 VisionDemo [ERROR] QnnPredictor(4000): QnnPredictor init setPowerLevel Error ret=13 1970-01-01 10:19:49.390 2 VisionDemo [ERROR] VisionInitializer: Init predictor with model_id=gesture_rect, infer_type=4000 FAILED! 1970-01-01 10:19:49.390 2 VisionDemo [DEBUG] VisionInitializer: model version: HeadShoulder20230424MainFP16 1970-01-01 10:19:49.408 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[187], powerLevel[0] 1970-01-01 10:19:49.409 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: [13003] 1970-01-01 10:19:49.409 2 VisionDemo [ERROR] QnnPredictor(4000): QnnPredictor init setPowerLevel Error ret=13 1970-01-01 10:19:49.409 2 VisionDemo [ERROR] VisionInitializer: Init predictor with model_id=head_shoulder, infer_type=4000 FAILED! 1970-01-01 10:19:49.409 2 VisionDemo [DEBUG] VisionInitializer: model version: BodyLandmark20230809MainV1QATFP16 1970-01-01 10:19:49.433 2 VisionDemo [INFO ] QnnPredictor(4000): setPowerLevel powerConfigId[188], powerLevel[0] 1970-01-01 10:19:49.433 2 VisionDemo [ERROR] QnnPredictor(4000): setPowerLevel Perf Infra set power config return: [13003] 1970-01-01 10:19:49.433 2 VisionDemo [ERROR] QnnPredictor(4000): QnnPredictor init setPowerLevel Error ret=13 1970-01-01 10:19:49.434 2 VisionDemo [ERROR] VisionInitializer: Init predictor with model_id=body_landmark, infer_type=4000 FAILED! 1970-01-01 10:19:49.452 2 VisionDemo [WARN ] VisionInitializer: Register 11 models successfully! 1970-01-01 10:19:49.452 2 VisionDemo [ERROR] VisionInitializer: Register 5 models FAILED! init failed ret: 3