-
Notifications
You must be signed in to change notification settings - Fork 118
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
Crash when making a call #282
Comments
That's weird. BCR is crashing because Android is failing to show its icon in the status bar for the notification. I've never seen that before and am not sure why that would happen. Do you happen to be using any custom themes, Magisk modules, etc. that might impact the status bar? It might be possible to work around this by going to Settings -> Apps -> BCR -> Notifications and changing all 3 categories to |
Just to chip in, I have started to get these crashes after updating Android Studio to Giraffe 2022.3.1 Canary 11. Something somewhere must changed. It only happens on Android 11 and only if the vector drawable used as notification icon has color attribute rather then color. My guess is that theme resources are not yet available at the moment Android system binds to the service. Fix for me was to remove any theme references from vector drawable I cannot thank enough to this person -> https://hwalia.com/android/2019/08/16/could-not-create-icon-statusbaricon.html |
BCR is crashing on some Android 11 devices when creating the foreground service notification with the following error: BadForegroundServiceNotificationException: Bad notification <...>: Couldn't create icon StatusBarIcon We can work around this issue by avoiding theme attributes in the notification icon. (Thanks to @NLLAPPS for the pointer.) Fixes: #282 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
Thanks for the info, @NLLAPPS! That sounds promising. The vector drawable I've been using for quick settings and notification icons has @SandResidence Can you give this debug build a try? BCR-1.38.r5.g4acb8c5-debugOpt.zip |
Okay, I've finally solved the problem! |
The old pastebin is now expired, but based on the quote I believe I am getting the same error with a different resource ID:
When I try to make a call, it crashes repeatedly, and actually makes it difficult to even end the call because the error popups are so quick. I just tried disabling my notifications, and it worked. I was able to narrow it down to the "Background services" notification category that's causing the issue. If I enable that category, the errors start, and if I disable the category, the errors stop. |
@Bazoogle Do you have any root hiding modules installed? (Shamiko, etc.) Those usually cause this (Android can't access BCR's |
When I call someone, I get a notification that recording has started, and a moment later that the BCR app has crashed.
My phone model is Samsung Galaxy M52 5G (SM-M526BR/DS)
Magisk version: 25.2 (25200)
Here is crash.log.txt file (pastebin because the logs exceed the maximum number of characters per comment on github): https://pastebin.com/e8jB0nUM
The text was updated successfully, but these errors were encountered: