Closed nickrbogdanov closed 4 years ago
I don't know what to tell you, I was never able to replicate the issue, I don't know what's causing it on your device. It's clear that the app crashed and was restarted a few times while it was running in background. The exception points to line 332 of PodsService.java, which runs when the notification becomes visible. There is no reason for it to fail as far as I know, and I'm certainly not passing 1MB of data to it. Ideas?
It seems that it has something to do with the notification view. Somehow a lot of data stacks up which causes the TransactionTooLargeException.
A solution I've found is to use try catch and rebuild the notification when the notify function fails as discussed at mapbox/mapbox-navigation-android#1691
I guess it's worth a try. I'll implement this "fix" later today and send you a test APK
@Domi04151309 @nickrbogdanov Please test this APK and let me know if the problem still occurs: app-debug.zip
Closing as fixed by #65
This does still happen with the newest version
@Electric1447 ideas?
I have no idea
@adolfintel according to https://stackoverflow.com/questions/11451393/what-to-do-on-transactiontoolargeexception we should split the transmission, however I don't know if it is possible
And it could be a possible memory leak with the notification thread, I know people who have encountered problems like that before.
We could destroy the current notification and recreate one with a new ID when the exception is thrown
We could destroy the current notification and recreate one with a new ID when the exception is thrown
It is possible however further testing by @Domi04151309 would be required because I cannot recreate this issue
Me neither, I wonder what kind of crazy bug in the notification code causes it
@Domi04151309 which device and os are you running?
Edit: from #47 I see you have a Oneplus 6T running Android 10 which makes this really confusing as I am also using a OnePlus 6T with Android 10.
@Domi04151309 which device and os are you running?
Edit: from #47 I see you have a Oneplus 6T running Android 10 which makes this really confusing as I am also using a OnePlus 6T with Android 10.
Google is really high rn
To maybe add one data point here: On my Redmi 4X i only experienced these crashes while running an Oreo ROM, namely LineageOS 15.1 or various builds (official and unofficial) of ResurrectionRemix 6.*.*
As opposed to this, i never experienced the crash while running ResurrectionRemix 7.0.2 (Pie).
I see these pretty regularly on AOSP QQ2A.200405.005 on a Google Pixel 3:
Leaving the phone running idle for a few hours with logcat streaming to disk, I see:
I don't think my AirPods were even removed from the case when these errors occurred.
I believe I was running OpenPods 1.3 (13) from F-Droid. Not positive because I uninstalled it.
The crash signature looks similar to #47 but in my case, the parcel size is on the order of 1MB instead of 3MB.