Skip to content
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

[BUG] Gramophone crashes when Lyric widget is resized #429

Open
1 task done
MeguMario opened this issue Mar 11, 2025 · 1 comment
Open
1 task done

[BUG] Gramophone crashes when Lyric widget is resized #429

MeguMario opened this issue Mar 11, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MeguMario
Copy link

MeguMario commented Mar 11, 2025

Describe the bug
Gramophone crashes when the new lyric widget is resized

To Reproduce
Steps to reproduce the behavior:

  1. Put the widget on the homescreen
  2. Resize it
  3. Open the app
  4. It will instantly crash

Expected behavior
The widget should be able to resize as normal without crashing the app instantly

Screenshots

279a213f-df33-4047-a4c2-ca77bff0ec07.mp4

Smartphone (please complete the following information):

  • Device: Google Pixel 7 Pro
  • OS: Android 16 Beta 2.1
  • App Version: 1.0.16.1

Additional context
Here is the crash log

Gramophone version: 1.0.16.1.3fa245f

Release type: Release
Brand:        google
Model:        Pixel 7 Pro
SDK Level:    35
Thread:       DefaultDispatcher-worker-5


Time:  2025-03-11 13:59:05
--------- beginning of crash
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)]

And the app log
GramophoneLog1741676442179.txt

  • I will open one issue per bug, follow the issue format and will add [BUG] to the start of my issue title, and I acknowledge that if I don't follow the format, my issue might get closed without further explanation.
@nift4 nift4 added bug Something isn't working and removed need confirm labels Mar 12, 2025
@nift4
Copy link
Collaborator

nift4 commented Mar 12, 2025

Hi, I believe this is an bug in Android 16 related to a deprecated list widget API I did not yet migrate away from. I've filed a bug at Google Issue Tracker for now: https://issuetracker.google.com/issues/402677797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants