-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Widescreen map (and screen mirroring) crashes the headunit on EntryEvo_ID5 #536
Comments
Thank you for the quick test! From the log, it looks like MyBMW itself is telling AAIdrive to shut down and reconnect. Of the three connection sessions, I don't see a matching number of Bluetooth disconnect/reconnections, so I suspect MyBMW's watchdog is closing the connection for some reason. Does it work longer if you have recently restarted the phone, perhaps to increase the available ram?
|
I'll try tomorrow morning (it's already night now) to reboot the phone and try again. Strangely, when the cards dropped, there was no disconnect, just the cards logo disappeared in the ConnectedDrive menu and then appeared again. |
Hi, I compiled my own version with added keys to mapbox but in the app/car I don't see any options about mapbox, only gmap. Can you add instruction on how to have gmap and mapbox in car. |
Similar to the gmap build variant, the mapbox code adds a mapbox option to the Build Variants panel. They share the same unlabelled icon in the car and have roughly the same features and options, but the map and search results come from the respective gmaps or mapbox libraries. I do need to add an icon to the Map tab in the phone UI as a clue to what brand is providing the maps data. |
I see mapbox option in build variants. Will test it today. Is it/Will be possible to have both maps present in car ? So you can choose on the go, what to use. |
No, supporting both map providers in the same build is not planned. Of the few people who are inclined and capable of building the gmap build, very few would also want to also include the lower-quality mapbox information. |
When viewing the map and playing in Spotify today, entrynav2 froze - the sound disappeared and the image of the map froze. At the same time, when I turned off the bluetooth on my Samsung s8, entrynav2 remained the same, only restarting entrynav2 helped. Maybe my old phone is running out of memory? |
Is there perhaps some commonality of the IDrive versions that are experiencing this? Can you share the IDrive Version from the Car Information tab? My car (which seems to be working fine) is running |
hmi.type: BMW ID6L |
I wonder, is it a memory pressure thing, causing MyBMW to lock up? My Galaxy S9 with 4GB of ram hasn't experienced this problem ever. Does it work slightly better after a fresh reboot of the phone? |
By the way, I still use MyBMW 1.4.3, later builds periodically do not start a connection with the car until I launch the application on my smartphone. All greens are off. I think 4 Gb is critically small. |
Also encountered this while using screen mirroring with Spotify in the background. I'm going to try with YouTube music - maybe there's some memory leak with Spotify? Galaxy S21 5G |
@unlive74 by any chance do you also have a SmartWatch linked to your phone? I'm thinking maybe the Bluetooth connection can't handle a watch and the idrive connection in parallel? |
@bogdan-calapod There are no additional bluetooth devices. Absolutely clean phone - stock firmware, recently did a factory reset ... ByBMW 1.4.3 (newer builds are periodically unloaded from memory) |
Hmm, I'm on My BMW 2.3.3 (latest) and except from when running screen mirroring or the new integrated map I've never had OOM errors |
I have same issues of unlive74, i have usually a MiBand4 Always connected with the phone. I noticed that if i use mirroring or Mapbox only, usually i have no issues. If i listen my MP3 collection with musicolet at the same time, 90 % of times i get some freezing as described by unlive74, or sometimes the music goes on but the system Is freezed ( no Song swiching, no cover changing on id6 tiles, no possibility to change connected app..) Sorry but up until now my phone does not have root anymore so i struggle to get good output from logcat |
@berseker I'm seeing the same behavior, even with YouTube Music, might be something related to playing music whilst doing casting causing a memory leak? |
I use no home screen widgets on my Galaxy S9 |
I use only the Google search bar widget.. in any case i really would like to help more but i noticed that my phone not rooted basically gives me a logcat of a Few seconds , It doesnt show any history.. do you have suggestions to give me? (Or must i root the phone?) |
The logcat buffer size can be adjusted from within the Developer Tools section of the Settings. |
I have 2 widgets - weather and google search. The size of the map does'nt affect the freezes, the map hangs in the same way, sometimes it happens if spotify or another music source is turned off. Soon I'll need to go to the dealer, I'll ask him to update the program in my Entrynav2, maybe it will help. Although the correct and logical step is to change the phone, 4 Gb is too small. |
As far as i can see, unlive74 hmi release Is more recent than mine |
Went for a short drive with the older screen mirroring apk (the one with the smaller display view) with YouTube (not music) in background and after disabling the Samsung adaptive battery. Happy to report that I haven't experienced any background crashes. |
Experiment to try to fix #536 crashing the headunit
Try out this experiment build which adds a 30ms delay after each frame, to see if that gives enough time for the car to flush out whatever buffers and not crash. It should be a negligible change, especially over Bluetooth! |
I tried this build - 10 minutes I enjoyed life, then - everything is as usual. :( |
Seems to work a bit better for me, at least for a short drive. Only thing I see is that the map window is a bit smaller now compared to the store version Edit - it locked up after around 10 minutes, so same behavior as @unlive74 saw :( |
Thank you for the help testing! I am still entirely unable to reproduce this bug :( Do we think that the slight delay in framerate causes enough of a benefit to be merged to the main branch? Does the normal build last the same 10 minutes or much shorter? Does it work better if you close the window every so often and go back to the map? The map size difference is because the store version has the bmw_xl branch currently, while this map_delay branch is right off of the main branch. |
For me it doesn't seem to make a big difference, but if it helps with performance in some cases while not changing anything in others, I'd say it's a good idea to merge it. Does the same change apply to screen mirroring, or would that add-on need to be updated separately? |
Screen Mirroring would need the same fix applied separately, most likely. The RHMIDimensions library is shared (pending final measurements before updating that library in Screen Mirroring) but this bug would probably be in the separate code base. |
So the lockup issue is somewhere in the maps part of the app? I'm seeing the same lockup with the latest screen mirroring apk (the one that made the display bigger) but it works perfectly for pretty long drives with the original smaller display version. In my testing I've only seen the issue in the maps with the wide-screen option turned on, so I'm thinking the bug would be in the RHMIDimensions library? |
That's an interesting correlation! Screen Mirroring doesn't have the widescreen option, always going as big as possible, and it's interesting that Screen Mirroring only started having troubles after getting bigger, while the not-widescreen map never has troubles. |
I couldn't see any corellation between the amount of detail in the image and the crash rate - @unlive74 what is your experience? |
Try out this test build that reduces the screen height and doesn't display under the top statusbar of the car. It's about 60px of reduced height, multiplied by the width of the screen, and might change how often the car headunit crashes. |
I tested the same as bogdan & I can confirm that with "small" map (not fullscreen), via bluetooth only, also listening MP3 music via Musicolet all the time, I drove around 45 km without any issues with normal map, satellite image map, 3d buildings on & off. So as per my experience, there is something strange with fullscreen map going on my test was run with release 1.3.2-119-ec19e73-custom_dimensions 13 apr 2022 03:11:11 @hufman you posted while I was writing. I will try this new build & report |
I'm on EntryEvo_ID5_1907_Release (would be nice to be able to copy this from the car info screen 😅) I think it's the same as the one @berseker runs, as we had similar behaviors multiple times |
Now I tested the build 1.3.2-119-1879e2c-map_withoutpadding. I removed the 3D buildings, leaving only traffic.The fullscreen map fell immediately - literally 10 seconds after the start. After that, there was a problem with establishing a bluetooth connection: it wasn't possible to connect with "apps" - rebooting the phone didn't help, it was solved after removing the bluetooth connection and re-pairing. And by the way, this is not the first time I have to do this shamanism after the maps freeze. The small map worked fine for about an hour. upd: I ride for three days with a small map - no problems. |
Same here - worked for ~2 minutes in wide-screen mode and then crashed. Half width map seems more stable (went for a pretty short drive so can't say it won't crash, but for 10 minutes it worked okay) Side note - I feel like the 60px off the top make the Navi look more "native", I like it 😀 Edit - the small map crashed after about 15 min. |
@berseker what phone are you using? Any special settings? |
Xiaomi Redminote 7 with custom android 11 rom (arrowOS) |
I added a warning in the Phone UI if the car is detected with EntryEvo, saying that widescreen mode might be unstable, which should be enough of a disclaimer to unblock the release. I haven't heard of any other models that are having these troubles, even with Mapbox saying there are currently 120 monthly users. |
@berseker If I read your messages right, those screenshots with the cut-off compass are from your test with map_withoutpadding, which makes sense to me. The bmw_xl branch has the tweak for the sidebar width, which was included in custom_dimensions but not map_withoutpadding. |
@hufman yes sorry for the confusion, I confirm the last screenshots have been taken from release 1.3.2-119-1879e2c-map_withoutpadding 20 apr 2022 20:32:44 |
Indeed, I mostly stopped development on the gmaps variant since mapbox will be used by many more people, and the bmw_xl branch has yet to be merged. I'm planning to merge it this week though! |
I confirm I still did not have a single crash with version 1.3.2-119-1879e2c-map_withoutpadding 20 apr 2022 20:32:44 used mostly in fullscreen mode via bluetooth. usually when I had issues, I got crashes sometimes instantly at time of map opening |
After running the Force Stop Apps app I have driven about 15 minutes with the wide-screen map on and it didn't crash. Will test out a bit more tomorrow, but it might be some other background service that is eating up resources that AAIDrive needs to push the map updates. |
Thank you for this opportunity to test the maps. This is wonderful. First bug report: maps are falling. Sometimes with Spotify
view from 9:24 logcat_02-22-2022_09-29-02.zip
The text was updated successfully, but these errors were encountered: