Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PagFile.LoadAsync 调用jNI方法崩溃 #2429

Open
DXBbeginner opened this issue Aug 15, 2024 · 1 comment
Open

PagFile.LoadAsync 调用jNI方法崩溃 #2429

DXBbeginner opened this issue Aug 15, 2024 · 1 comment
Assignees

Comments

@DXBbeginner
Copy link

【版本信息】

4.3.33

【平台信息】

Android 原生

【预期的表现】

正常运行

【实际的情况】

业务在子线程中调用了PAGFile.loadAsync方法记载网络资源,线上部分机型出现崩溃
堆栈如下
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for void org.libpag.PAGLayer.nativeInit() (tried Java_org_libpag_PAGLayer_nativeInit and Java_org_libpag_PAGLayer_nativeInit__)
at org.libpag.PAGLayer.nativeInit(Native Method)
at org.libpag.PAGLayer.(SearchBox:6)
at org.libpag.PAGFile.LoadAsync(SearchBox:115000)
若果是so 加载失败问题,那么在PAGDiskCache调用WriteFile这个jni 方法就崩了呀,为什么在ToPAGLayerJavaObject()方法中初始化PAGLayer的时候才崩溃呢

【Demo及附件】

@kevingpqi123
Copy link
Collaborator

PAGDiskCache 的方法调用在 PAGFile 的方法之后,这个猜测说明不了任何问题,这里的问题就是 so 没有找到或架构匹配失败

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants