Skip to content
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

Create too much threads named "pool-2-thread-2" in android platform. How to limit it ? #409

Closed
zsmweb opened this issue May 1, 2022 · 3 comments

Comments

@zsmweb
Copy link

zsmweb commented May 1, 2022

Description
Create too much threads named "pool-2-thread-2" in android platform

Expected behavior
Limite threads

Current behavior
run FFmpegKit.executeAsync

To Reproduce
run FFmpegKit.executeAsync

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
root 2522 3242 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3247 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3248 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3249 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3250 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3252 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3253 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3254 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3255 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3278 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3279 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3280 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3281 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3282 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3283 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3284 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3285 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3286 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3287 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3288 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3289 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3290 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3291 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3292 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2
root 2522 3298 30872 5347764 160432 futex_wai+ 0 S pool-2-thread-2

Environment

  • Platform: Android/Flutter/iOS/macOS/ReactNative/tvOS
  • Architecture: arm-v7a, arm-v7a-neon, arm64-v8a, x86, x86_64, armv7, armv7s, arm64, arm64-mac-catalyst, arm64-simulator, arm64e, i386, x86-64, x86-64-mac-catalyst
  • Version: v4.5/v4.5.LTS
  • Source branch: main, development
  • Xcode version: 12.4.1
  • Cocoapods version: 1.10.1
  • Android Studio version: 4.0
  • Android NDK version: r22b
  • flutter doctor:
  • react-native info:

Other
Add any other context about the problem here.

@zsmweb
Copy link
Author

zsmweb commented May 1, 2022

"pool-1-thread-2" prio=5 (not attached)
| sysTid=15957 nice=0 cgrp=default
| state=S schedstat=( 166146670 63333547 150 ) utm=15 stm=0 core=2 HZ=100
kernel: (couldn't read /proc/self/task/15957/stack)
native: #00 pc 000000000008033c /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
native: #1 pc 0000000000084588 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
native: #2 pc 00000000000e6ad4 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
native: #3 pc 0000000000a2d5d4 /data/app/xxxxxxxxx/lib/arm64/libavcodec.so (???)

@github-actions
Copy link

github-actions bot commented Jul 1, 2022

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions
Copy link

github-actions bot commented Jul 8, 2022

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant