DeviceFarmer / minicap

Stream real-time screen capture data out of Android devices.
Other
292 stars 76 forks source link

Segmentation fault in Android 34 #65

Open ChanChunSong opened 1 month ago

ChanChunSong commented 1 month ago

What is the issue or idea you have? I met Segmentation fault when I run it with Android 34. And I cannot find the file external/MY_minicap/src/minicap_34.cpp when I want to debug it. So is it a known issue and how can I get the source code. Have you tried STF? NO

JesseCodeBones commented 1 month ago

Any log from it?

ChanChunSong commented 1 month ago

$ sh run.sh autosize -t

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 443ms 30 actionable tasks: 30 up-to-date

JesseCodeBones commented 1 month ago

did you change any source for compile?

ChanChunSong commented 1 month ago

No, i didn't change anything and I didn't find the minicap_34.cpp when i want to dig out more information.

JesseChen @.***> 於 2024年10月5日 週六 上午11:16 寫道:

did you change any source for compile?

— Reply to this email directly, view it on GitHub https://github.com/DeviceFarmer/minicap/issues/65#issuecomment-2394880476, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTTWYG5WJNIPTXYYZAMHJLZZ5KXVAVCNFSM6AAAAABPDUIN7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJUHA4DANBXGY . You are receiving this because you authored the thread.Message ID: @.***>

JesseCodeBones commented 1 month ago

yeah, there is no 34 version, please use 31 for compile

ChanChunSong commented 1 month ago

Does it need the Android codebase to build minicap.so? I tried to make it again but it only built the minicap binary. Is it expected?

JesseChen @.***> 於 2024年10月6日 週日 下午10:24寫道:

yeah, there is no 34 version, please use 31 for compile

— Reply to this email directly, view it on GitHub https://github.com/DeviceFarmer/minicap/issues/65#issuecomment-2395459537, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTTWYFRTQOZ5V3L3EFFAYTZ2FB3DAVCNFSM6AAAAABPDUIN7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ2TSNJTG4 . You are receiving this because you authored the thread.Message ID: @.***>

-- 掌握了心,你就掌握了世界;無法控制我們的心,我們就變成世界的奴隸。

JesseCodeBones commented 1 month ago

yes, it need the AOSP source code for so build

1041371971 commented 1 month ago

Hello I also get the same issue. It shows the "Segmentation fault" when I try to do "adb shell LD_LIBRARY_PATH=.....". My target is Android 34, I tried to compile the 31 and push into my target, but it shows "CANNOT LINK EXECUTABLE "/data/local/tmp/minicap/minicap": cannot locate symbol "_ZN7android2ui4Size7INVALIDE" referenced by "/data/local/tmp/minicap/minicap.so"...". Any one have fixed this issue in Android 34?

JesseCodeBones commented 1 month ago

Hello I also get the same issue. It shows the "Segmentation fault" when I try to do "adb shell LD_LIBRARY_PATH=.....". My target is Android 34, I tried to compile the 31 and push into my target, but it shows "CANNOT LINK EXECUTABLE "/data/local/tmp/minicap/minicap": cannot locate symbol "_ZN7android2ui4Size7INVALIDE" referenced by "/data/local/tmp/minicap/minicap.so"...". Any one have fixed this issue in Android 34?

https://github.com/DeviceFarmer/minicap/pull/43 please use this source for compile