PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.95k stars 1.61k forks source link

Caused by: java.lang.RuntimeException #9330

Closed Javacr closed 8 months ago

Javacr commented 2 years ago

按照https://paddle-lite.readthedocs.io/zh/develop/user_guides/java_demo.html 所给步骤,运行两种版本都报错。 第一次按照这个教程中走,每一步都一样,手机是arm64-v8a架构,按理来说,直接跟着教程走就行,所以下载的文件是跟教程贴的链接下的,下载后解压得到 inference_lite_lib.android.armv8.gcc.c++_static 文件夹,然后按照教程下载模型,得到一堆压缩包,解压后每个文件夹都包含 param.nb__model__.nb,将所有解压的文件夹放到 assets 中。运行后报错:


08/09 19:37:01: Launching 'app' on OnePlus LE2100.
Install successfully finished in 161 ms.
$ adb shell am start -n "com.baidu.paddle.lite/com.baidu.paddle.lite.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.baidu.paddle.lite
Connected to process 31472 on device 'oneplus-le2100-4fd40994'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/libc: SetHeapTaggingLevel: tag level set to 0
I/idu.paddle.lit: Late-enabling -Xcheck:jni
E/idu.paddle.lit: Unknown bits set in runtime_flags: 0x40000000
D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
I/OneTrace: Mark active for pid=31472? true
D/cutils-dev: otrace_set_tracing_enabled? true
D/cutils-dev: properties changed in otrace_seq_number_changed!
V/studio.deploy: Startup agent attached to VM
V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-1f2f27f8.jar
W/idu.paddle.lit: DexFile /data/data/com.baidu.paddle.lite/code_cache/.studio/instruments-1f2f27f8.jar is in boot class path but is not in a known location
V/studio.deploy: Applying transforms with cached classes
W/idu.paddle.lit: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
W/idu.paddle.lit: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10354; state: DISABLED
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusAutoResolutionFeature
I/oplus.android.OplusFrameworkFactoryImpl: getOplusAutoResolutionFeature
D/CompactWindowAppManager: initCompactApplicationInfo 
W/ActivityThread: Application com.baidu.paddle.lite is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
Connecting to com.baidu.paddle.lite
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/libc: SetHeapTaggingLevel: tag level set to 0
I/idu.paddle.lit: Late-enabling -Xcheck:jni
E/idu.paddle.lit: Unknown bits set in runtime_flags: 0x40000000
D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
I/OneTrace: Mark active for pid=31472? true
D/cutils-dev: otrace_set_tracing_enabled? true
D/cutils-dev: properties changed in otrace_seq_number_changed!
V/studio.deploy: Startup agent attached to VM
V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-1f2f27f8.jar
W/idu.paddle.lit: DexFile /data/data/com.baidu.paddle.lite/code_cache/.studio/instruments-1f2f27f8.jar is in boot class path but is not in a known location
V/studio.deploy: Applying transforms with cached classes
W/idu.paddle.lit: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
W/idu.paddle.lit: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10354; state: DISABLED
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusAutoResolutionFeature
I/oplus.android.OplusFrameworkFactoryImpl: getOplusAutoResolutionFeature
D/CompactWindowAppManager: initCompactApplicationInfo 
W/ActivityThread: Application com.baidu.paddle.lite is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:56369', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
W/System: A resource failed to call close. 
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1422)
I/OplusFeatureCache: Milliseconds spent on init(): 879
D/LoadedApk: mApplicationInfo overrideDisplayId:null
D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
V/GraphicsEnvironment: ANGLE Developer option for 'com.baidu.paddle.lite' set to: 'default'
V/GraphicsEnvironment: App is not on the allowlist for updatable production driver.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
E/ANR_LOG: >>> msg's executing time is too long
E/ANR_LOG: Blocked msg = { when=-4s333ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{3ea60a0 com.baidu.paddle.lite}} } , cost  = 4256 ms
E/ANR_LOG: >>>Current msg List is:
E/ANR_LOG: Current msg <1> = { when=-4s333ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@1fe4221 }
E/ANR_LOG: Current msg <2> = { when=-4s332ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@18066215 }
E/ANR_LOG: Current msg <3> = { when=-4s331ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@151b1404 }
E/ANR_LOG: Current msg <4> = { when=-4s330ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@151a9fa5 }
E/ANR_LOG: Current msg <5> = { when=-4s329ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@97675c43 }
E/ANR_LOG: Current msg <6> = { when=-4s319ms what=0 target=android.app.ActivityThread$H callback=com.android.internal.util.function.pooled.PooledLambdaImpl }
E/ANR_LOG: Current msg <7> = { when=-3s827ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@14252741 }
E/ANR_LOG: Current msg <8> = { when=-13ms what=164 target=android.app.ActivityThread$H obj=com.baidu.paddle.lite }
E/ANR_LOG: >>>CURRENT MSG DUMP OVER<<<
E/idu.paddle.lit: Loaded layer handle (15937512823726067017) for layer /my_product/lib64/libcolorx-loader.so
E/idu.paddle.lit: Looking for entrypoint ColorX_Check
E/idu.paddle.lit: Found ColorX_Check for /my_product/lib64/libcolorx-loader.so
E/idu.paddle.lit: Check failed
I/oplus.android.OplusFrameworkFactoryImpl: Unknow feature:IOplusTextViewRTLUtilForUG
D/ScrollOptimizationHelper: can't find the config file for optimizaiton
D/ScrollOptimizationHelper: will not debug for debug is false
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
W/idu.paddle.lit: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
W/idu.paddle.lit: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
E/OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
I/Paddle-Lite: [I  1/20  5: 0:19.714 ...and/Paddle-Lite/lite/core/device_info.cc:1097 Setup] ARM multiprocessors name: HARDWARE : QUALCOMM TECHNOLOGIES, INC SM8250_AC
    _KONA_KONA_
I/Paddle-Lite: [I  1/20  5: 0:19.714 ...and/Paddle-Lite/lite/core/device_info.cc:1098 Setup] ARM multiprocessors number: 8
I/Paddle-Lite: [I  1/20  5: 0:19.714 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 0, max freq: 1804, min freq: 1804, cluster ID: 1, CPU ARCH: A55
I/Paddle-Lite: [I  1/20  5: 0:19.714 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 1, max freq: 1804, min freq: 1804, cluster ID: 1, CPU ARCH: A55
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 2, max freq: 1804, min freq: 1804, cluster ID: 1, CPU ARCH: A55
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 3, max freq: 1804, min freq: 1804, cluster ID: 1, CPU ARCH: A55
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 4, max freq: 2419, min freq: 2419, cluster ID: 0, CPU ARCH: A77
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 5, max freq: 2419, min freq: 2419, cluster ID: 0, CPU ARCH: A77
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 6, max freq: 2419, min freq: 2419, cluster ID: 0, CPU ARCH: A77
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 7, max freq: 3187, min freq: 3187, cluster ID: 0, CPU ARCH: A77
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1106 Setup] L1 DataCache size is: 
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 256 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 256 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 256 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 256 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 192 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 192 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 192 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 192 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1110 Setup] L2 Cache size is: 
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 768 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 768 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 768 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 768 KB
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1114 Setup] L3 Cache size is: 
I/Paddle-Lite: [I  1/20  5: 0:19.715 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 4096 KB
I/Paddle-Lite: [I  1/20  5: 0:19.716 ...and/Paddle-Lite/lite/core/device_info.cc:1118 Setup] Total memory: 11790980KB
I/Paddle-Lite: [I  1/20  5: 0:19.717 ...and/Paddle-Lite/lite/core/device_info.cc:491 bind_threads] Set cpu affinity failed, core id: 7
A/Paddle-Lite: [F  1/20  5: 0:19.717 ...island/Paddle-Lite/lite/api/light_api.cc:67 Build] Unknown model type
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 31472 (idu.paddle.lite), pid 31472 (idu.paddle.lite)
Disconnected from the target VM, address: 'localhost:56369', transport: 'socket'

第二次,重新下载了https://paddle-lite.readthedocs.io/zh/develop/quick_start/release_lib.html#android 中新的示例,选择了armv8 clang c++_shared OFF OFF v2.11-rc这个文件,解压缩,按照prepare_demo.bash的命令,自己手动添加文件和下载文件,下载的模型解压后,得到五个.nb模型文件(不再是文件夹),将文件添加到assets中,运行,报错:

08/09 19:22:26: Launching 'app' on OnePlus LE2100.
Install successfully finished in 403 ms.
$ adb shell am start -n "com.baidu.paddle.lite/com.baidu.paddle.lite.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.baidu.paddle.lite
Connected to process 30820 on device 'oneplus-le2100-4fd40994'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/libc: SetHeapTaggingLevel: tag level set to 0
I/idu.paddle.lit: Late-enabling -Xcheck:jni
E/idu.paddle.lit: Unknown bits set in runtime_flags: 0x40000000
D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
I/OneTrace: Mark active for pid=30820? true
D/cutils-dev: otrace_set_tracing_enabled? true
D/cutils-dev: properties changed in otrace_seq_number_changed!
V/studio.deploy: Startup agent attached to VM
V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-1f2f27f8.jar
W/idu.paddle.lit: DexFile /data/data/com.baidu.paddle.lite/code_cache/.studio/instruments-1f2f27f8.jar is in boot class path but is not in a known location
V/studio.deploy: ModifyParameterTransform failed: Landroid/app/ApplicationLoaders;
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
W/idu.paddle.lit: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10354; state: DISABLED
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusAutoResolutionFeature
I/oplus.android.OplusFrameworkFactoryImpl: getOplusAutoResolutionFeature
D/CompactWindowAppManager: initCompactApplicationInfo 
W/ActivityThread: Application com.baidu.paddle.lite is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
Connecting to com.baidu.paddle.lite
Connected to the target VM, address: 'localhost:55010', transport: 'socket'
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/libc: SetHeapTaggingLevel: tag level set to 0
I/idu.paddle.lit: Late-enabling -Xcheck:jni
E/idu.paddle.lit: Unknown bits set in runtime_flags: 0x40000000
D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
I/OneTrace: Mark active for pid=30820? true
D/cutils-dev: otrace_set_tracing_enabled? true
D/cutils-dev: properties changed in otrace_seq_number_changed!
V/studio.deploy: Startup agent attached to VM
V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-1f2f27f8.jar
W/idu.paddle.lit: DexFile /data/data/com.baidu.paddle.lite/code_cache/.studio/instruments-1f2f27f8.jar is in boot class path but is not in a known location
V/studio.deploy: ModifyParameterTransform failed: Landroid/app/ApplicationLoaders;
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
W/idu.paddle.lit: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
W/idu.paddle.lit: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10354; state: DISABLED
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusAutoResolutionFeature
I/oplus.android.OplusFrameworkFactoryImpl: getOplusAutoResolutionFeature
D/CompactWindowAppManager: initCompactApplicationInfo 
W/ActivityThread: Application com.baidu.paddle.lite is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
W/System: A resource failed to call close. 
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1300)
I/OplusFeatureCache: Milliseconds spent on init(): 188
D/LoadedApk: mApplicationInfo overrideDisplayId:null
D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
V/GraphicsEnvironment: ANGLE Developer option for 'com.baidu.paddle.lite' set to: 'default'
V/GraphicsEnvironment: App is not on the allowlist for updatable production driver.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
E/ANR_LOG: >>> msg's executing time is too long
E/ANR_LOG: Blocked msg = { when=-2s984ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{3ea60a0 com.baidu.paddle.lite}} } , cost  = 2704 ms
E/ANR_LOG: >>>Current msg List is:
E/ANR_LOG: Current msg <1> = { when=-2s982ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@38982e81 }
E/ANR_LOG: Current msg <2> = { when=-2s981ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@151b1404 }
E/ANR_LOG: Current msg <3> = { when=-2s736ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@1fe4221 }
E/ANR_LOG: Current msg <4> = { when=-1s975ms what=0 target=android.app.ActivityThread$H callback=android.app.ActivityThread$$ExternalSyntheticLambda1 }
E/ANR_LOG: Current msg <5> = { when=-3ms what=164 target=android.app.ActivityThread$H obj=com.baidu.paddle.lite }
E/ANR_LOG: >>>CURRENT MSG DUMP OVER<<<
I/Quality: ActivityThread: bindApplication delay 2708 com.baidu.paddle.lite 30820
I/Quality: Blocked msg = Package name: com.baidu.paddle.lite [ schedGroup: 5 schedPolicy: 0 ] process the message: { when=-2s988ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{3ea60a0 com.baidu.paddle.lite}} } took 2708 ms
E/idu.paddle.lit: Loaded layer handle (7112271673129150215) for layer /my_product/lib64/libcolorx-loader.so
E/idu.paddle.lit: Looking for entrypoint ColorX_Check
E/idu.paddle.lit: Found ColorX_Check for /my_product/lib64/libcolorx-loader.so
E/idu.paddle.lit: Check failed
I/oplus.android.OplusFrameworkFactoryImpl: Unknow feature:IOplusTextViewRTLUtilForUG
D/ScrollOptimizationHelper: can't find the config file for optimizaiton
D/ScrollOptimizationHelper: will not debug for debug is false
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
W/idu.paddle.lit: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
W/idu.paddle.lit: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
E/OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
I/MainActivity: try import lite_naive_model_opt
I/MainActivity: debug lite_naive_model_opt.nb
I/MainActivity: debug /data/user/0/com.baidu.paddle.lite/cache/lite_naive_model_opt.nb
I/MainActivity: debug InputStream
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.baidu.paddle.lite, PID: 30820
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.baidu.paddle.lite/com.baidu.paddle.lite.MainActivity}: java.lang.RuntimeException: java.io.FileNotFoundException: /data/user/0/com.baidu.paddle.lite/cache/lite_naive_model_opt.nb: open failed: EISDIR (Is a directory)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3778)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3940)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:109)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2345)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:233)
        at android.os.Looper.loop(Looper.java:344)
        at android.app.ActivityThread.main(ActivityThread.java:8210)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
     Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /data/user/0/com.baidu.paddle.lite/cache/lite_naive_model_opt.nb: open failed: EISDIR (Is a directory)
        at com.baidu.paddle.lite.MainActivity.copyFromAssetsToCache(MainActivity.java:97)
        at com.baidu.paddle.lite.MainActivity.getVersionInfo(MainActivity.java:67)
        at com.baidu.paddle.lite.MainActivity.onCreate(MainActivity.java:27)
        at android.app.Activity.performCreate(Activity.java:8129)
        at android.app.Activity.performCreate(Activity.java:8109)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1344)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3747)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3940) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:109) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2345) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:233) 
        at android.os.Looper.loop(Looper.java:344) 
        at android.app.ActivityThread.main(ActivityThread.java:8210) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034) 
     Caused by: java.io.FileNotFoundException: /data/user/0/com.baidu.paddle.lite/cache/lite_naive_model_opt.nb: open failed: EISDIR (Is a directory)
        at libcore.io.IoBridge.open(IoBridge.java:575)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:125)
        at com.baidu.paddle.lite.MainActivity.copyFromAssetsToCache(MainActivity.java:82)
        at com.baidu.paddle.lite.MainActivity.getVersionInfo(MainActivity.java:67) 
        at com.baidu.paddle.lite.MainActivity.onCreate(MainActivity.java:27) 
        at android.app.Activity.performCreate(Activity.java:8129) 
        at android.app.Activity.performCreate(Activity.java:8109) 
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1344) 
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3747) 
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3940) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:109) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2345) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:233) 
        at android.os.Looper.loop(Looper.java:344) 
        at android.app.ActivityThread.main(ActivityThread.java:8210) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034) 
     Caused by: android.system.ErrnoException: open failed: EISDIR (Is a directory)
        at libcore.io.Linux.open(Native Method)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
        at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8092)
        at libcore.io.IoBridge.open(IoBridge.java:561)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:236) 
        at java.io.FileOutputStream.<init>(FileOutputStream.java:125) 
        at com.baidu.paddle.lite.MainActivity.copyFromAssetsToCache(MainActivity.java:82) 
        at com.baidu.paddle.lite.MainActivity.getVersionInfo(MainActivity.java:67) 
        at com.baidu.paddle.lite.MainActivity.onCreate(MainActivity.java:27) 
        at android.app.Activity.performCreate(Activity.java:8129) 
        at android.app.Activity.performCreate(Activity.java:8109) 
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1344) 
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3747) 
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3940) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:109) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2345) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:233) 
        at android.os.Looper.loop(Looper.java:344) 
        at android.app.ActivityThread.main(ActivityThread.java:8210) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034) 
I/Process: Sending signal. PID: 30820 SIG: 9
Disconnected from the target VM, address: 'localhost:55010', transport: 'socket'

步骤是跟着教程一样的,但是结果有些无法理解

paddle-bot[bot] commented 2 years ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

mjp9527 commented 2 years ago

第一个报模型格式的问题,你可以先了解一下PaddleLite和paddle模型之间的区别,OPT工具使用等:https://paddle-lite.readthedocs.io/zh/release-v2.10_a/user_guides/model_optimize_tool.html nb模型,pdmodel/pdiparams,model/params 这些都是模型格式

Javacr commented 2 years ago

第一个报模型格式的问题,你可以先了解一下PaddleLite和paddle模型之间的区别,OPT工具使用等:https://paddle-lite.readthedocs.io/zh/release-v2.10_a/user_guides/model_optimize_tool.html nb模型,pdmodel/pdiparams,model/params 这些都是模型格式

谢谢你的回复,我稍后改一下