Closed freshprince closed 3 years ago
On which device does this happen? If it happens to be a tablet then the aspect ratio and resolution would be interesting.
This happens on a Planet Cosmo Communicator:
Logical Displays: size=1
Display 0:
mDisplayId=0
mLayerStack=0
mHasContent=true
mRequestedMode=0
mRequestedColorMode=0
mDisplayOffset=(0, 0)
mPrimaryDisplayDevice=Built-in Screen
mBaseDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 2160 x 1080, real 2160 x 1080, largest app 2160 x 1080, smallest app 2160 x 1080, mode 1, defaultMode 1, modes [{id=1, width=2160, height=1080, fps=64.25}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@40f16308, rotation 0, density 480 (403.411 x 403.411) dpi, layerStack 0, appVsyncOff 8300000, presDeadline 8264202, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
mOverrideDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 2072 x 1080, real 2160 x 1080, largest app 2072 x 2028, smallest app 1080 x 1036, mode 1, defaultMode 1, modes [{id=1, width=2160, height=1080, fps=64.25}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@40f16308, rotation 0, density 292 (403.411 x 403.411) dpi, layerStack 0, appVsyncOff 8300000, presDeadline 8264202, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
If I set pixel density to the physical value of 480 dpi the crash does not happen.
I didn't realize this is because of resolution/dpi. My workaround now is to have pixel density set to 360 dpi.
It would be nice if you could try this debug version to see if the crash persists. Etar-Calendar-debug.zip
Sure. This version does no longer crash when I have set my density to 292.
When launching Etar i get the following stack trace:
Widget is working fine.
I have version 1.0.25 installed from F-Droid.