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

Asteroid 0.21 crash on LineageOS 17.1 #153

Open
comradekingu opened this issue Feb 11, 2022 · 6 comments
Open

Asteroid 0.21 crash on LineageOS 17.1 #153

comradekingu opened this issue Feb 11, 2022 · 6 comments
Assignees

Comments

@comradekingu
Copy link
Contributor

comradekingu commented Feb 11, 2022

Crashes on startup after granting permissions.
Same for 0.20 and 0.19.

LineageOS 17.1 (Android 10) on motog7. Works on LO 18 on a different phone, and 15.1 (Android 8.1.0) on a different phone.

FATAL EXCEPTION: Thread-2 Process: org.asteroidos.sync, PID: 3043 java.lang.IllegalArgumentException: width and height must be > 0 at android.graphics.Bitmap.createBitmap(Bitmap.java:1113) at android.graphics.Bitmap.createBitmap(Bitmap.java:1080) at android.graphics.Bitmap.createBitmap(Bitmap.java:1030) at android.graphics.Bitmap.createBitmap(Bitmap.java:991) at org.asteroidos.sync.utils.AppInfoHelper.getPackageInfo(AppInfoHelper.java:56) at org.asteroidos.sync.MainActivity$3.run(MainActivity.java:109) at java.lang.Thread.run(Thread.java:919)
@comradekingu comradekingu changed the title Asteroid 0.21 crash Asteroid 0.21 crash on LineageOS 17.1 Feb 11, 2022
@jrtberlin jrtberlin self-assigned this Feb 11, 2022
@jrtberlin
Copy link
Member

This happens in a function where App icons get collected for the notification system.
Do you have an app without icon on the device? Maybe a system app?

@comradekingu
Copy link
Contributor Author

Like Magisk?

@jrtberlin
Copy link
Member

Could be. I think the best solution is to handle missing or broken icons by adding a fallback icon.

@jrtberlin
Copy link
Member

Does this still happen on 0.22?

@comradekingu
Copy link
Contributor Author

comradekingu commented Feb 24, 2022

@jrtberlin Yes.
I already have fallback icons in my launcher, and the ones that aren't in either pack use default icons.
I am thinking it has to do with not allowing overlays in certain conditions, or something suppressed in the notification area.
Those would be down to my config.

@comradekingu
Copy link
Contributor Author

I got this trying to open "Zim Launcher"

Build version: 0.6.2b
Build date: 1979-11-30 01:00:00
Current date: 2022-03-11 19:03:59
Device: Motorola moto g(7) power

Stack trace:
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
at com.android.launcher3.graphics.ColorExtractor.findDominantColorByHue(ColorExtractor.java:51)
at com.android.launcher3.graphics.ColorExtractor.findDominantColorByHue(ColorExtractor.java:41)
at org.zimmob.zimlx.iconpack.DefaultPack.extractColor(DefaultPack.kt:260)
at org.zimmob.zimlx.iconpack.DefaultPack.wrapToAdaptiveIcon(DefaultPack.kt:251)
at org.zimmob.zimlx.iconpack.DefaultPack.getIcon(DefaultPack.kt:131)
at org.zimmob.zimlx.iconpack.IconPackManager.getIcon(IconPackManager.kt:110)
at org.zimmob.zimlx.iconpack.ZimIconProvider.getIcon(ZimIconProvider.kt:32)
at com.android.launcher3.IconCache.getFullResIcon(IconCache.java:192)
at com.android.launcher3.IconCache.getFullResIcon(IconCache.java:188)
at com.android.launcher3.IconCache.cacheLocked(IconCache.java:559)
at com.android.launcher3.IconCache.getTitleAndIcon(IconCache.java:501)
at com.android.launcher3.IconCache.getTitleAndIcon(IconCache.java:473)
at com.android.launcher3.AllAppsList.add(AllAppsList.java:84)
at com.android.launcher3.model.LoaderTask.loadAllApps(LoaderTask.java:843)
at com.android.launcher3.model.LoaderTask.run(LoaderTask.java:187)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants