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

Launching minicap twice = permanent freeze #41

Open
grrosminet opened this issue Nov 3, 2016 · 0 comments
Open

Launching minicap twice = permanent freeze #41

grrosminet opened this issue Nov 3, 2016 · 0 comments

Comments

@grrosminet
Copy link

When launching minicap twice (from two different terminals), then second launch creates and destroy virtual display immediately (which is normal). but it freezes the screen permanently (adb still works). Need to do "adb reboot" to solve situation.

first launch log :

$ ./run.sh -P 1440x2560@1024x600/0
++ tr -d '\r'
++ adb shell getprop ro.product.cpu.abi

  • abi=arm64-v8a
    ++ adb shell getprop ro.build.version.sdk
    ++ tr -d '\r'
  • sdk=23
    ++ tr -d '\r'
    ++ adb shell getprop ro.build.version.release
  • rel=6.0.1
  • (( 23 >= 16 ))
  • bin=minicap
  • dir=/data/local/tmp/minicap-devel
  • adb shell 'mkdir /data/local/tmp/minicap-devel 2>/dev/null || true'
  • adb push libs/arm64-v8a/minicap /data/local/tmp/minicap-devel
    [100%] /data/local/tmp/minicap-devel/minicap
  • '[' -e jni/minicap-shared/aosp/libs/android-6.0.1/arm64-v8a/minicap.so ']'
  • adb push jni/minicap-shared/aosp/libs/android-23/arm64-v8a/minicap.so /data/local/tmp/minicap-devel
    [100%] /data/local/tmp/minicap-devel/minicap.so
  • adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 1440x2560@1024x600/0
    PID: 20256
    INFO: Using projection 1440x2560@338x600/0
    INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
    INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
    INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
    INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
    INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
    INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
    INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
    INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 11061252 bytes for JPG encoder
  • adb shell rm -r /data/local/tmp/minicap-devel

second log :

$ ./run.sh -P 1440x2560@1024x600/0
++ tr -d '\r'
++ adb shell getprop ro.product.cpu.abi

  • abi=arm64-v8a
    ++ adb shell getprop ro.build.version.sdk
    ++ tr -d '\r'
  • sdk=23
    ++ tr -d '\r'
    ++ adb shell getprop ro.build.version.release
  • rel=6.0.1
  • (( 23 >= 16 ))
  • bin=minicap
  • dir=/data/local/tmp/minicap-devel
  • adb shell 'mkdir /data/local/tmp/minicap-devel 2>/dev/null || true'
  • adb push libs/arm64-v8a/minicap /data/local/tmp/minicap-devel
    [100%] /data/local/tmp/minicap-devel/minicap
  • '[' -e jni/minicap-shared/aosp/libs/android-6.0.1/arm64-v8a/minicap.so ']'
  • adb push jni/minicap-shared/aosp/libs/android-23/arm64-v8a/minicap.so /data/local/tmp/minicap-devel
    [100%] /data/local/tmp/minicap-devel/minicap.so
  • adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 1440x2560@1024x600/0
    PID: 20256
    INFO: Using projection 1440x2560@338x600/0
    INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
    INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
    INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
    INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
    INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
    INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
    INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
    INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 11061252 bytes for JPG encoder
  • adb shell rm -r /data/local/tmp/minicap-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant