Status Update
Comments
jl...@google.com <jl...@google.com> #2
Thank you for the report. We will try to fix this soon. In the meantime, could you please start the emulator from the console (see the commands below), open the camera app to crash it and attach the output, it might help to figure out what the problem is:
cd /Users/YOUR_USERNAME/Library/Android/sdk/emulator
./emulator -list-avds
./emulator -verbose -avd YOUR_AVD_FROM_PREVIOUS_STEP
if there is a crash report to send, please send it and attach the report id.
rk...@google.com <rk...@google.com> #3
We got a crash report (thanks JP): 872e3b20bc34905b. It says EXC_BAD_INSTRUCTION / 0x00000001
and the console also says "Illegal hardware instruction". I suspect the new MacOS brought a new hypervizor which causes this behavior. Haitao, could you please take a look?
ok...@gmail.com <ok...@gmail.com> #4
We have quite some crashes like this:
product_name="AndroidEmulator" AND crash.Reason="EXC_BAD_INSTRUCTION / 0x00000001" AND cpu.Architecture="arm64"
rk...@google.com <rk...@google.com> #5
The most of crashes happen here:
vVertical_Scale_ARGB_8888_Accelerate
vImageVerticalShear_ARGB8888
vImageVerticalShear_ARGB8888
vImageScale_ARGB8888
vRotateClockwise270Degree_ARGB8888_Accelerate2
vRotate_90_ARGB_8888_270Degree_Accelerate2
ok...@gmail.com <ok...@gmail.com> #6
I suspect EXC_BAD_INSTRUCTION
happens in vImageRotate90_ARGB8888
and vImageScale_ARGB8888
which are used by webcam on MacOS.
ch...@gmail.com <ch...@gmail.com> #7
ja...@gmail.com <ja...@gmail.com> #8
Hi rforzani22, I am sorry for this experience. This bug is my top priority. We expect a fix to be merged within a week. You should be able to download a build directly from our build server (
ch...@gmail.com <ch...@gmail.com> #9
ig...@gmail.com <ig...@gmail.com> #10
We confirmed vImageRotate90...
and vImageScale...
and use what I could find (which is not as efficient as vImage...
ones, we will try to figure out why these functions crash), it does not handle all aspect ratios and resolutions so far (it might crash for different reasons, I will be working on this tomorrow). If anyone wants to try my local build, I can share it.
rk...@google.com <rk...@google.com> #11
ja...@gmail.com <ja...@gmail.com> #12
ok...@gmail.com <ok...@gmail.com> #13
ch...@gmail.com <ch...@gmail.com> #14
rforzani22 and treblew2017, I shared a Google Drive link with you, see your email.
ja...@google.com <ja...@google.com> #15
ja...@google.com <ja...@google.com> #16
lechun.sk, I shared with you.
ja...@google.com <ja...@google.com> #17
ja...@google.com <ja...@google.com> #18
lechun.sk, this is unexpected. Do you mind uploading a crash report and sharing its id?
ja...@google.com <ja...@google.com> #19
bo...@mfour.com <bo...@mfour.com> #20
lechun.sk, unfortunately a bug report will not help here. It would useful to debug issues inside Android. This crash happens outside. There should be a popup window when you start the emulator asking to send a crash report. Maybe it is not available for local builds. The fix is in code review.
ja...@google.com <ja...@google.com> #21
ja...@google.com <ja...@google.com> #22
Do you mind trying API34? We have a new camera HAL there.
co...@protonmail.com <co...@protonmail.com> #23
mi...@fresha.com <mi...@fresha.com> #24
la...@gmail.com <la...@gmail.com> #25
ok...@gmail.com <ok...@gmail.com> #27
el...@gmail.com <el...@gmail.com> #28
But it lags
yes, it does, because our rotation is not as efficient as vImageRotate90_ARGB8888.
and then crashes
I can't repro it with a build-in camera in my laptop. What camera do you use? Do you see a crash upload dialog to upload it (please share the ID if you have one)?
ch...@gmail.com <ch...@gmail.com> #29
I can't repro it with a build-in camera in my laptop. What camera do you use?
You can use OBS Studio or XSplit VCam to create a virtual webcam, or you can purchase any Logitech camera, both of which should cause a crash.
Do you see a crash upload dialog to upload it (please share the ID if you have one)?
The dialog doesn't appear at all.
ch...@gmail.com <ch...@gmail.com> #30
ad...@gmail.com <ad...@gmail.com> #31
You can use OBS Studio
No crash, see the emulator screen recording. What resolution do you use in OBS Studio?
al...@gmail.com <al...@gmail.com> #32
What resolution do you use in OBS Studio?
1280 * 720. By the way, I'm using mac mini 2023(M2).
- simulator version: sdk-repo-darwin_aarch64-emulator-10914596
- log(only four lines)
VERBOSE | Timed out with running command |/Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am broadcast -a com.android.emulator.multidisplay.START -n com.android.emulator.multidisplay/.MultiDisplayServiceReceiver |
[54176:8959974:20231007,XXXXXX.766822:WARNING in_range_cast.h:38] value -634136515 out of range
[54176:8959974:20231007,XXXXXX.823661:WARNING crash_report_exception_handler.cc:235] UniversalExceptionRaise: (os/kern) failure (5)
[1] 54174 illegal hardware instruction emulator -avd Test_Pixel_5_API_31 -verbose
xa...@google.com <xa...@google.com> #33
1280 * 720
Still cannot reproduce, unfortunately. I put 60FPS to match your screenshot. I also tried 720*1280, it even crops correctly.
I'm using mac mini 2023(M2)
MacBook 2021 (M1 Max).
so...@google.com <so...@google.com> #34
so...@google.com <so...@google.com> #35
The emulator camera is very slow
Description
I'll try to get more details, but wanted to bring it up at least.