Status Update
Comments
al...@gmail.com <al...@gmail.com> #2
First of all thanks for this detailed issue.
This issue had been investigated thoroughly when it was first reported internally. The surprising detail in this report is that the issue is not reproducible before 1.7
. I will look into this.
The main problem with POBox is the fact that it is deprecated. Since 2021 Sony has been shipping new Xperia devices with Gboard pre-installed. Although we are aware that there is still a considerable amount of users still using POBox, the described behavior is caused by POBox's noncompliant behavior with InputConnection
and InputMethodManager
documentation. However, this is understandable since TextView
implementation was also not respecting the behavior that is expected from Editors.
Ultimately we have decided to enforce the documented behavior with specifically regards to when editors should call InputMethodManager.updateSelection
. Also, although unconfirmed, there were traces of possible custom code being included in Sony OEM images that changed how InputMethodManager was notified from TextView. If POBox also depended on something like this, it would be impossible for Compose code to replicate the same unknown behavior.
pi...@gmail.com <pi...@gmail.com> #3
Or is that option not available?
Even if the root cause is POBox, from the perspective of the app's customers, it looks like an app bug, so this issue is a blocker against updating Jetpack Compose.
hu...@google.com <hu...@google.com>
m4...@gmail.com <m4...@gmail.com> #4
Just to be sure, it is dangerous to replace Compose TextField with Android View EditText as a workaround for this issue.
Compose 1.7 has a bug that causes ANR when the focus is on EditText.
Another View-related bug in Compose 1.7 is that an Android View is focused by calling FocusManager.clearFocus().
Perhaps there is a lack of testing of Compose 1.7 in combination with Android View. There is also a possibility that there are other fatal bugs related to View.
In other words, the only options for apps targeting the Japanese market that require POBox support are to continue using Compose 1.6 or to use EditText in combination with various workarounds.
ch...@gmail.com <ch...@gmail.com> #5
Project: platform/frameworks/support
Branch: androidx-main
Author: Halil Ozercan <
Link:
Fix POBox keyboard issue
Expand for full commit details
Fix POBox keyboard issue
Fix: 373743376
Fix: 329209241
Test: NullableInputConnectionWrapperTest
Change-Id: I94e0e598274fb88b255f977f9fbd50dfbbb1ecb1
Files:
- M
compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/input/NullableInputConnectionWrapperTest.kt
- M
compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/text/input/NullableInputConnectionWrapper.android.kt
Hash: 57f58c4b80d5d8470b2aca325dfdcd55f235231e
Date: Thu Oct 24 01:25:20 2024
si...@gmail.com <si...@gmail.com> #6
Many thanks again for this report. Especially for giving us a huge clue in terms of what could be going wrong. The fix is now merged and I will ask for a cherry-pick into a stable release.
lf...@google.com <lf...@google.com> #7
Do you have any concrete plan to cherry-pick the fix into current stable version (1.7.x)? We are currently waiting it.
lf...@google.com <lf...@google.com> #8
Yes, this fix is planned to be included in a future 1.7.x
release.
ma...@gmail.com <ma...@gmail.com> #9
Thanks for the fix. Sorry to follow up on this. is it possible for you to share specific release version/date for the stable version? We are waiting on this to decide on our direction.
jo...@gtempaccount.com <jo...@gtempaccount.com> #10
hs...@google.com <hs...@google.com> #11
Hope this could be a hint for Yu Ning for further investigation.
ra...@gmail.com <ra...@gmail.com> #12
lf...@google.com <lf...@google.com> #13
You'll need to run it on a 32-bit x86 AVD, as we don't support running Hypervisor.Framework on 64-bit x86 AVD's currently.
Here is what I do:
1. Go to AVD Manager
2. Create a new AVD (API level 25 or 26 recommended):
a. "Create Virtual Device" > "Next" (Nexus 5X should be selected)
b. Image description: should be "Android 7.1.1" or "Android API 26" images in there that are not grayed out; if not, click the "Download" link and try the process again.
c. Make sure it is a x86 (not x86_64) image.
3. Finish the AVD creation process (Default settings should work)
4. Start the AVD (hit the "play" button on the AVD manager for the AVD you just created).
ch...@gmail.com <ch...@gmail.com> #14
put the text "HVF = on" in ~/.android/advancedFeatures.ini (create this file if it doesn't exist already).
[Deleted User] <[Deleted User]> #15
Thanks!
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.