Status Update
Comments
al...@gmail.com <al...@gmail.com> #2
1. Android Studio version and OS type and version
2. Screenshots or videos of the issue
3. idea.log file (select Help > Show Log in Finder / Explorer)
4. Thread dumps if the issue is a freezing or non-responding UI.
For more information on what’s needed and how to obtain this information please read the guide at
pi...@gmail.com <pi...@gmail.com> #3
2) See attached screen recording
Opened a scratch file and tried to type an "@" symbol. You can see that in the keyboard viewer
Btw this issue only occurs in text editor
3) See attached log file
How to reproduce:
- Open any project
- Open a source file
- Try to type "@"-Symbol
4) There is no freeze or stuck UI/process in AS
hu...@google.com <hu...@google.com>
m4...@gmail.com <m4...@gmail.com> #4
ch...@gmail.com <ch...@gmail.com> #5
I can't repro on Linux. This might be a general IntelliJ shortcut system issue.
The shortcut mentioned in Option-L, Option-F
which isn't anywhere near @
. Additionally, the shortcut is only supposed to active inside the Logcat tool window.
That said, I suppose I could change the shortcut to something else on Mac's. I don't have a Mac so I can't test this nor can I check if any shortcut I choose will be in conflict with something.
si...@gmail.com <si...@gmail.com> #6
Adarsh, please advise
lf...@google.com <lf...@google.com> #7
The video shows that a non-English keyboard layout is being used (I believe it's German given the autocompletions). This relocates the @
symbol onto the L
key such that ⌥L
will type an @
.
Given how macOS allows typing special characters, I assume this is a Mac-only issue. I also suspect any other keyboard shortcuts that start with ⌥
will produce the same behavior.
lf...@google.com <lf...@google.com> #8
Hmm, so I'm looking for other Alt-
bindings on my Linux and I can see a few:
Alt-Q
->Context info
Alt-J
->Add selection for Next Occurrence
Alt-O
->Export Results
Alt-M
->Amend Commit
Does this happen for these too? If not, what are these actions bound to on Mac?
ma...@gmail.com <ma...@gmail.com> #9
I'm hesitant to change the default binding because it might result in conflicting with some other layout. IntelliJ and Android Studio is currently not localized and is offered only in English. HAving said that, it seems like the clear workaround is to either remove the existing key binding or remap to something else that works.
jo...@gtempaccount.com <jo...@gtempaccount.com> #10
@amy, do you think this is worth documenting somewhere?
hs...@google.com <hs...@google.com> #11
Yes, I can document this on the logcat and known issues pages. Will am to send a CL by the end of next week. Thanks for looping me in!
ra...@gmail.com <ra...@gmail.com> #12
This issue is also in Electric Eel, please change that for mac. It is stopping me from coding annotation such as compose code, very annoying. If not, make the short cut deactivable.
Please see
lf...@google.com <lf...@google.com> #13
Is there a work round? Any hints are really appreciated.
ch...@gmail.com <ch...@gmail.com> #14
The workaround works for me now, thanks to #4
I made a detailed description to remove the keymap for "alt" + "L" on mac at
[Deleted User] <[Deleted User]> #15
ra...@gmail.com <ra...@gmail.com> #16
~$ cat .android/advancedFeatures.ini
HVF = on
~$ Library/Android/sdk/tools/emulator -version
Android emulator version 26.1.2.0 (build_id 4077558) (CL:500db745bd44dbc6000413b5e8969d83216ff7cd)
~$ Library/Android/sdk/tools/emulator @Nexus_5X_API_26
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM is not installed on this machine
Exactly the same output with HVF = off.
Using Android Studio 3.0 Canary 5
lf...@google.com <lf...@google.com> #17
[Deleted User] <[Deleted User]> #18
Details:
1. HAXM driver calls BSD API devfs_make_node() to create /dev/hax_vm/vm<vm_id>. This API requires a path relative to /dev/, so if vm_id = 1, HAXM will pass "hax_vm*/vm01" to it.
2. Why the asterisk? I thought it was an unnecessary wildcard, but if I remove it, on macOS 10.10 (probably <= 10.12), I get /dev/hax_v/vm01 instead, i.e. the XNU implementation of devfs_make_node() "eats" the last character of every subdirectory along the path. It turns out this bug has been around for quite a while:
And I believe the culprit is this line in XNU kernel:
There's no 10.13 branch in that GitHub project, but my guess is Apple somehow finally decided to fix this bug.
3. We are yet to come up with an elegant solution, but as #15 suggested, we should be able to implement a hack: call the API with an extra character (e.g. '*') first, check if the resulting path contains that extra character, and if so, undo the first call and make a second call without the extra character. We'll try this solution on Monday if there's no better idea.
lf...@google.com <lf...@google.com> #19
Also, Is it possible to also trigger the fixed name from how the emulator uses HAXM ioctls?
hs...@google.com <hs...@google.com> #20
However, it depends on whether MacOS offers the needed APIs or not.
hs...@google.com <hs...@google.com> #21
ra...@gmail.com <ra...@gmail.com> #22
[Deleted User] <[Deleted User]> #23
For example, on macOS 10.11:
$ uname -v
Darwin Kernel Version 15.6.0: Tue Apr 11 16:00:51 PDT 2017; root:xnu-3248.60.11.5.3~1/RELEASE_X86_64
I guess the kernel version of macOS 10.13 should begin with 17, but I just want to confirm that.
ra...@gmail.com <ra...@gmail.com> #24
Darwin Kernel Version 17.0.0: Tue Jun 13 21:06:15 PDT 2017; root:xnu-4481.0.0.1.1~1/RELEASE_X86_64
ra...@gmail.com <ra...@gmail.com> #25
$ sysctl kern.hv_support
kern.hv_support: 0
[Deleted User] <[Deleted User]> #26
And thanks for the information, with which I've implemented a patch. Note that I didn't take the approach proposed in #18, because usual file APIs such as open(), close(), etc. are for use by userspace and have side effects when used on device nodes.
Instead, I came up with another hack, which is to detect the macOS (XNU kernel) version HAXM is running on, and adjust the devfs path accordingly. The assumption is that XNU kernels >= 17.0.0 do NOT require an extra character to be appended to every subdirectory name.
I'm hopeful that this will make HAXM compatible with macOS 10.13 beta. But there's no guarantee it will not break again in the future... After all, the mailing list discussion discourages creating *subdirectories* in /dev (but creating files directly under /dev should be fine). So in the long term, we should flatten the currently hierarchical devfs layout, and make corresponding changes on QEMU side.
#20: That would be neat, but I don't know if Mac provides such APIs. If we are making userspace changes anyway, we should get rid of the devfs subdirectories first.
hs...@google.com <hs...@google.com> #27
[Deleted User] <[Deleted User]> #28
hs...@google.com <hs...@google.com> #29
hs...@google.com <hs...@google.com> #30
st...@gmail.com <st...@gmail.com> #31
hu...@google.com <hu...@google.com>
mi...@gmail.com <mi...@gmail.com> #33
fi...@gmail.com <fi...@gmail.com> #35
[Deleted User] <[Deleted User]> #38
I try to this blog but, i hav a problem.
input the "sudo kextload -bundle-id com.intel.kext.intelhaxm"
after this message.
"com.intel.kext.intelhaxm failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8)."
i need your help. plz.
sr...@gmail.com <sr...@gmail.com> #39
lf...@google.com <lf...@google.com> #40
That's likely because HAXM wasn't installed yet. You can check if it is installed by issuing
$ kextstat | grep haxm
145 0 0xffffff7f832d6000 0x1c000 0x1c000 com.intel.kext.intelhaxm (6.2.0) FAD2A80C-AB2D-351F-9314-04E1DEB2F004 <7 5 4 3 1>
and seeing if a line similar to that shows up.
You may also use Hypervisor.Framework if your macOS supports:
$ sysctl kern.hv_support
kern.hv_support: 1
and you use a 32-bit x86 image. (and add "HVF = on" in ~/.android/advancedFeatures.ini (create if it doesn't exist))
sr...@gmail.com <sr...@gmail.com> #41
js...@gmail.com <js...@gmail.com> #42
Starting emulator for AVD 'NExus5_API_25'
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM is not installed on this machine (/dev/HAX is missing).
I installed HAXM through the DMG and the silent_install.sh. Here's the log of the silent install:
/dev/disk4 GUID_partition_scheme
/dev/disk4s1 Apple_HFS /Volumes/com_intel_kext_haxm_disc
mpkg_file=/Volumes/com_intel_kext_haxm_disc//IntelHAXM_6.2.1.mpkg
ecx 7ffafbff
edx 2c100800
edx 2c100800
No emulator instance exist!
sed: /Library/Extensions/intelhaxm.kext/Contents/Resources/support.txt: No such file or directory
Intel HAXM: This is a new installation
installer: Package name is Intel(R) Hardware Accelerated Execution Manager
installer: Upgrading at base path /
installer: The upgrade was successful.
"disk4" unmounted.
"disk4" ejected.
HAXM silent installation finished!
*************** Silent installation Pass ! ****************
Running "sudo ./silent_install.sh -v" returns "6.2.1".
Running "sudo ./silent_install.sh -c" returns "VT support -- Yes, NX support -- Yes."
Running "sudo kextload -bundle-id com.intel.kext.intelhaxm" returns:
"com.intel.kext.intelhaxm failed to load - (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8)."
Do I still have to disable the Security Protection on kext first?
js...@gmail.com <js...@gmail.com> #44
[Deleted User] <[Deleted User]> #45
[Deleted User] <[Deleted User]> #46
sa...@gmail.com <sa...@gmail.com> #47
Thanks.
el...@gmail.com <el...@gmail.com> #48
su...@suyashjoshi.com <su...@suyashjoshi.com> #49
[Deleted User] <[Deleted User]> #50
For step-by-step instructions, please refer to the following links for now. These are for other software products that also install a KEXT, and thus have the same problem on macOS High Sierra. The only thing that will appear different from their screenshots is the developer name, which is "Intel Corporation Apps" for HAXM:
(Symantec Endpoint Protection)
(ESET Endpoint Security)
Although we could improve the emulator error message, it's impossible for HAXM to unblock its own KEXT automatically, so the user has to go through the above steps after installing HAXM.
ka...@gmail.com <ka...@gmail.com> #51
SOLUTION A - HVF Solution: Running the emulator on Canary channel 26.1.x (API 25/26 recommended) with Hypervisor.Framework (thread #7)
I implemented this solution and it worked. I am using emulator now on macOS High Sierra.
A1 - If HAXM installed in Android Studio, uninstall it;
------ Go to SDK Manager > SDK Tools (or Appearance & Behaviour > System Settings > Android SDK)
------ Uncheck Intel x86 Emulator Accelerator (HAXM Installer) and Apply. This will uninstall HAXM.
A2 - You might need to first install HAXM in order to get HVF to work (thread #17).
------ Install standalone Intel HAXM as a regular .dmg install. Download from here:
*****
***** For any reason, you can uninstall standalone HAXM installation by;
*****---- sudo Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
*****------- If above not work, try; sudo /System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
A3 - Check whether your macOS supports Hypervisor.Framework or not: (thread #40)
------- $ sysctl kern.hv_support
------- kern.hv_support: 1 (if support =1, if not support = 0) (should support to implement HVF solution)
A4 - Find the file "advancedFeatures.ini". It may be placed in;
------- ~/.android/advancedFeatures.ini (thread #7) ( Users/<username>/.android/advancedFeatures.ini) or
------- /Users/<username>/Library/Android/sdk/emulator/lib/advancedFeatures.ini (thread #45) (I found mine here)
A5 - Open "advancedFeatures.ini" with an editor.
------ Find the line "HVF = off"
------ Change off to on; "HVF = on" (thread #7)
A6 - Restart Android Studio if it is open (Restart the computer if necessary). Create and RUN the emulator :) No more HAXM warnings :)
SOLUTION B - I didn't try this solution but several comments claim that it also worked. (thread #34,35,36,37) You can try this also, follow the instructions from here :
If this is not proper a comment in here, sorry. I just want to share summarized complete solution that worked for me and may help others facing the same problem to follow steps more easily. I hope it helps
de...@gmail.com <de...@gmail.com> #52
st...@gmail.com <st...@gmail.com> #53
Process: studio [794]
Path: /Volumes/VOLUME/Android Studio.app/Contents/MacOS/studio
Identifier: com.google.android.studio
Version: 4.1 (AI-201.8743.12.41.7042882)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: studio [794]
User ID: 501
Date/Time: 2021-02-19 15:27:39.749 +0100
OS Version: Mac OS X 10.10.5 (14F2511)
Report Version: 11
Anonymous UUID: AD634625-9D55-0777-AF08-959A64935DAA
Time Awake Since Boot: 2600 seconds
Crashed Thread: 0 AppKit Thread Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000303030353150
VM Regions Near 0x303030353150:
VM_ALLOCATE 00000007c0b77000-0000000800000000 [ 1.0G] ---/rwx SM=NUL
-->
MALLOC_TINY 00007fea5b400000-00007fea5b800000 [ 4096K] rw-/rwx SM=COW
Application Specific Information:
abort() called
Thread 0 Crashed:: AppKit Thread Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff854ef286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff91d109a3 abort + 129
2 libjvm.dylib 0x000000010b2bfeb2 os::abort(bool) + 22
3 libjvm.dylib 0x000000010b3c95ff VMError::report_and_die() + 2151
4 libjvm.dylib 0x000000010b2c444a JVM_handle_bsd_signal + 523
5 libjvm.dylib 0x000000010b2c1dca signalHandler(int, __siginfo*, void*) + 45
6 libsystem_platform.dylib 0x00007fff8a327f1a _sigtramp + 26
7 libsystem_c.dylib 0x00007fff91cb3f72 strlen + 18
8 com.apple.CoreFoundation 0x00007fff8933484c __CFStringAppendFormatCore + 8524
9 com.apple.CoreFoundation 0x00007fff8942a3a0 _CFStringCreateWithFormatAndArgumentsAux2 + 256
10 com.apple.Foundation 0x00007fff90de14e1 -[NSPlaceholderString initWithFormat:locale:arguments:] + 153
11 com.apple.Foundation 0x00007fff90dfaec9 +[NSString stringWithFormat:] + 174
12 com.apple.java.JavaRuntimeSupport 0x00000001215170cc -[JRSInputMethodController currentInputMethodLocale] + 174
13 libawt_lwawt.dylib 0x0000000121577eda __Java_sun_lwawt_macosx_CInputMethod_getNativeLocale_block_invoke + 41
14 com.apple.Foundation 0x00007fff90e69da0 __NSThreadPerformPerform + 293
15 com.apple.CoreFoundation 0x00007fff89376821 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16 com.apple.CoreFoundation 0x00007fff893689ad __CFRunLoopDoSources0 + 269
17 com.apple.CoreFoundation 0x00007fff89367fdf __CFRunLoopRun + 927
18 com.apple.CoreFoundation 0x00007fff893679f8 CFRunLoopRunSpecific + 296
19 com.apple.HIToolbox 0x00007fff87b3856f RunCurrentEventLoopInMode + 235
20 com.apple.HIToolbox 0x00007fff87b382ea ReceiveNextEventCommon + 431
21 com.apple.HIToolbox 0x00007fff87b3812b _BlockUntilNextEventMatchingListInModeWithFilter + 71
22 com.apple.AppKit 0x00007fff8c5fa8ab _DPSNextEvent + 978
23 com.apple.AppKit 0x00007fff8c5f9e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
24 libosxapp.dylib 0x00000001216481d5 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 121
25 com.apple.AppKit 0x00007fff8c5efaf3 -[NSApplication run] + 594
26 libosxapp.dylib 0x000000012164801a +[NSApplicationAWT runAWTLoopWithApp:] + 219
27 libawt_lwawt.dylib 0x000000012159e40b -[AWTStarter starter:] + 856
28 com.apple.Foundation 0x00007fff90e69da0 __NSThreadPerformPerform + 293
29 com.apple.CoreFoundation 0x00007fff89376821 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
30 com.apple.CoreFoundation 0x00007fff893689ad __CFRunLoopDoSources0 + 269
31 com.apple.CoreFoundation 0x00007fff89367fdf __CFRunLoopRun + 927
32 com.apple.CoreFoundation 0x00007fff893679f8 CFRunLoopRunSpecific + 296
33 com.google.android.studio 0x00000001082f7b77 main + 332
34 libdyld.dylib 0x00007fff8d2265c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
sh...@gmail.com <sh...@gmail.com> #54
Basic setting I want ...
Description
The errors in the console are:
Emulator: Failed to open vm 7
Emulator: Failed to create HAX VM
Emulator: No accelerator found.
Emulator: failed to initialize HAX: Invalid argument
I'm assuming it's because Mac OS 10.13 isn't supported yet by Intel HAXM.