Status Update
Comments
xi...@google.com <xi...@google.com>
rk...@google.com <rk...@google.com> #3
Here is what I found:
On API 31+, time was not updated after the host was waken up. While on API 30 and under, time was updated after host was waken up. The main difference is caused by switching the modem simulator. In API 30 and under, time will be updated whenever signal strength query is received.
Looking at the code in API 31+ for time update when signal strength query is received, I think it is possible that timeUpdate is not invoked
void NetworkService::HandleSignalStrength(const Client& client) {
std::vector<std::string> responses;
std::stringstream ss;
if (WakeupFromSleep()) {
misc_service_->TimeUpdate();
} else if (first_signal_strength_request_) {
first_signal_strength_request_ = false;
misc_service_->TimeUpdate();
}
android_last_signal_time_ = time(0);
auto response = BuildCSQCommandResponse(GetCurrentSignalStrength());
responses.push_back(response);
responses.push_back("OK");
client.SendCommandResponse(responses);
}
rk...@google.com <rk...@google.com> #5
rk...@google.com <rk...@google.com> #6
Still seeing this issue with Emulator 31.3.14 Stable. Refer to the screenshot.
rf...@gmail.com <rf...@gmail.com> #7
@devki How do I know if the fix is in 31.3.14 stable? Any tool for checking if a CL went into the specified version?
rk...@google.com <rk...@google.com> #8
be...@scandit.com <be...@scandit.com> #9
RE#9 Thanks Devki. Actually the fix is included in aosp-emu-31-release branch.
rk...@google.com <rk...@google.com> #10
Upload a new
rf...@gmail.com <rf...@gmail.com> #12
Hi Weilun, Devki,
Still seeing this issue on Emulator 31.3.15 Stable build.
Can you check if the changes are in 31.3.15 or not?
tr...@gmail.com <tr...@gmail.com> #13
RE#12 31.3.15 uses build 9456632 so it should have included the fix. Let's sync up in chat.
rk...@google.com <rk...@google.com> #14
Retried as per offline discussion with Weilun, sometimes the time adjusts automatically but sometimes it gets adjusted after interacting with AVD.
le...@gmail.com <le...@gmail.com> #15
I think we can close the bug as verified.
rk...@google.com <rk...@google.com> #16
I'm still seeing this issue in Emulator 32.1.10.
le...@gmail.com <le...@gmail.com> #17
RE#16 Hi minyushov@, would it be possible to provide more details with what kind of host OS and what are the repro steps I can follow? Thanks!
rk...@google.com <rk...@google.com> #18
Hi
I'm using MacBook Pro with Apple Silicon and macOS Ventura 13.0.1.
Steps are pretty straightforward:
- Power adapter is plugged in. Energy mode is set to Automatic for both 'On battery' and 'On power adapter' options.
- Run emulator.
- Keep it running until macbook automatically goes to sleep.
- Wake it up after ~10 minutes and observe the time in the emulator. It shows not the actual time but the time when macbook fell asleep.
I'm not sure that this happens all the time but often enough.
le...@gmail.com <le...@gmail.com> #19 Restricted
rk...@google.com <rk...@google.com> #20
#18
One more question: After step 4 Wake it up after ~10 minutes and observe the time in the emulator. It shows not the actual time but the time when macbook fell asleep.
, have you tried to move the emulator window? I think the time should be updated when you starting using the emulator.
le...@gmail.com <le...@gmail.com> #21
I'm not sure that I've moved the emulator window but usually I install our app using Android Studio and see network errors due to time difference between the app and our servers. So it looks like the time isn't updated in this case.
rk...@google.com <rk...@google.com> #22
Em sex., 3 de fev. de 2023 15:08, <buganizer-system@google.com> escreveu:
sa...@gmail.com <sa...@gmail.com> #23
RE#21 Another question, are you using the emulator in a tool window? I think it might be the specific scenario which still has bug.
le...@gmail.com <le...@gmail.com> #24
I'm launching the emulator in a standalone window.
le...@gmail.com <le...@gmail.com> #25
RE#24
Ok, I tried it myself and I could not reproduce unfortunately. With have you tried to move the emulator window? I think the time should be updated when you starting using the emulator.
being said, would it be possible for you to try it again?
rk...@google.com <rk...@google.com> #26
Sure, will try
le...@gmail.com <le...@gmail.com> #27
mandaram aí por escrito
Em sex., 3 de fev. de 2023 15:59, <buganizer-system@google.com> escreveu:
rk...@google.com <rk...@google.com> #28
Unfortunately, it happened again. Moving a window did not help.
Some additional info:
- I use a pair of external displays connected via Type-C, Bluetooth keyboard and mouse.
- Power adapter is plugged in. This way I can safely close a macbook lid and continue using it with the external displays. When macbook is sleeping I can wake it up by pressing a key on a keyboard or by clicking a mouse button.
- Today I left my workplace for 40-50 minutes. When I came back, external displays were in standby mode. After waking the macbook up, I've reproduced the issue.
ru...@gmail.com <ru...@gmail.com> #29
RE#28 I realized what went wrong. My fix didn't merge into the 32 release. It's only available in the 31 release and the dev branch. Let me resolve that issue real quick and release a new version. Thanks for your input!
ru...@gmail.com <ru...@gmail.com> #30 Restricted
rk...@google.com <rk...@google.com> #31
ranjitkumar@
ru...@gmail.com <ru...@gmail.com> #32
rk...@google.com <rk...@google.com> #33
Host: Darwin Kernel Version 22.4.0 arm64
tr...@gmail.com <tr...@gmail.com> #35
The fix is available in the next canary and stable release in June.
rk...@google.com <rk...@google.com> #36
rk...@google.com <rk...@google.com> #39
rf...@gmail.com <rf...@gmail.com> #40
Android emulator version 33.1.4-9936625
Host: macbook pro M1 Max, macOs: 13.5.1 (22G90)
Is there anything I need to do to fix this?
sk...@gmail.com <sk...@gmail.com> #42
rk...@google.com <rk...@google.com> #43
RE#42 Thanks for the feedback on the emulator. To help us troubleshoot this issue further, we will need more information. Please share detailed reproduction steps as much as possible of the following information:
1, Run the emulator from command line with “$ANDROID_SDK_ROOT/emulator/emulator -avd <NameOfAVD> -verbose -wipe-data” and send the logs from terminal
2, Run adb bugreport and send the zip file.
sk...@gmail.com <sk...@gmail.com> #44
I confirm 34.1.9 has no this issue anymore
rk...@google.com <rk...@google.com> #46
We are working on a better patch (the performance should be about as before and should also work on non-Max CPUs as we see here), the build should be available today-tomorrow.
rk...@google.com <rk...@google.com> #47
I shared my local build with our next patch to fix this issue.
an...@biomatrixci.com <an...@biomatrixci.com> #49
cl...@gmail.com <cl...@gmail.com> #50
Report 7d004e0f-9c06-49d8-b57e-30cd0fe4f033 is available remotely as d6281b959cb2c138
Report 149d7151-6381-46a2-83f8-1d77ab7280f3 is available remotely as 96a1cd1205509b81
rk...@google.com <rk...@google.com> #52
Hi Andi, the Android Emulator is released independently from the Android Studio. The 32.x.x version is EOL, 33.x.x will be promoted to stable soon and the webcam fixes will be available there.
an...@biomatrixci.com <an...@biomatrixci.com> #53
cl...@gmail.com <cl...@gmail.com> #54
- seems the performance is not the same as before (as already reported)
- also the image has different size as before, at least with obs before sonoma i was seeing a cropped image out of the 1280x720 but now i can see it full size on the emulator screen.
- it crash after some time (as already reported) see here: Report 5f27bfa1-d033-4b91-9dcf-53c0fcb2a09c is available remotely as 62b6433b9dd77685
rk...@google.com <rk...@google.com> #55
also the image has different size as before, at least with obs before sonoma i was seeing a cropped image out of the 1280x720 but now i can see it full size on the emulator screen.
In the first fix there is no scale function, I crop and put black everywhere I have no pixels for. When we have the scale function, we crop a smaller image and resize to fill all requested pixels.
an...@biomatrixci.com <an...@biomatrixci.com> #56
Tested on M1 Pro 10914596 emulator build and it just hang when launching default camera app with verbose printout
"
DEBUG | getMultiDisplay 0 x 0 y 0 w 1440 h 3120 dpi 560 flag 0 enable 1
DEBUG | getMultiDisplay 0 x 0 y 0 w 1440 h 3120 dpi 560 flag 0 enable 1 (3x)
ERROR | -[MacCamera init:]: cannot add camera capture input device
ERROR | camera_device_open: Unable to initialize camera device.
ERROR | _camera_client_query_connect: Unable to open camera device
"
rk...@google.com <rk...@google.com> #57
Hi Andi, thank you for reporting this. I think this is a different problem here as 10914596 does not change anything related to opening the device and 10937044 probably missed even more around this case.
rk...@google.com <rk...@google.com> #58
I am marking this as "fixed" for our internal release process. We are still looking into it. The changes should be available in 34.1.7 (canary) and 33.1.21 (stable).
in...@gmail.com <in...@gmail.com> #59
For anyone wondering how to do implement this fix, follow the instructions in post #39 above. Download the file and follow the instructions in post #39 (do not just unzip the file!). Go into the unzipped folder and copy the 'emulator' folder to Users/<user>/Library/Android/sdk overwriting the existing 'emulator' folder.
When you launch Android Studio and start a new emulator it will be using the fixed version. However, if you check under Tools > SDK Manger you will not see the emulator installed (this is due to using the version provided above), ignore this.
I can confirm that I had the original issue before overwriting the 'emulator' folder, and now, I do not have the original issue any longer. Camera now works.
an...@biomatrixci.com <an...@biomatrixci.com> #60
#56 is due to running emulator as standalone as described in #41 and it may not have the necessary camera permission.
Thank you for the prompt response.
fu...@gmail.com <fu...@gmail.com> #61
kr...@gmail.com <kr...@gmail.com> #62
But the emulator is crashing again when using Webcam0 on 34.1.8 (Canary)
This is one report ID for it:
4b297feadfa6737b
ch...@vanoijen.eu <ch...@vanoijen.eu> #63
in...@gmail.com <in...@gmail.com> #64
vi...@gmail.com <vi...@gmail.com> #65
I use macbook pro m2 sonoma.
pa...@gmail.com <pa...@gmail.com> #66
rk...@google.com <rk...@google.com> #67
The Emulator is release independently from the Android Studio. This fix is available in the Emulator 34.1.11 which is shipped with the Android Studio Iguana (2023.2.1 Canary 14).
in...@gmail.com <in...@gmail.com> #68
Perhaps this can be considered, as otherwise it is confusing how it is independent for those of us that wish to stay on our current version of Android Studio for various other reasons.
rk...@google.com <rk...@google.com> #69
If the Emulator is released independently, I would expect that it would also be updated in SDK Manager for prior versions of Android Studio, no?
We ship the emulator through several channels (stable, canary, beta), if you are on the stable channel, you will get the emulator updates later. Consider getting
ta...@honestbank.com <ta...@honestbank.com> #70
The fix does work with the actual webcam but it BREAKS the virtual webcam. Here's the error message:
ERROR | -[MacCamera captureOutput:didOutputSampleBuffer:fromConnection:]: error in allocate rotateInputBuffer_: -21602
ERROR | -[MacCamera captureOutput:didOutputSampleBuffer:fromConnection:]: error in allocate rotateInputBuffer_: -21602
(127x)
ERROR | _camera_client_query_frame: Unable to obtain first video frame from the camera '7626645E-4425-469E-9D8B-97E0FA59AC75' in 2001 milliseconds: Undefined error: 0.
Please help take a look
do...@gmail.com <do...@gmail.com> #71
Also got the same error as above comment. The 34.1.11 breaks emulator with virtual cam on Sonoma.
ve...@google.com <ve...@google.com> #74
OS: Mac M1(Sonoma 14.1.2).
Emulator Version: 34.1.13-11169323
API: API 33, 34
rk...@google.com <rk...@google.com> #75
This one works, thank you! Will this new version be released anytime soon?
Please try our latest stable push (33.1.23).
ti...@gmail.com <ti...@gmail.com> #76
All of a sudden, with the 33.1.23 version, I cannot record the screen anymore in Android Studio in mp4 format. It produces a 11 KB file whatever I do. Does anyone else experience this problem? Thanks!
rk...@google.com <rk...@google.com> #77
Hi Timar, please file a new bug with repro steps and screenshots. Please specify the Android Studio version, the Emulator version and the system image you use.
li...@getstream.io <li...@getstream.io> #78
ti...@gmail.com <ti...@gmail.com> #79
rk...@google.com <rk...@google.com> #80
Timar, file a new bug into the Android Studio component.
in...@gmail.com <in...@gmail.com> #81
I am forced to use other devices as the performance is so poor after the camera opens. Unfortunately it is not possible to use just macOS any longer to work on Android/Flutter projects because of this.
It's been a couple months so I am very hopeful I am just missing the fix?
Thank you for the hard work.
ar...@rexel.com <ar...@rexel.com> #82
rk...@google.com <rk...@google.com> #83
You can try the latest Emulator version from
If the performance is still bad, you could try fixing this yourself and send us your patch. The Emulator is open source, this is what we changed:
in...@gmail.com <in...@gmail.com> #84
I wish this was my area of expertise. Hopefully someone with the capability will work on this, it's extremely significant for Android Studio on macOS obviously.
in...@gmail.com <in...@gmail.com> #85
Unfortunate.
lu...@gmail.com <lu...@gmail.com> #86
rk...@google.com <rk...@google.com> #87
still poor performance after opening camera.
Hi industrialstrengthdatasystems, if you can build Emulator yourself, please try this patch:
rk...@google.com <rk...@google.com> #88
luunguyen0811, this is tracked in
bi...@gmail.com <bi...@gmail.com> #91
Downgrading to Ventura solves this problem, but it's not an ideal solution.
rk...@google.com <rk...@google.com> #92
Hi bien2k4. Unfortunately, MacOS camera experts are in short supply here :) Thank you for reporting that the issue does not repro on Ventura.
rk...@google.com <rk...@google.com> #93
BTW, the camera performance issue is tracked here:
Description
Android studio emulator crashes when i open camera app when webcam0 is enabled iam using macOS Sonoma part of my catalog below device VINTF manifest. "09-28 17:36:47.910 354 354 I RefreshRateSelector: Display 4619827259835644672 policy changed 09-28 17:36:47.910 354 354 I RefreshRateSelector: Previous: {defaultModeId=0, allowGroupSwitching=false, primaryRanges={physical=[0.00 Hz, inf Hz], render=[0.00 Hz, 60.00 Hz]}, appRequestRanges={physical=[0.00 Hz, inf Hz], render=[0.00 Hz, inf Hz]}} 09-28 17:36:47.910 354 354 I RefreshRateSelector: Current: DisplayManagerPolicy{defaultModeId=0, allowGroupSwitching=false, primaryRanges={physical=[60.00 Hz, inf Hz], render=[60.00 Hz, 60.00 Hz]}, appRequestRanges={physical=[60.00 Hz, inf Hz], render=[60.00 Hz, 60.00 Hz]}} 09-28 17:36:47.910 354 354 I RefreshRateSelector: 0 mode changes were performed under the previous policy 09-28 17:36:47.911 316 375 I Gralloc4: mapper 4.x is not supported"
I tried to reinstall nothing worked iam using lates android studio Android Studio Giraffe | 2022.3.1 Patch 1 Build #AI-223.8836.35.2231.10671973, built on August 17, 2023 Runtime version: 17.0.6+0-17.0.6b829.9-10027231 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Metal Rendering is ON Registry: external.system.auto.import.disabled=true ide.text.editor.with.preview.show.floating.toolbar=false