-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
小米10/10Pro 省电模式必现闪退:__kmp_abort_process #4369
Comments
麻烦测试下这个pr能否修复 |
试了仍然出现问题,目前我正在排查是调用哪个API出现的 |
setenv(“KMP_AFFINITY”, “disabled”, 1); 这样子能解决吗 |
还是不行,我在ncnn::Net.load_model之前加的,位置对不对? |
这里添加试试? JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved)
{
// here
setenv(“KMP_AFFINITY”, “disabled”, 1);
return JNI_VERSION_1_4;
} |
#4370 更新了新的方法 |
你好,添加之后发现省电模式下直接走不到JNI_OnLoad就闪退了,关闭省电模式能走进去 |
This comment was marked as duplicate.
This comment was marked as duplicate.
好的,谢谢了 |
现在报错不一样了
|
这个版本的包,不需要加前面issue里我提到的 setenv(“KMP_AFFINITY”, “disabled”, 1); 之类的代码了 |
好的,我再试试 |
ok,确认 cmakelists.txt 是使用 find_package(ncnn) 然后 target_link_libraries(xxx ncnn) 引用的 ncnn 库 以及截图中的堆栈只看到了一层,有没有更多的堆栈信息 |
加了 同意一下 我今天加过没有通过才来这里的[/捂脸] |
这个问题解决了吗,我也遇到了 |
error log | 日志或报错信息 | ログ
context | 编译/运行环境 | バックグラウンド
ncnn版本:ncnn-20220729-android-vulkan
Android Studio Electric Eel | 2022.1.1 Beta 4
NDK :24.0.8215888
运行环境:小米10/小米10 Pro,省电模式
how to reproduce | 复现步骤 | 再現方法
more | 其他 | その他
The text was updated successfully, but these errors were encountered: