Assigned
Status Update
Comments
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Could you please attach a video demonstrating the issue and a full bugreport (to be captured after reproducing the issue) synced with the same timestamp.
For steps to capture a bug report, please refer:https://developer.android.com/studio/debug/bug-report#bugreportdevice
Note: Please avoid uploading directly to the issue using attachments. You may upload to google drive and share the folder to android-bugreport@google.com, then share the link here.
Could you please attach a video demonstrating the issue and a full bugreport (to be captured after reproducing the issue) synced with the same timestamp.
For steps to capture a bug report, please refer:
Note: Please avoid uploading directly to the issue using attachments. You may upload to google drive and share the folder to android-bugreport@google.com, then share the link here.
ni...@gmail.com <ni...@gmail.com> #3
Hi,
this bug report was from a user. However, I have reproduced the issue with DSU on my Pixel 7a on Android 16 Beta 3 (BP22.250221.010).
The bug report ZIP, screen recording & APK are available in this drive folder:
https://drive.google.com/drive/folders/1-LGc33L9Wu4Xa1RrgMqya6Htoph1biAu?usp=drive_link
To reiterate: I am aware that RemoteView.setRemoteAdapter() is deprecated since Android 15, and I am migrating away from it at the moment. However, the API causing the app to crash is a platform bug, I believe (maybe related to the fact the list had no contents - a perfectly valid usecase though). The exact same code works fine on every version from Android 5 to 15. The backwards compatibility should not be broken this fast (and it is obvious from AOSP source that backwards compatibility was intended).
Best regards,
this bug report was from a user. However, I have reproduced the issue with DSU on my Pixel 7a on Android 16 Beta 3 (BP22.250221.010).
The bug report ZIP, screen recording & APK are available in this drive folder:
To reiterate: I am aware that RemoteView.setRemoteAdapter() is deprecated since Android 15, and I am migrating away from it at the moment. However, the API causing the app to crash is a platform bug, I believe (maybe related to the fact the list had no contents - a perfectly valid usecase though). The exact same code works fine on every version from Android 5 to 15. The backwards compatibility should not be broken this fast (and it is obvious from AOSP source that backwards compatibility was intended).
Best regards,
vi...@google.com <vi...@google.com> #4
We’ve shared this with our product and engineering teams and will continue to provide updates as more information becomes available.
Description
Y
* Which Android Developer Preview or Betabuild are you using? See Settings > About phone > Build number (for example AP3A.241105.008).
BP22.250124.010
* Is this a regression from Android 15 to 16?
Yes
* What device are you using? (for example, Android Emulator, GSI, Pixel 9)
Pixel 7 Pro
* App Package Name?
org.akanework.gramophone
* What are the steps to reproduce the problem? (Please provide the minimal reproducible test case.)
1. play song
2. Add app's widget to homescreen
* What was the expected result?
App does not crash, and adapter conversion code works successfully
* What was the actual result?
song stops playing, app crash
The crash is caused by adapter conversion code. I did not migrate the app from remote view service (which is deprecated) to new adapter API. The remote view service unexpectedly started crashing in Android 16 Beta according to user reports.
* Relevant logcat output
java.lang.NullPointerException: Attempt to read from field 'android.widget.RemoteViews$BitmapCache android.widget.RemoteViews.mBitmapCache' on a null object reference in method 'void android.widget.RemoteViews.initializeFrom(android.widget.RemoteViews, android.widget.RemoteViews)'
at android.widget.RemoteViews.initializeFrom(RemoteViews.java:6089)
at android.widget.RemoteViews.<init>(RemoteViews.java:6070)
at android.appwidget.AppWidgetManager.tryAdapterConversion(AppWidgetManager.java:660)
at android.appwidget.AppWidgetManager.updateAppWidget(AppWidgetManager.java:709)
at android.appwidget.AppWidgetManager.updateAppWidget(AppWidgetManager.java:783)
at org.akanework.gramophone.ui.LyricWidgetProvider.onUpdate(SourceFile:89)
at okio.internal.-SegmentedByteString.update(SourceFile:21)
at org.akanework.gramophone.logic.GramophonePlaybackService.scheduleSendingLyrics(SourceFile:28)
at org.akanework.gramophone.logic.GramophonePlaybackService$onTracksChanged$1$1.invokeSuspend(SourceFile:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
at android.os.Handler.handleCallback(Handler.java:995)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:239)
at android.os.Looper.loop(Looper.java:328)
at android.app.ActivityThread.main(ActivityThread.java:8952)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [DeferredCoroutine{Cancelling}@da64e97, Dispatchers.IO.limitedParallelism(1)]
* Link to captured Android bug report (shared privately in Drive.)
N/A - user report
* Optional: Link to any screenshot(s) that demonstrate the issue (shared privately in Drive)
N/A