-
Notifications
You must be signed in to change notification settings - Fork 89
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
Latest Google AA version 5.0.500224 causing restarts with Headunit AA_v1.12 #173
Comments
Looks like this is an out-of-memory issue? Adding the swapfile on a USB2 drive (Sandisk) seems to avoid restarts on setting map destinations. However, this may run into a previous issue where the USB locks up on start-up or re-start of the car ignition. I'll update my findings here. |
I also went on a witch hunt to find the cause. Eventually found this: https://support.google.com/androidauto/thread/13722361?hl=en&msgid=28126850 My Google Play Services has since updated to 20.04.14 and it solved the issue. |
I can't confirm your result as Play services remains at 20.03.13 with my version of Android 10 (OnePlus OS 10.3.1). However it is likely that the memory needs of the AA head unit are not going to reduce with future navigation and media apps. Luckily so far adding the swap file (1Gb) effectively doubling the memory available solves the problem and I guess the active code runs in real memory (paged blocks in RAM). There does not seem to be any speed hit in swapping views or applications. If necessary a CMU reboot should re-fresh what gets pushed to the swapfile. Leaving the USB drive connected is not a problem as the small size is nearly flush with the hub. Using this drive to store music files would probably be a bad idea as this will put the USB media player into memory and invite USB usage conflicts. I hope this helps other Mazda CMU users who have hit this problem? |
This has definitely affected me too. Usually if I start maps before I plug in and then connect. And spam home key it works fine as long as no media or maps are loaded. I'm staying on 55 until there's support for aio and aa on 70+ if that's even going to still happen. |
I'm having the same issue, but the results didn't improve when I used the AIO swapfile tweak. Do you have any ideas? Thanks |
Hi Guys, |
This is getting a bit more difficult to pin down. The swapfile has definitely made my install stable. One thing I do is always let the swapfile get fully loaded on CMU reboot before connecting the phone. The headunit app should then load making space for itself to run in RAM. I think the choice of USB drive is important, a speedy low consumption drive (USB2 only) will avoid loading the USB hub. Unplugging the SD navigation card should also help. The software versions I'm using are: So far logging has only shown up this issue which I don't think is fatal: |
I also have been experiencing issues in the past few days - using AA 1.12 on an abarth 124 v55 CMU with a pixel 4. Things worked great (other than the usual audio stutter) up until a few days ago where the headunit app crashes, restarts, and crashes again (on and on in a loop pretty much until I disconnect the phone from the USB) if using map navigation (Waze or gmaps). It's worth mentioning that if I connect to AA using WiFi then it seems to work just fine but the audio stutter is constant and completely unenjoyable |
This is 100% the symptoms of the play services bug. I had constant restarts for a week or so and it suddenly fixed itself. Check your version of Google play services. |
I faced the same issues that describe above, after clean cache and data for Google play services and Android System WebView seems problem solved (even audio stutter improved). phone - pocophone f1 |
Clearing of caches on the phone apps which queue up and transmit data to the head unit makes sense. The transmission of data is dependent on the thin pipe available which is USB 2 and caches are designed to smooth out peaks of demand. This is why we get some stuttering of audio when navigation data hogs the connection or switching audio streams. Wi-Fi connection is likely to be worse, having lower bandwidth. The headunit is also caching its side of the communications. The risk here is caches in memory can hit the limit of memory available and so crash the headunit. I'm trying to log the memory usage over a period of use to see if the pattern of free memory and if we simply hit the top of fixed RAM at only 1Gb! http://www.2x4logic.com/mazdaconnect.html |
@nirlav is WebView actually used on your phone? On Pixels it is not used by default since several versions of Android, and instead the browser has app rendering directly for chromium based Android browsers and possibly others. |
Yes, I can change it from developer options under the WebView implementation section. |
I tried to clear just the cache of the Google Play Services and the Google System Webview but it didn't resolve my restart problem :( |
Same. Cleared cache (and even data) of pretty much everything related. Google play services version is 20.04.14 (120400-294335909). Still crashes |
I have this issue. Started about a week ago. phone - pocophone f1 I have a second phone that I keep plugged into the car. It's a Mi A1 with Pie and it only gets internet via hotspot when I'm in the car. In that case that phone worked for several days after my poco started failing until it eventually also started failing, suggesting that this was indeed caused by an update. |
Same issue for me after update of Google Maps to version 10.35.2 this morning (it was release earlier but I waited before update). AA is now useless as ti restarts every few seconds. Will try the swap file but doubt it will fix anything. Maybe this has something in common? #174 |
I've tried sending feedback https://support.google.com/androidauto/answer/6377918?hl=en-GB, hopefully capturing bug reports and sending them helps in the long run. |
@Trevelopment will there be a release with this PR? |
It's allready merged into current branch. Anyone have new compilation? |
According to the log in the first post, yes:
Is this something caused by the AA app, or is that the Maps app which can decide to do it? |
Hi! Managed to build current master branch and I can confirm issue is solved for me. Even stutters with waze are gone now. Will need more testing on road with normal use but I managed to receive a phone call while listening to spotify and searching a route in Google Maps and nothing crashed. Very happy! I hope I can share it here with you ;) |
Is this fixed version in the latest AIO 2.8.5?
|
Nope. 2.8.5 contains AA 1.12 |
This does not pass the installer smoke test for me. It seems to work if you copy the whole |
Tested your build and it works great! I built the same following some of the above comments. No need for the swapfile so that is gone. It probably masked the problem not solved it. If the headunit can happily run in the free memory available then it will run nicely. In testing I noted the stuttering was only now as a result of source switching when AA gives traffic info or route information. If voice guidance is enabled this will be annoying. Turning off notification sounds in the phone AA app settings is probably a good idea. Hopefully @Trevelopment will make a build for a release through the MZD-AIO tool. I will close this thread as it appears to be solved. Thanks for your help. |
So guys, just a question. How should we use the build mentioned below?
|
You should compile with the latest AIO tool and then replace the files in config/androidauto for the provided above. |
So, loaded this in my M3 on Friday, and then did a 90ish minute drive to someplace new, and it is working great now. Thanks! |
So, this are the steps to solve the issue:
Those were the steps I followed and everything is working fine now. |
Hello again guys. It is indeed working. But not perfect. It doesn't crash but it is impossible to have music streamed from neither YT music, nor Spotify when Waze is on screen and in particular when having to redraw something on screen. Has anyone managed to have both thing at once? |
I think you need to combine it with your current AIO package. Just copy the config folder i think |
Yap. That is exactly what I did. |
Hi. I was never able to use spotify and waze. It would stutter the music every time waze is doing animation, view change or calculation. I am stuck with gmaps and I believe the issue is actually waze related. |
About the only problem I had so far with the new build was one hard freeze while navigating. Couldn't even soft-restart the CMU. I've been using Waze with Spotify for ages now. In a busy city Waze tends to make Spotify stutter, but only when not actively navogating, so it's probably a "too much on the screen" issue. Other than that, it works quite well, though Waze's routes tend to take a lot of unnecessary detours, but that's another story... |
Hello. I did everything according to the instructions and it is almost OK. However, there is almost no voice guidance in navigating Google Maps. Do you have it too? What could be the reason ? |
@Robik6 what is your FW version? |
I don't have my car with me now. I will give it to you when I check it. From what I remember it somehow 56 ....... 112 |
Wait, you said "almost no voice guidance" does that mean you get some voice guidance? Sounds like a settings issue make sure all your settings are correct because it works just fine. |
Yes, sometimes they are, and in most cases they are not there. I will check these settings and let you know, but it will be around the evening or tomorrow. Thanks. |
I too have a similar issue with voice navigation - it doesn't work, until you play some kind of audio directly from the CMU, using one of the AA-enabled applications (for example, a single second from a song via VLC or Telegram). Then, the audio channel is completely dominated by AA and there is no radio anymore. If I play radio using a radio app on my phone, it is interleaving with the voice navigation, but stutters. |
OK that makes sense it is an audio focus issue |
On the basis that some users have issues with audio interleaving/stuttering I think this thread should remain open? Maybe some further though needs to go into the logic around interleaving as in the hu_aap.cpp. Maybe also look at Gst streaming setup in outputs.cpp (L483) which may give greater tolerance of stream switching without dropping blocks/frames? |
Could stuttering be related to HUD navigation? I have CMU 56.00.100A and latest headunit AndroidAuto_v1.05-52-g54b38d6 (the one someone compiled in this thread) and HUD navigation continues to fail; it only shows the intital arrow for the first turn and it gets stuck, will not go away until you exit AA and switch CMU Navigation enabled setting on and off again. I leave this setting off all the times but it does not prevents the arrow to appear. This also happened in headunit AA-v1.12 and it is very annoying. I read somewhere CMU 59.x was needed to HUD to work, is this true? If so, for all of us that can't upgrade it would be nice HUD navigation is either fixed or a setting to shut it off is available. I'd prefer to have that HUD off/on setting because I think it also contributes to Spotify stutter when maps auto-zoom or re-positions on a turn. I see stutter is almost all fixed by that latest 'user-compiled' version and turning off Waze auto-zoom, but still it happens on hard turns, for example in roundabouts, so I think maybe the HUD functionality is related. |
Hello all. |
To Trevelopment I checked fw 56.00.513 Today I went a bit and it turns out that everything works great, except for the voice guidance of google maps navigation, but in conjunction with the car radio. With internet radio installed on the smartphone and the spotify application is great |
Like @Soukyuu, I have gotten some freezes. Once it led me to miss a highway exit thinking it is still 1 mile away. Twice, my touchscreen and car infotainment buttons stopped accepting inputs but google maps continued to work properly (not frozen). I installed AIO 2.8.4 with |
Play voice over Bluetooth seems to be a new feature which I don't remember seeing before? It can be accessed in AA for mobiles version with no destination it is set in settings on the 3 dot menu. Allowing voice guidance over Bluetooth makes audio interruptions significantly worse. Other users may confirm this? The main issue is that voice notifications are not connected at startup until another audio app is launched. The potential fix is to check if audio focus is set during the headunit launch. A look at the startup in main.cpp + callbacks.cpp may show if or how this should be working? Maybe AA should get focus at startup then other apps can take it over. |
Voice over bluetooth has been in maps since I can remember. I found articles from as early as 2015 that mention it! My car didn't play maps audio at all, until I turned off Play voice over bluetooth. |
So the current solution to solve AA from getting stuck in a disconnect loop is to downgrade AA t v.1.05? If so, I currently do not have a working touch screen, how can I incorporate the version downgrade into MZD AIO tweaks so that I can add "skip comfirmation" to the build? |
Its actually not a downgrade, its should be an upgrade, its the current branch of the github. I dont know why the file is named 1.05 You can just incorporate any addon/tweak of the MZD AIO, including Android Auto, then follow this step by step guide posted some comments above: |
Make that two freezes (on the same intersection). It's a 120° turn, so a lot of map spinning -> a lot of video data, so I think this might still be related to the interleaved data or the PR that attempted to fix it. I've also had one instance of AA video going completely black, but AA remaining otherwise functional. Re-connecting the phone did not change anything. Would be cool, if we could restart AA only instead of having to reset the whole CMU (which btw resets all CMU settings, or at least the audio ones). |
Same to me. it freeze my Spotify sound when i turn the car and the map spinning around. |
Is this fix now incorportated into the main Mazda AIO app? As that is running Version 1.12 AA app or do Is till need to compile with the above fix? |
headunit.log
Since the latest version of Google's AA (5.0.500224) arrived 23rd Jan the Headunit (AA_v1.12) experiences restarts or crashes. It appears to be when there are major map updates, initiating a new destination and change of focus caused by a notification.
Testing this version with Android Studio DHU (Android Auto Desktop Head Unit emulator) AA works fine even when a media app is playing and using USB2 connection to the emulator (port tcp:5277).
The attached log may show what is going on? To try to get some better debug I've managed to compile the latest version in the master branch in the hope it will show some more useful debug in the log. Any suggestions on which debug lines to uncomment?
The text was updated successfully, but these errors were encountered: