-
Notifications
You must be signed in to change notification settings - Fork 123
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
opening "Android adb cmd prompt" from inside Visual Studio crashes cmd.exe #11
Comments
I believe that you're experiencing a crash, and I want to track it down and resolve it! However, I can't reproduce the crash using the stated steps:
Result: a new cmd prompt started successfully and seems fully functional; no crash. Maybe copying the new clink 1.1.x over top of an existing 0.4.x installation is the problem, or maybe some specific lua scripts from the 0.4.x installation are exposing a problem in 1.1.x. Can you please provide more information?
|
@MagicAndre1981 can you confirm that the adb cmd prompt runs as 32 bit? A crash has been present in v1.0.0 and higher 32 bit Clink for years. My guess is probably 32 bit Clink is getting launched:
Either would also explain why I couldn't reproduce the problem: my OS is 64 bit, and installing the standalone tools means there's no 32 bit IDE, so when I followed the repro steps it launches 64 bit Clink. |
Problem 1: In 2017 the Clink injection code got changed so it crashes in 32 bit. |
Problem 2: Clink initialization relies on CMD calling GetStdHandle. Problem 3: Cannot hook ReadConsoleW in 32 bit cmd.exe. |
thanks for the fix, will try next Proof of Concept version |
the latest version still crashes cmd.exe (yes it crashes cmd.exe):
|
Doh! I didn't do thorough enough testing, that's embarrassing.
Commit 424df27 in Nov 2017 lost the Should be fixed for real in the next PoC release. |
Fixed by 7de2c4a. For real this time. (Or at least, it's definitely working reliably now in both 32 and 64 bit on 4 of my computers 😜.) |
yes, I can confirm this. Cmd no longer crashes: |
I use the Proof of Concept 3 version and copied the files to old clink install folder and replaced all files. Now the normal cmd worked, but as I use the android cmd often, I reverted to clink from martin.
Here is command line of android prompt:
"C:\Windows\System32\cmd.exe" /K cd "C:\Program Files (x86)\Android\android-sdk" & set PATH=%PATH%;"C:\Program Files (x86)\Android\android-sdk\platform-tools"
You can get the standalone platform tools without Xamarin workload of VS to repro and debug it.
The text was updated successfully, but these errors were encountered: