AAIdrive icon indicating copy to clipboard operation
AAIdrive copied to clipboard

Widescreen map (and screen mirroring) crashes the headunit on EntryEvo_ID5

Open unlive74 opened this issue 2 years ago • 56 comments

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

unlive74 avatar Feb 22 '22 04:02 unlive74

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?

[02-22 09:18:57.172 4334:4503 I/CachedBluetoothDevice]
updating profiles for BMW 37069

[02-22 09:21:09.058 4299:5016 W/bt_rfcomm]
port_rfc_closed: RFCOMM connection closed, index=29, state=3 reason=Closed[19], UUID=1101, bd_addr=..., is_server=0

[02-22 09:21:09.073 27832:8470 W/CarProber]
Exception while pinging car

[02-22 09:21:09.126 27832:27832 I/IDriveConnectionListen]
Received car announcement: com.bmwgroup.connected.accessory.ACTION_CAR_ACCESSORY_DETACHED


[02-22 09:21:15.731 4334:4503 I/CachedBluetoothDevice]
updating profiles for BMW 37069

[02-22 09:21:16.108 27832:27832 I/IDriveConnectionListen]
Received car announcement: com.bmwgroup.connected.accessory.ACTION_CAR_ACCESSORY_ATTACHED bmw [email protected]:4007

[02-22 09:23:14.107 27832:13059 I/CarThread]
Shutting down thread MusicAppService due to RuntimeException: org.apache.etch.util.TimeoutException: timeout waiting for de.bmw.idrive.BMWRemoting._result_rhmi_setData(-1822907036)

[02-22 09:23:14.300 27832:27832 I/IDriveConnectionListen]
Received car announcement: com.bmwgroup.connected.accessory.ACTION_CAR_ACCESSORY_DETACHED


[02-22 09:23:20.678 27832:27832 I/IDriveConnectionListen]
Received car announcement: com.bmwgroup.connected.accessory.ACTION_CAR_ACCESSORY_ATTACHED bmw [email protected]:4007

[02-22 09:23:20.890 4334:4503 I/CachedBluetoothDevice]
updating profiles for BMW 37069

[02-22 09:27:36.856 27832:8470 W/CarProber]
Exception while pinging car

[02-22 09:27:36.863 27832:27832 I/IDriveConnectionListen]
Received car announcement: com.bmwgroup.connected.accessory.ACTION_CAR_ACCESSORY_DETACHED

[02-22 09:27:53.521 4334:4503 I/CachedBluetoothDevice]
updating profiles for BMW 37069

hufman avatar Feb 22 '22 17:02 hufman

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.

unlive74 avatar Feb 22 '22 17:02 unlive74

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.

jezikk82 avatar Feb 23 '22 22:02 jezikk82

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. Do you see the mapbox options in the Build Variants panel? You might need to use the File>Sync with Gradle option to update the list.

hufman avatar Feb 23 '22 22:02 hufman

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.

jezikk82 avatar Feb 24 '22 06:02 jezikk82

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.

hufman avatar Feb 24 '22 15:02 hufman

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? logcat_02-26-2022_11-34-01.zip around 11:32

unlive74 avatar Feb 26 '22 19:02 unlive74

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 EntryEvo_ID5_2007_Release_ID5_2007-510-2012A Build 33-Rev:210125 2020-03-12

hufman avatar Mar 24 '22 14:03 hufman

hmi.type: BMW ID6L hmi.version: EntryEvo_ID5_2007_Release ID5_2007-510-2012A Build 33 - Rev:210125 2020-03-12 10:34:41 navi: false tts: false vehicle.type: F39

unlive74 avatar Mar 24 '22 15:03 unlive74

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?

hufman avatar Mar 31 '22 19:03 hufman

Screenshot_20220331-214141_AAIdrive_1 I have the same behaviour reported by unlive74.. phone Is a redminote 7 by Xiaomi, 4gb ram

berseker avatar Mar 31 '22 19:03 berseker

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.

unlive74 avatar Apr 01 '22 04:04 unlive74

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? logcat_02-26-2022_11-34-01.zip around 11:32

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 Android 12 OneUI 4.1 with 8 GB RAM + 8GB RAM Plus setting

bogdan-calapod avatar Apr 11 '22 12:04 bogdan-calapod

@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 avatar Apr 11 '22 14:04 bogdan-calapod

@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)

unlive74 avatar Apr 11 '22 14:04 unlive74

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

bogdan-calapod avatar Apr 11 '22 14:04 bogdan-calapod

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 avatar Apr 11 '22 16:04 berseker

@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?

bogdan-calapod avatar Apr 11 '22 17:04 bogdan-calapod

@unlive74 @berseker by any chance do you also use widgets on your home screen?

I have quite some widgets set up, maybe they fill up the memory and the os prioritizes them for some reason?

@hufman do you use many widgets on your home screen?

bogdan-calapod avatar Apr 12 '22 19:04 bogdan-calapod

I use no home screen widgets on my Galaxy S9

hufman avatar Apr 12 '22 19:04 hufman

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?)

berseker avatar Apr 12 '22 19:04 berseker

The logcat buffer size can be adjusted from within the Developer Tools section of the Settings. Have you noticed any correlation between the Widescreen mode of the map and the crash chances? I wonder if (especially for @unlive74's headunit crash) the JPG file size is using up too much memory in the infotainment system, and perhaps it might crash less often if the JPG is smaller and not-widescreen. Perhaps @berseker's car has a slightly newer version and so it only restarts the Bluetooth connection of his car in this situation instead of locking up entirely.

hufman avatar Apr 12 '22 23:04 hufman

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.

unlive74 avatar Apr 13 '22 05:04 unlive74

As far as i can see, unlive74 hmi release Is more recent than mine

berseker avatar Apr 13 '22 05:04 berseker

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.

bogdan-calapod avatar Apr 13 '22 22:04 bogdan-calapod

So I drove around a couple of hours with waze via screen mirroring (small window) and it worked just fine, meanwhile the large map or large version of screen mirroring always locks up after a couple of minutes or so - I feel like the problem is related to processing the larger image somehow 🤔

bogdan-calapod avatar Apr 15 '22 09:04 bogdan-calapod

@bogdan-calapod And what happens in those few minutes before the app freezes? It seems to me if the problem is in large files, then this should happen faster?

unlive74 avatar Apr 15 '22 19:04 unlive74

Music stops if it is playing, and afterwards it seems that the car gets really confused and can't connect to any Bluetooth devices anymore unless a reboot is done.

Disconnecting works but reconnecting keeps sending Another Bluetooth operation is in progress messages until I stop the car and leave it off for a couple of minutes so that iDrive reboots.

By large files, are you referring to the large "view", as in the larger transfer that the phone has to do to the car ?

The fact that the car also locks up makes me think that there's something going wrong on the car side as well, somehow. Maybe the amount of data is too much for the car's Bluetooth to handle ?

@hufman would it make sense that USB Apps connection would not cause issues if the problem is the large "file size" ? I'm going to test this out tomorrow 🤔

bogdan-calapod avatar Apr 15 '22 23:04 bogdan-calapod

I'm not sure! Both the map and the screen mirroring send higher quality JPGs over USB, so the filesize theory would suggest it should happen faster over USB. Otherwise it's the same protocol and same commands that are being sent to the car...

hufman avatar Apr 16 '22 00:04 hufman

So if it happens faster with the large map over USB, or if it happens over USB even with the small mirroring screen, it would mean that one possible solution would be to lower the JPEG quality, right ?

I'll test out today and get back with results

bogdan-calapod avatar Apr 16 '22 06:04 bogdan-calapod