-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
怀疑模型初始化异常导致程序崩溃 #9753
Comments
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档、常见问题、历史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 API,FAQ and Github Issue to get the answer.Have a nice day! |
export GLOG_v=4 |
这是什么意思呢?不太明白 |
shell中输入的命令,开启GLOG日志输出 |
是编译之前先输入这个命令打开开关,再进行编译paddle lite吗? |
并不是。这是在bash里输入的命令,改变环境变量。你先整一个单独的c++单元测试main函数入口的,再问问题,没人对java上的apex信息感兴趣。你的log看不出任何有意义内容 |
你好,我在安卓上使用paddle lite进行推理时,会偶尔发生崩溃的问题,经过一番定位怀疑是模型初始化的时候有异常,崩溃的日志如下所示,能麻烦帮忙看一下可能是什么原因导致的吗?
初始化模型的代码如下:
paddle::lite_api::MobileConfig config;
config.set_model_from_file(modelPath);
config.set_threads(num);
config.set_power_mode(mode);
model = paddle::lite_api::CreatePaddlePredictor(config);
1、我看paddle lite官网的代码写法是model = paddle::lite_api::CreatePaddlePredictor(config),这个尖括号里面的配置类不写可能会导致初始化异常吗?
2、程序里面会出现反复执行这个初始化的过程,但是对model这个变量(model是全局变量不是局部变量)没有进行任何处理或者删除之类的操作,会有影响吗?
日志信息如下:
11-24 13:49:49.194 5902 5902 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-24 13:49:49.195 5902 5902 F DEBUG : Build fingerprint: '//:10/-/base format error.cust format error.:user/release-keys'
11-24 13:49:49.195 5902 5902 F DEBUG : Revision: '0'
11-24 13:49:49.195 5902 5902 F DEBUG : ABI: 'arm64'
11-24 13:49:49.213 5902 5902 F DEBUG : Timestamp: 2022-11-24 13:49:49+0800
11-24 13:49:49.213 5902 5902 F DEBUG : pid: 4196, tid: 4913, name: plateparsing >>> com..mvs.evision:media <<<
11-24 13:49:49.213 5902 5902 F DEBUG : uid: 10053
11-24 13:49:49.213 5902 5902 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
11-24 13:49:49.213 5902 5902 F DEBUG : Abort message: '=================================================================
11-24 13:49:49.213 5902 5902 F DEBUG : ==4196==ERROR: AddressSanitizer: SEGV on unknown address 0x0072e25ef03c (pc 0x0072fc9db180 bp 0x0072fb917620 sp 0x0072fb916b40 T215)
11-24 13:49:49.213 5902 5902 F DEBUG : ==4196==The signal is caused by a READ memory access.
11-24 13:49:49.213 5902 5902 F DEBUG : #0 0x72fc9db17c (/_product/priv-app/eVision/lib/arm64/libpaddle_light_api_shared.so+0x29817c)
11-24 13:49:49.213 5902 5902 F DEBUG :
11-24 13:49:49.213 5902 5902 F DEBUG : AddressSanitizer can not provide additional info.
11-24 13:49:49.213 5902 5902 F DEBUG : SUMMARY: AddressSanitizer: SEGV (/_product/priv-app/eVision/lib/arm64/libpaddle_light_api_shared.so+0x29817c)
11-24 13:49:49.213 5902 5902 F DEBUG : Thread T215 (plateparsing) created by T0 (s.evision:media) here:
11-24 13:49:49.213 5902 5902 F DEBUG : #0 0x741d3725b8 (/system/lib64/libclang_rt.asan-aarch64-android.so+0xb15b8)
11-24 13:49:49.213 5902 5902 F DEBUG : #1 0x7395cfe4e8 (/apex/com.android.runtime/lib64/libart.so+0x53c4e8)
11-24 13:49:49.213 5902 5902 F DEBUG : #2 0x7395c337a0 (/apex/com.android.runtime/lib64/libart.so+0x4717a0)
11-24 13:49:49.213 5902 5902 F DEBUG : #3 0x70d5dd9c (/data/dalvik-cache/arm64/system@framework@boot.oat+0xf5d9c)
11-24 13:49:49.213 5902 5902 F DEBUG : #4 0x73956e583f (/apex/com.android.runtime/javalib/core-oj.jar+0x3dc83f)
11-24 13:49:49.213 5902 5902 F DEBUG : #5 0x741e98801c ()
11-24 13:49:49.213 5902 5902 F DEBUG :
11-24 13:49:49.213 5902 5902 F DEBUG : '
11-24 13:49:49.213 5902 5902 F DEBUG : x0 0000000000000000 x1 0000000000001331 x2 0000000000000006 x3 000000738d14d090
11-24 13:49:49.213 5902 5902 F DEBUG : x4 fefefefefefefeff x5 fefefefefefefeff x6 fefefefefefefeff x7 7f7f7f7f7f7f7f7f
11-24 13:49:49.213 5902 5902 F DEBUG : x8 00000000000000f0 x9 000000741dabc8e0 x10 0000000000000000 x11 0000000000000001
11-24 13:49:49.213 5902 5902 F DEBUG : x12 0000001e71a299b0 x13 0000000000000001 x14 0000001e71a299a8 x15 0000000000000004
11-24 13:49:49.213 5902 5902 F DEBUG : x16 000000741db73908 x17 000000741db53010 x18 00000072fb917540 x19 0000000000001064
11-24 13:49:49.213 5902 5902 F DEBUG : x20 0000000000001331 x21 00000000ffffffff x22 000000741d46d900 x23 000000741d4f76a0
11-24 13:49:49.213 5902 5902 F DEBUG : x24 0000000000000040 x25 00000072fb91a020 x26 000000000000000b x27 00000059b8e96000
11-24 13:49:49.213 5902 5902 F DEBUG : x28 0000000048000004 x29 000000738d14d130
11-24 13:49:49.213 5902 5902 F DEBUG : sp 000000738d14d070 lr 000000741db07bc0 pc 000000741db07bf0
11-24 13:49:49.218 810 5862 I GED : ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 18, oppidx_max 18, oppidx_min 0
11-24 13:49:49.221 4196 5822 I TDAI#CameraProxy: onImageAvailable
11-24 13:49:49.237 810 5844 I Hal3Av3 : [get] frmId(28), IsConvert4MetaResult(0), ret(1), u1CaptureIntent(1), count(97, 32), AwbState(2) AeState(1) FlashState(2) AfState(0) Exp(7714000) ISO(110) FrameDuration(66700000)
11-24 13:49:49.251 5902 5902 F DEBUG :
11-24 13:49:49.251 5902 5902 F DEBUG : backtrace:
11-24 13:49:49.251 5902 5902 F DEBUG : #00 pc 000000000006ebf0 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 52d9eff44eb5f517a93ef04371b3cb71)
11-24 13:49:49.251 5902 5902 F DEBUG : #1 pc 00000000000505b4 /system/lib64/libclang_rt.asan-aarch64-android.so (__sanitizer::Abort()+56) (BuildId: b3008c4fc67aca1c97b94045f2133cf7808faf54)
11-24 13:49:49.251 5902 5902 F DEBUG : #2 pc 000000000004f5f8 /system/lib64/libclang_rt.asan-aarch64-android.so (__sanitizer::Die()+200) (BuildId: b3008c4fc67aca1c97b94045f2133cf7808faf54)
11-24 13:49:49.251 5902 5902 F DEBUG : #3 pc 00000000000c6c40 /system/lib64/libclang_rt.asan-aarch64-android.so (__asan::ScopedInErrorReport::~ScopedInErrorReport()+388) (BuildId: b3008c4fc67aca1c97b94045f2133cf7808faf54)
11-24 13:49:49.251 5902 5902 F DEBUG : #4 pc 00000000000c6890 /system/lib64/libclang_rt.asan-aarch64-android.so (__asan::ReportDeadlySignal(__sanitizer::SignalContext const&)+156) (BuildId: b3008c4fc67aca1c97b94045f2133cf7808faf54)
11-24 13:49:49.252 5902 5902 F DEBUG : #5 pc 00000000000c6234 /system/lib64/libclang_rt.asan-aarch64-android.so (__asan::AsanOnDeadlySignal(int, void*, void*)+80) (BuildId: b3008c4fc67aca1c97b94045f2133cf7808faf54)
11-24 13:49:49.252 5902 5902 F DEBUG : #6 pc 0000000000007c90 /system/bin/app_process64 (art::SignalChain::Handler(int, siginfo*, void*)+352) (BuildId: d1291619cb12163ec924b71b8ba336bc)
11-24 13:49:49.252 5902 5902 F DEBUG : #7 pc 0000000000000628 [vdso] (__kernel_rt_sigreturn)
11-24 13:49:49.252 5902 5902 F DEBUG : #8 pc 000000000029817c /**_product/priv-app/eVision/lib/arm64/libpaddle_light_api_shared.so
11-24 13:49:49.292 810 5862 I GED : ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 18, oppidx_max 18, oppidx_min 0
The text was updated successfully, but these errors were encountered: