-
Notifications
You must be signed in to change notification settings - Fork 165
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
出现anr #24
Comments
trace: suspend all histogram: Sum: 131.086ms 99% C.I. 9us-1789.439us Avg: 95.893us Max: 22032us "main" prio=5 tid=1 Native "JDWP" daemon prio=5 tid=3 WaitingInMainDebuggerLoop |
这种情况没有遇到过。 |
基本上没做修改 加了点日志 ,我怀疑和设备上腾讯管家 有关系 ,卸载后 就没出现过了,但是没想明白 两个进程的操作 ,并且都没耗时的操作,但是一旦出现anr 后 就基本处于卡死状态,会频繁出现anr: |
its strange,我这里没有耗时操作,你可以试试用子线程跑。 |
I think that anr is cause of "ptrace". |
我尝试复现下 |
进行压力测试: 每次测试1w次加密解密 使用anroid studio查看native的内存 都会增长1M ,c层的代码是不是 存在内存泄漏的问题 |
i can receive your comment. its has email msg to me. |
Maybe, u r right, the library did not take into account such high-frequency execution at the beginning of writing. |
im sorry. U can find some worst code, fix that ,and give me a pull request. and i need remind u again , the static properties will apear a bug : #23 |
do u correct the issue24? |
#23 并发的问题 我当时测试测试出来了 我在java层 进行加锁 控制了 |
你看下 有没有问题 没问题的话 我push下代码 |
thanx a lot for your answer. Pls pull request to me. |
06-05 17:37:43.161 29089-29094/com.androidyuan.aesjniencrypt I/art: Thread[2,tid=29094,WaitingInMainSignalCatcherLoop,Thread*=0xaf650000,peer=0x12e5c0a0,"Signal Catcher"]: reacting to signal 3
06-05 17:37:48.205 29089-29094/com.androidyuan.aesjniencrypt W/libbacktrace: bool ThreadEntry::Wait(int): pthread_cond_timedwait for value 1 failed: Connection timed out
06-05 17:37:48.205 29089-29094/com.androidyuan.aesjniencrypt E/libbacktrace: bool BacktraceCurrent::UnwindThread(size_t): Timed out waiting for signal handler to get ucontext data.
06-05 17:37:48.359 29089-29094/com.androidyuan.aesjniencrypt I/art: Wrote stack traces to '/data/anr/traces.txt'
The text was updated successfully, but these errors were encountered: