Skip to content

Crash when opening stock overview or recipes page #811

Closed
@gruetze94

Description

Die Android App Crash immer wieder wenn man auf die Flächen "Bestand" und "Rezepte" klickt. Besteht seit dem letzten Update (26.11.2023 ausgeführt). Auf mehreren Geräten derselbe Fehler.

Crashlog:

--------- beginning of main
12-09 20:50:04.139 12569 12569 E AnimationUtils: RuntimeException for unknown animation name, resouce ID #0x7f020028
12-09 20:50:04.139 12569 12569 E AnimationUtils: loadAnimation: getConfiguration = {0.9 262mcc2mnc [de_DE] ldltr sw320dp w320dp h639dp 540dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 80 - 1080, 2238) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=off mStageConfig=undefined mFreeformTaskPinningState=unpinned mFreeformStashState=undefined mDexTaskDockingState=undefined} s.1 fontWeightAdjustment=0 ff=0 bf=0 bts=0 desktop/d dm/n dc/d ?dcui themeSeq=0 nightDim=0}
12-09 20:50:04.139 12569 12569 E AnimationUtils: loadAnimation: getDisplayMetrics = DisplayMetrics{density=3.375, width=1080, height=2158, scaledDensity=3.0375, xdpi=422.03, ydpi=423.333}
12-09 20:50:04.139 12569 12569 E AnimationUtils: loadAnimation: resourceName = xyz.zedler.patrick.grocy:animator/open_enter
12-09 20:50:05.571 12569 12569 E AnimationUtils: RuntimeException for unknown animation name, resouce ID #0x7f020029
12-09 20:50:05.572 12569 12569 E AnimationUtils: loadAnimation: getConfiguration = {0.9 262mcc2mnc [de_DE] ldltr sw320dp w320dp h639dp 540dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 80 - 1080, 2238) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=off mStageConfig=undefined mFreeformTaskPinningState=unpinned mFreeformStashState=undefined mDexTaskDockingState=undefined} s.1 fontWeightAdjustment=0 ff=0 bf=0 bts=0 desktop/d dm/n dc/d ?dcui themeSeq=0 nightDim=0}
12-09 20:50:05.572 12569 12569 E AnimationUtils: loadAnimation: getDisplayMetrics = DisplayMetrics{density=3.375, width=1080, height=2158, scaledDensity=3.0375, xdpi=422.03, ydpi=423.333}
12-09 20:50:05.572 12569 12569 E AnimationUtils: loadAnimation: resourceName = xyz.zedler.patrick.grocy:animator/open_exit
12-09 20:50:15.976 12569 12569 E AnimationUtils: RuntimeException for unknown animation name, resouce ID #0x7f020000
12-09 20:50:15.976 12569 12569 E AnimationUtils: loadAnimation: getConfiguration = {0.9 262mcc2mnc [de_DE] ldltr sw320dp w320dp h639dp 540dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 80 - 1080, 2238) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=off mStageConfig=undefined mFreeformTaskPinningState=unpinned mFreeformStashState=undefined mDexTaskDockingState=undefined} s.1 fontWeightAdjustment=0 ff=0 bf=0 bts=0 desktop/d dm/n dc/d ?dcui themeSeq=0 nightDim=0}
12-09 20:50:15.976 12569 12569 E AnimationUtils: loadAnimation: getDisplayMetrics = DisplayMetrics{density=3.375, width=1080, height=2158, scaledDensity=3.0375, xdpi=422.03, ydpi=423.333}
12-09 20:50:15.976 12569 12569 E AnimationUtils: loadAnimation: resourceName = xyz.zedler.patrick.grocy:animator/close_enter
12-09 20:50:18.244 12569 12569 E AnimationUtils: RuntimeException for unknown animation name, resouce ID #0x7f020001
12-09 20:50:18.244 12569 12569 E AnimationUtils: loadAnimation: getConfiguration = {0.9 262mcc2mnc [de_DE] ldltr sw320dp w320dp h639dp 540dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 80 - 1080, 2238) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=off mStageConfig=undefined mFreeformTaskPinningState=unpinned mFreeformStashState=undefined mDexTaskDockingState=undefined} s.1 fontWeightAdjustment=0 ff=0 bf=0 bts=0 desktop/d dm/n dc/d ?dcui themeSeq=0 nightDim=0}
12-09 20:50:18.244 12569 12569 E AnimationUtils: loadAnimation: getDisplayMetrics = DisplayMetrics{density=3.375, width=1080, height=2158, scaledDensity=3.0375, xdpi=422.03, ydpi=423.333}
12-09 20:50:18.244 12569 12569 E AnimationUtils: loadAnimation: resourceName = xyz.zedler.patrick.grocy:animator/close_exit
--------- beginning of crash
12-09 20:50:21.236 12569 12569 E AndroidRuntime: FATAL EXCEPTION: main
12-09 20:50:21.236 12569 12569 E AndroidRuntime: Process: xyz.zedler.patrick.grocy, PID: 12569
12-09 20:50:21.236 12569 12569 E AndroidRuntime: java.lang.RuntimeException: Cannot create an instance of class xyz.zedler.patrick.grocy.viewmodel.RecipesViewModel
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:17)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:12)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:2)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.SavedStateViewModelFactory.create(SavedStateViewModelFactory.kt:17)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:13)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:2)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at xyz.zedler.patrick.grocy.fragment.RecipesFragment.onViewCreated(RecipesFragment.java:16)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:296)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:144)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1213)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:92)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:74)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:4)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:226)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at android.os.Looper.loop(Looper.java:313)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8762)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:15)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: ... 20 more
12-09 20:50:21.236 12569 12569 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String xyz.zedler.patrick.grocy.model.FilterChipLiveDataSort$SortOption.name' on a null object reference in method 'void xyz.zedler.patrick.grocy.model.FilterChipLiveDataSort.setItems()'
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at xyz.zedler.patrick.grocy.model.FilterChipLiveDataSort.setItems(FilterChipLiveDataSort.java:26)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at xyz.zedler.patrick.grocy.model.FilterChipLiveDataSort.(FilterChipLiveDataSort.java:52)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: at xyz.zedler.patrick.grocy.viewmodel.RecipesViewModel.(RecipesViewModel.java:228)
12-09 20:50:21.236 12569 12569 E AndroidRuntime: ... 23 more
12-09 20:50:23.710 13057 13057 E r.patrick.grocy: Not starting debugger since process cannot load the jdwp agent.
12-09 20:50:25.886 13057 13057 E AnimationUtils: RuntimeException for unknown animation name, resouce ID #0x7f020028
12-09 20:50:25.886 13057 13057 E AnimationUtils: loadAnimation: getConfiguration = {0.9 262mcc2mnc [de_DE] ldltr sw320dp w320dp h639dp 540dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 80 - 1080, 2238) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=off mStageConfig=undefined mFreeformTaskPinningState=unpinned mFreeformStashState=undefined mDexTaskDockingState=undefined} s.1 fontWeightAdjustment=0 ff=0 bf=0 bts=0 desktop/d dm/n dc/d ?dcui themeSeq=0 nightDim=0}
12-09 20:50:25.886 13057 13057 E AnimationUtils: loadAnimation: getDisplayMetrics = DisplayMetrics{density=3.375, width=1080, height=2158, scaledDensity=3.0375, xdpi=422.03, ydpi=423.333}
12-09 20:50:25.886 13057 13057 E AnimationUtils: loadAnimation: resourceName = xyz.zedler.patrick.grocy:animator/open_enter
12-09 20:50:28.851 13057 13057 E AnimationUtils: RuntimeException for unknown animation name, resouce ID #0x7f020029
12-09 20:50:28.851 13057 13057 E AnimationUtils: loadAnimation: getConfiguration = {0.9 262mcc2mnc [de_DE] ldltr sw320dp w320dp h639dp 540dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 80 - 1080, 2238) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=off mStageConfig=undefined mFreeformTaskPinningState=unpinned mFreeformStashState=undefined mDexTaskDockingState=undefined} s.1 fontWeightAdjustment=0 ff=0 bf=0 bts=0 desktop/d dm/n dc/d ?dcui themeSeq=0 nightDim=0}
12-09 20:50:28.851 13057 13057 E AnimationUtils: loadAnimation: getDisplayMetrics = DisplayMetrics{density=3.375, width=1080, height=2158, scaledDensity=3.0375, xdpi=422.03, ydpi=423.333}
12-09 20:50:28.851 13057 13057 E AnimationUtils: loadAnimation: resourceName = xyz.zedler.patrick.grocy:animator/open_exit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions