emansih / FireflyMobile

Mobile Application for Firefly III written in Kotlin
GNU General Public License v3.0
321 stars 46 forks source link

App crashes when trying to login via PAT #240

Open adrifromhh opened 1 year ago

adrifromhh commented 1 year ago

Notes

I tried OAuth without success. I cannot get any of my browsers (Chrome, Firefoy, Opera) to redirect me from the http://empty page back to the Photuris App. So I'm trying PAT, which crashes the app.

Fix After deleting all Photuris app-data and putting in the correct PAT credentials, login worked. Fix was mentioned here

The app crashes moments later when trying to do anything.

System

Installed via Google Playstore

APP_VERSION_NAME=5.0.3 PHONE_MODEL=ONEPLUS A6003 BRAND=OnePlus PRODUCT=OnePlus6 ANDROID_VERSION=11 Firefly III Server Version: 5.7.18


Expected Behavior

Logging in via PAT

Current Behavior

Crashing immediately after showing a green "Welcome" badge for less than a second

Steps to Reproduce

Enter PAT Details URL: https:// PAT: ENTER Crash...

Screenshots

Screenshot 1 Screenshot 2

Crash Report

REPORT_ID=b0af985d-da2d-48ae-aa97-a96e53435be7
APP_VERSION_NAME=5.0.3
PHONE_MODEL=ONEPLUS A6003
BRAND=OnePlus
PRODUCT=OnePlus6
ANDROID_VERSION=11
BUILD_CONFIG=
STACK_TRACE=java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance, parameter randomHash
    at xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance(Unknown Source:7)
    at xyz.hisname.fireflyiii.ui.HomeViewModel$billPaidDao$2.invoke(HomeViewModel.kt:1)
    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
    at xyz.hisname.fireflyiii.ui.HomeViewModel.access$getBillPaidDao(HomeViewModel.kt:1)
    at xyz.hisname.fireflyiii.ui.HomeViewModel$billPaidRepository$2.invoke(HomeViewModel.kt:1)
    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
    at xyz.hisname.fireflyiii.ui.HomeViewModel.access$getBillPaidRepository(HomeViewModel.kt:1)
    at xyz.hisname.fireflyiii.ui.HomeViewModel$getNoOfBillsDueToday$1.invokeSuspend(HomeViewModel.kt:8)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:5)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:18)
    at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:2)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:1)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:1)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:10)

LOGCAT=--------- beginning of main
01-23 19:39:31.172 I/Process (12405): Sending signal. PID: 12405 SIG: 9
01-23 19:39:32.369 E/name.fireflyii(13967): Unknown bits set in runtime_flags: 0x800000
01-23 19:39:32.372 E/name.fireflyii(13967): Not starting debugger since process cannot load the jdwp agent.
01-23 19:39:32.403 W/name.fireflyii(13967): JIT profile information will not be recorded: profile file does not exist.
01-23 19:39:32.408 I/Perf    (13967): Connecting to perf service.
01-23 19:39:32.411 I/name.fireflyii(13967): [GL_OOM] ClampGrowthLimit 268435456
01-23 19:39:32.411 D/NetworkSecurityConfig(13967): Using Network Security Config from resource network_security_config debugBuild: false
01-23 19:39:32.412 D/NetworkSecurityConfig(13967): Using Network Security Config from resource network_security_config debugBuild: false
01-23 19:39:32.415 D/WM-WrkMgrInitializer(13967): Initializing WorkManager with default configuration.
01-23 19:39:32.415 W/name.fireflyii(13967): Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->mutex:Ljava/lang/Object; (greylist-max-o, reflection, denied)
01-23 19:39:32.415 W/name.fireflyii(13967): Accessing hidden method Ljava/util/Collections$SynchronizedSet;-><init>(Ljava/util/Set;Ljava/lang/Object;)V (greylist-max-o, reflection, denied)
01-23 19:39:32.415 W/name.fireflyii(13967): Accessing hidden method Ljava/util/Collections$SynchronizedCollection;-><init>(Ljava/util/Collection;Ljava/lang/Object;)V (greylist-max-o, reflection, denied)
01-23 19:39:32.417 I/TetheringManager(13967): registerTetheringEventCallback:xyz.hisname.fireflyiii
01-23 19:39:32.429 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:39:32.433 I/chatty  (13967): uid=10449(xyz.hisname.fireflyiii) WM.task-1 identical 1 line
01-23 19:39:32.435 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:39:32.440 E/Config:Grabber:OnePlusFontConfig(13967): Index 0 requested, with a size of 0
01-23 19:39:32.473 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:39:32.477 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:39:32.480 I/ACRA    (13967): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
01-23 19:39:32.484 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:40:35.077 E/name.fireflyii(13967): [frame_perf] perfboost open tb_ctl file failed, isApp[1], errno=No such file or directory
01-23 19:40:35.077 E/libprocessgroup(13967): set_timerslack_ns write failed: Operation not permitted
01-23 19:40:35.113 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.149 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.149 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.166 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.169 I/chatty  (13967): uid=10449(xyz.hisname.fireflyiii) identical 20 lines
01-23 19:40:35.169 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.176 I/OPFD_Manager(13967): Dark? false, OP Force ? false
01-23 19:40:35.177 V/ViewRootImpl(13967): The specified message queue synchronization  barrier token has not been posted or has already been removed
--------- beginning of system
01-23 19:40:35.179 D/ViewRootImpl(13967): support adaptive color gamut feature!
01-23 19:40:35.193 I/AdrenoGLES-0(13967): QUALCOMM build                   : 8e5405b, I57aaec3440
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Build Date                       : 05/21/21
01-23 19:40:35.193 I/AdrenoGLES-0(13967): OpenGL ES Shader Compiler Version: EV031.32.02.10
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Local Branch                     : mybranchebba1dbe-451b-f160-ac81-1458d0b52ae8
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Remote Branch                    : quic/gfx-adreno.lnx.1.0.r135-rel
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Remote Branch                    : NONE
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Reconstruct Branch               : NOTHING
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Build Config                     : S P 10.0.7 AArch64
01-23 19:40:35.193 I/AdrenoGLES-0(13967): Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
01-23 19:40:35.196 I/AdrenoGLES-0(13967): PFP: 0x016ee190, ME: 0x00000000
01-23 19:40:35.209 I/Gralloc4(13967): mapper 4.x is not supported
01-23 19:40:35.209 W/Gralloc3(13967): mapper 3.x is not supported
01-23 19:40:35.223 D/DecorView(13967): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@4d758de[AuthActivity]
01-23 19:40:35.225 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=true inTouchMode=true
01-23 19:40:35.246 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.254 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:40:35.257 V/ViewRootImpl(13967): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-23 19:40:35.274 W/Choreographer(13967): Already have a pending vsync event.  There should only be one at a time.
01-23 19:40:35.274 W/ActivityThread(13967): Activity state must be in [ON_RESUME..ON_STOP] in order to be relaunched,current state is 1
01-23 19:40:35.289 D/DecorView(13967): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@2067d74[AuthActivity]
01-23 19:40:35.290 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=true inTouchMode=true
01-23 19:40:35.256 D/ViewRootImpl(13967): support adaptive color gamut feature!
01-23 19:40:52.645 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=false inTouchMode=true
01-23 19:56:06.811 D/DecorView(13967): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@2067d74[AuthActivity]
01-23 19:56:06.811 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=true inTouchMode=true
01-23 19:56:09.465 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=false inTouchMode=true
01-23 19:56:11.498 D/DecorView(13967): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@2067d74[AuthActivity]
01-23 19:56:11.498 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=true inTouchMode=true
01-23 19:56:17.402 I/AssistStructure(13967): Flattened final assist data: 3064 bytes, containing 1 windows, 21 views
01-23 19:56:30.188 I/AssistStructure(13967): Flattened final assist data: 3064 bytes, containing 1 windows, 21 views
01-23 19:56:47.413 I/AssistStructure(13967): Flattened final assist data: 3160 bytes, containing 1 windows, 21 views
01-23 19:56:48.400 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=false inTouchMode=true
01-23 19:57:01.237 D/DecorView(13967): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@2067d74[AuthActivity]
01-23 19:57:01.238 D/ViewRootImpl[AuthActivity](13967): windowFocusChanged hasFocus=true inTouchMode=true
01-23 19:57:02.734 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:02.799 D/ViewRootImpl(13967): support adaptive color gamut feature!
01-23 19:57:02.736 I/chatty  (13967): uid=10449(xyz.hisname.fireflyiii) identical 5 lines
01-23 19:57:02.762 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:02.801 V/ViewRootImpl(13967): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-23 19:57:02.898 V/ViewRootImpl(13967): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-23 19:57:03.571 D/OpenGLRenderer(13967): endAllActiveAnimators on 0x718f97cb60 (RippleDrawable) with handle 0x70af9412d0
01-23 19:57:02.898 D/ViewRootImpl(13967): support adaptive color gamut feature!
01-23 19:57:04.599 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:57:04.608 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:57:04.611 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
--------- beginning of perf
01-23 19:57:04.632 I/110     (13967):  OptJank - total:215 frameGap:225 delta#200#13#12#0#0#2
01-23 19:57:05.264 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.264 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.264 D/CompatibilityChangeReporter(13967): Compat change id reported: 147798919; UID 10449; state: ENABLED
01-23 19:57:05.288 D/ViewRootImpl(13967): support adaptive color gamut feature!
01-23 19:57:05.288 V/ViewRootImpl(13967): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-23 19:57:05.359 W/Choreographer(13967): Already have a pending vsync event.  There should only be one at a time.
01-23 19:57:05.594 I/111     (13967):  OptJank - continuously drops frames:4
01-23 19:57:05.616 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.629 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.635 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.660 I/111     (13967):  OptJank - continuously drops frames:4
01-23 19:57:05.664 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:57:05.672 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.674 I/chatty  (13967): uid=10449(xyz.hisname.fireflyiii) identical 2 lines
01-23 19:57:05.674 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.682 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.689 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.691 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:57:05.696 E/name.fireflyii(13967): Invalid ID 0x00000000.
01-23 19:57:05.710 I/111     (13967):  OptJank - high percentage:0.75
01-23 19:57:05.722 D/AndroidRuntime(13967): Shutting down VM
--------- beginning of crash
01-23 19:57:05.723 E/AndroidRuntime(13967): FATAL EXCEPTION: main
01-23 19:57:05.723 E/AndroidRuntime(13967): Process: xyz.hisname.fireflyiii, PID: 13967
01-23 19:57:05.723 E/AndroidRuntime(13967): java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.dashboard.DashboardViewModel
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:3)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.lifecycle.SavedStateViewModelFactory.create(SavedStateViewModelFactory.java:5)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:8)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at xyz.hisname.fireflyiii.util.extension.LiveDataExtensionKt.getImprovedViewModel$default(LiveDataExtension.kt:2)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at xyz.hisname.fireflyiii.ui.dashboard.DashboardFragment$dashboardView$2.invoke(DashboardFragment.kt:1)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at xyz.hisname.fireflyiii.ui.dashboard.DashboardFragment.getDashboardView(DashboardFragment.kt:1)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at xyz.hisname.fireflyiii.ui.dashboard.DashboardFragment.onViewCreated(DashboardFragment.kt:1)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:29)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:22)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:120)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:9)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:12)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:8)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:4)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:1)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:6)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:1)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1525)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.Activity.performStart(Activity.java:8030)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3642)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2251)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.os.Handler.dispatchMessage(Handler.java:106)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.os.Looper.loop(Looper.java:233)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at android.app.ActivityThread.main(ActivityThread.java:8068)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at java.lang.reflect.Method.invoke(Native Method)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
01-23 19:57:05.723 E/AndroidRuntime(13967): Caused by: java.lang.reflect.InvocationTargetException
01-23 19:57:05.723 E/AndroidRuntime(13967):     at java.lang.reflect.Constructor.newInstance0(Native Method)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:2)
01-23 19:57:05.723 E/AndroidRuntime(13967):     ... 31 more
01-23 19:57:05.723 E/AndroidRuntime(13967): Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance, parameter randomHash
01-23 19:57:05.723 E/AndroidRuntime(13967):     at xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance(Unknown Source:7)
01-23 19:57:05.723 E/AndroidRuntime(13967):     at xyz.hisname.fireflyiii.ui.dashboard.DashboardViewModel.<init>(DashboardViewModel.kt:3)
01-23 19:57:05.723 E/AndroidRuntime(13967):     ... 34 more
01-23 19:57:05.723 E/ACRA    (13967): ACRA caught a RuntimeException for xyz.hisname.fireflyiii
01-23 19:57:05.723 E/ACRA    (13967): java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.dashboard.DashboardViewModel
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:3)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.lifecycle.SavedStateViewModelFactory.create(SavedStateViewModelFactory.java:5)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:8)
01-23 19:57:05.723 E/ACRA    (13967):   at xyz.hisname.fireflyiii.util.extension.LiveDataExtensionKt.getImprovedViewModel$default(LiveDataExtension.kt:2)
01-23 19:57:05.723 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.dashboard.DashboardFragment$dashboardView$2.invoke(DashboardFragment.kt:1)
01-23 19:57:05.723 E/ACRA    (13967):   at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
01-23 19:57:05.723 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.dashboard.DashboardFragment.getDashboardView(DashboardFragment.kt:1)
01-23 19:57:05.723 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.dashboard.DashboardFragment.onViewCreated(DashboardFragment.kt:1)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:29)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:22)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:120)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:9)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:12)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:8)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:4)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:1)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:6)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:1)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1525)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.Activity.performStart(Activity.java:8030)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3642)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2251)
01-23 19:57:05.723 E/ACRA    (13967):   at android.os.Handler.dispatchMessage(Handler.java:106)
01-23 19:57:05.723 E/ACRA    (13967):   at android.os.Looper.loop(Looper.java:233)
01-23 19:57:05.723 E/ACRA    (13967):   at android.app.ActivityThread.main(ActivityThread.java:8068)
01-23 19:57:05.723 E/ACRA    (13967):   at java.lang.reflect.Method.invoke(Native Method)
01-23 19:57:05.723 E/ACRA    (13967):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
01-23 19:57:05.723 E/ACRA    (13967):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
01-23 19:57:05.723 E/ACRA    (13967): Caused by: java.lang.reflect.InvocationTargetException
01-23 19:57:05.723 E/ACRA    (13967):   at java.lang.reflect.Constructor.newInstance0(Native Method)
01-23 19:57:05.723 E/ACRA    (13967):   at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
01-23 19:57:05.723 E/ACRA    (13967):   at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:2)
01-23 19:57:05.723 E/ACRA    (13967):   ... 31 more
01-23 19:57:05.723 E/ACRA    (13967): Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance, parameter randomHash
01-23 19:57:05.723 E/ACRA    (13967):   at xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance(Unknown Source:7)
01-23 19:57:05.723 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.dashboard.DashboardViewModel.<init>(DashboardViewModel.kt:3)
01-23 19:57:05.723 E/ACRA    (13967):   ... 34 more
01-23 19:57:05.727 I/111     (13967):  OptJank - continuously drops frames:4
01-23 19:57:05.741 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:57:05.778 I/chatty  (13967): uid=10449(xyz.hisname.fireflyiii) DefaultDispatch identical 1 line
01-23 19:57:05.781 E/sqlite3_android(13967): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-23 19:57:05.783 E/ACRA    (13967): ACRA caught a NullPointerException for xyz.hisname.fireflyiii
01-23 19:57:05.783 E/ACRA    (13967): java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance, parameter randomHash
01-23 19:57:05.783 E/ACRA    (13967):   at xyz.hisname.fireflyiii.data.local.dao.AppDatabase$Companion.getInstance(Unknown Source:7)
01-23 19:57:05.783 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.HomeViewModel$billPaidDao$2.invoke(HomeViewModel.kt:1)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
01-23 19:57:05.783 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.HomeViewModel.access$getBillPaidDao(HomeViewModel.kt:1)
01-23 19:57:05.783 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.HomeViewModel$billPaidRepository$2.invoke(HomeViewModel.kt:1)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
01-23 19:57:05.783 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.HomeViewModel.access$getBillPaidRepository(HomeViewModel.kt:1)
01-23 19:57:05.783 E/ACRA    (13967):   at xyz.hisname.fireflyiii.ui.HomeViewModel$getNoOfBillsDueToday$1.invokeSuspend(HomeViewModel.kt:8)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:5)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:18)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:2)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:1)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:1)
01-23 19:57:05.783 E/ACRA    (13967):   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:10)

IS_SILENT=false
USER_CRASH_DATE=2023-01-23T19:57:05.785+01:00
emansih commented 1 year ago

Weird bug. It should not be giving you a NULL

adrifromhh commented 1 year ago

I have deleted all app data again, given it all permissions I can and successfully logged in via PAT. It seems to be connected, as it's showing my balance on the dashboard. When I click on "create new transaction", it crashes. (As it did before, when trying to do baasically anything.)

I see a lot of crash reports here where the app is pretty much unusable. Is there any chance this is going to be resolved in the near future? I'm not mad about this, I understand it takes a lot of maintenance to keep an app working, but I'd really like to have a working usable Firefly client. That's why I paid for it in the Play Store.

Crash report after clicking on "create new transaction"

REPORT_ID=ab295ad6-3d5e-4b30-a4ce-55fb11137e62
APP_VERSION_NAME=5.0.3
PHONE_MODEL=ONEPLUS A6003
BRAND=OnePlus
PRODUCT=OnePlus6
ANDROID_VERSION=11
BUILD_CONFIG=
STACK_TRACE=java.lang.RuntimeException: Unable to start activity ComponentInfo{xyz.hisname.fireflyiii/xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity}: java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3616)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3780)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2251)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:233)
    at android.app.ActivityThread.main(ActivityThread.java:8068)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
Caused by: java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel
    at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:3)
    at androidx.lifecycle.SavedStateViewModelFactory.create(SavedStateViewModelFactory.java:5)
    at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:8)
    at xyz.hisname.fireflyiii.util.extension.LiveDataExtensionKt.getViewModel$default(LiveDataExtension.kt:2)
    at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity$addTransactionViewModel$2.invoke(AddTransactionActivity.kt:1)
    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
    at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.getAddTransactionViewModel(AddTransactionActivity.kt:1)
    at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.$r8$lambda$Ca8gz-rxzwYjifeAajQ2K6YN2fU(AddTransactionActivity.kt:3)
    at com.google.android.material.navigation.NavigationBarView$1.onMenuItemSelected(NavigationBarView.java:3)
    at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:1)
    at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:2)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:4)
    at com.google.android.material.navigation.NavigationBarView.setSelectedItemId(NavigationBarView.java:2)
    at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.onCreate(AddTransactionActivity.kt:14)
    at android.app.Activity.performCreate(Activity.java:8006)
    at android.app.Activity.performCreate(Activity.java:7990)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3589)
    ... 11 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
    at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:2)
    ... 28 more
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.TmpDatabase$Companion.getInstance, parameter uuid
    at xyz.hisname.fireflyiii.data.local.dao.TmpDatabase$Companion.getInstance(Unknown Source:7)
    at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel.<init>(AddTransactionViewModel.kt:2)
    ... 31 more

LOGCAT=--------- beginning of main
01-24 16:28:53.321 W/name.fireflyii(24098): Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->mutex:Ljava/lang/Object; (greylist-max-o, reflection, denied)
01-24 16:28:53.322 W/name.fireflyii(24098): Accessing hidden method Ljava/util/Collections$SynchronizedSet;-><init>(Ljava/util/Set;Ljava/lang/Object;)V (greylist-max-o, reflection, denied)
01-24 16:28:53.322 W/name.fireflyii(24098): Accessing hidden method Ljava/util/Collections$SynchronizedCollection;-><init>(Ljava/util/Collection;Ljava/lang/Object;)V (greylist-max-o, reflection, denied)
01-24 16:28:53.325 I/TetheringManager(24098): registerTetheringEventCallback:xyz.hisname.fireflyiii
01-24 16:28:53.333 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.337 E/Config:Grabber:OnePlusFontConfig(24098): Index 0 requested, with a size of 0
01-24 16:28:53.343 E/name.fireflyii(24098): [frame_perf] perfboost open tb_ctl file failed, isApp[1], errno=No such file or directory
01-24 16:28:53.343 E/libprocessgroup(24098): set_timerslack_ns write failed: Operation not permitted
01-24 16:28:53.358 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.359 I/ACRA    (24098): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
01-24 16:28:53.361 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.363 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.366 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.383 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.385 I/chatty  (24098): uid=10449(xyz.hisname.fireflyiii) DefaultDispatch identical 1 line
01-24 16:28:53.386 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:28:53.413 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.447 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.447 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.465 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.469 I/chatty  (24098): uid=10449(xyz.hisname.fireflyiii) identical 18 lines
01-24 16:28:53.469 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.489 I/OPFD_Manager(24098): Dark? false, OP Force ? false
01-24 16:28:53.489 V/ViewRootImpl(24098): The specified message queue synchronization  barrier token has not been posted or has already been removed
--------- beginning of system
01-24 16:28:53.492 D/ViewRootImpl(24098): support adaptive color gamut feature!
01-24 16:28:53.508 I/AdrenoGLES-0(24098): QUALCOMM build                   : 8e5405b, I57aaec3440
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Build Date                       : 05/21/21
01-24 16:28:53.508 I/AdrenoGLES-0(24098): OpenGL ES Shader Compiler Version: EV031.32.02.10
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Local Branch                     : mybranchebba1dbe-451b-f160-ac81-1458d0b52ae8
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Remote Branch                    : quic/gfx-adreno.lnx.1.0.r135-rel
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Remote Branch                    : NONE
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Reconstruct Branch               : NOTHING
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Build Config                     : S P 10.0.7 AArch64
01-24 16:28:53.508 I/AdrenoGLES-0(24098): Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
01-24 16:28:53.511 I/AdrenoGLES-0(24098): PFP: 0x016ee190, ME: 0x00000000
01-24 16:28:53.521 I/Gralloc4(24098): mapper 4.x is not supported
01-24 16:28:53.521 W/Gralloc3(24098): mapper 3.x is not supported
01-24 16:28:53.583 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.583 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.589 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.593 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:28:53.598 V/ViewRootImpl(24098): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-24 16:28:53.614 W/Choreographer(24098): Already have a pending vsync event.  There should only be one at a time.
01-24 16:28:53.614 W/ActivityThread(24098): Activity state must be in [ON_RESUME..ON_STOP] in order to be relaunched,current state is 1
01-24 16:28:53.627 D/DecorView(24098): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@f04a147[AuthActivity]
01-24 16:28:53.628 D/ViewRootImpl[AuthActivity](24098): windowFocusChanged hasFocus=true inTouchMode=true
01-24 16:28:53.597 D/ViewRootImpl(24098): support adaptive color gamut feature!
--------- beginning of perf
01-24 16:28:54.969 I/111     (24098):  OptJank - continuously drops frames:4
01-24 16:28:55.061 I/110     (24098):  OptJank - total:67 frameGap:67 delta#16#7#6#0#0#66
01-24 16:28:55.061 I/111     (24098): OptJank - big and big
01-24 16:28:55.869 I/AssistStructure(24098): Flattened final assist data: 3060 bytes, containing 1 windows, 21 views
01-24 16:29:08.359 I/AssistStructure(24098): Flattened final assist data: 3156 bytes, containing 1 windows, 21 views
01-24 16:29:09.848 D/ViewRootImpl(24098): support adaptive color gamut feature!
01-24 16:29:09.849 V/ViewRootImpl(24098): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-24 16:29:10.006 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:10.009 I/chatty  (24098): uid=10449(xyz.hisname.fireflyiii) identical 5 lines
01-24 16:29:10.036 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:10.130 D/ViewRootImpl(24098): support adaptive color gamut feature!
01-24 16:29:10.131 V/ViewRootImpl(24098): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-24 16:29:10.764 D/OpenGLRenderer(24098): endAllActiveAnimators on 0x718f97a490 (RippleDrawable) with handle 0x70af932360
01-24 16:29:14.831 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:14.843 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:14.845 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:14.846 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:15.260 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.260 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.260 D/CompatibilityChangeReporter(24098): Compat change id reported: 147798919; UID 10449; state: ENABLED
01-24 16:29:15.271 D/ViewRootImpl(24098): support adaptive color gamut feature!
01-24 16:29:15.272 V/ViewRootImpl(24098): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-24 16:29:15.680 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.695 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.704 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.749 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.751 I/chatty  (24098): uid=10449(xyz.hisname.fireflyiii) identical 2 lines
01-24 16:29:15.751 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.754 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:15.755 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.760 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.764 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.772 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.786 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:15.793 I/chatty  (24098): uid=10449(xyz.hisname.fireflyiii) DefaultDispatch identical 1 line
01-24 16:29:15.796 E/sqlite3_android(24098): [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
01-24 16:29:15.827 D/ViewRootImpl(24098): support adaptive color gamut feature!
01-24 16:29:15.829 V/ViewRootImpl(24098): The specified message queue synchronization  barrier token has not been posted or has already been removed
01-24 16:29:15.833 D/ViewRootImpl[AuthActivity](24098): windowFocusChanged hasFocus=false inTouchMode=true
01-24 16:29:15.870 W/RecyclerView(24098): No adapter attached; skipping layout
01-24 16:29:15.918 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.970 W/Choreographer(24098): Already have a pending vsync event.  There should only be one at a time.
01-24 16:29:15.980 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.980 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:15.995 D/DecorView(24098): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@94d8896[HomeActivity]
01-24 16:29:15.996 D/ViewRootImpl[HomeActivity](24098): windowFocusChanged hasFocus=true inTouchMode=true
01-24 16:29:16.933 W/PropertyValuesHolder(24098): Method setPhaseY() with type float not found on target class class com.github.mikephil.charting.animation.ChartAnimator
01-24 16:29:23.301 D/ViewRootImpl[HomeActivity](24098): windowFocusChanged hasFocus=false inTouchMode=true
01-24 16:29:23.683 D/DecorView(24098): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@94d8896[HomeActivity]
01-24 16:29:23.684 D/ViewRootImpl[HomeActivity](24098): windowFocusChanged hasFocus=true inTouchMode=true
01-24 16:29:28.822 D/ViewRootImpl[HomeActivity](24098): windowFocusChanged hasFocus=false inTouchMode=true
01-24 16:29:30.998 D/DecorView(24098): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@94d8896[HomeActivity]
01-24 16:29:30.999 D/ViewRootImpl[HomeActivity](24098): windowFocusChanged hasFocus=true inTouchMode=true
01-24 16:29:34.185 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:34.187 I/chatty  (24098): uid=10449(xyz.hisname.fireflyiii) identical 1 line
01-24 16:29:34.189 E/name.fireflyii(24098): Invalid ID 0x00000000.
01-24 16:29:34.195 D/AndroidRuntime(24098): Shutting down VM
--------- beginning of crash
01-24 16:29:34.195 E/AndroidRuntime(24098): FATAL EXCEPTION: main
01-24 16:29:34.195 E/AndroidRuntime(24098): Process: xyz.hisname.fireflyiii, PID: 24098
01-24 16:29:34.195 E/AndroidRuntime(24098): java.lang.RuntimeException: Unable to start activity ComponentInfo{xyz.hisname.fireflyiii/xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity}: java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3616)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3780)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2251)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.os.Handler.dispatchMessage(Handler.java:106)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.os.Looper.loop(Looper.java:233)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.ActivityThread.main(ActivityThread.java:8068)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at java.lang.reflect.Method.invoke(Native Method)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
01-24 16:29:34.195 E/AndroidRuntime(24098): Caused by: java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:3)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.lifecycle.SavedStateViewModelFactory.create(SavedStateViewModelFactory.java:5)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:8)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.util.extension.LiveDataExtensionKt.getViewModel$default(LiveDataExtension.kt:2)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity$addTransactionViewModel$2.invoke(AddTransactionActivity.kt:1)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.getAddTransactionViewModel(AddTransactionActivity.kt:1)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.$r8$lambda$Ca8gz-rxzwYjifeAajQ2K6YN2fU(AddTransactionActivity.kt:3)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at com.google.android.material.navigation.NavigationBarView$1.onMenuItemSelected(NavigationBarView.java:3)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:1)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:2)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:4)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at com.google.android.material.navigation.NavigationBarView.setSelectedItemId(NavigationBarView.java:2)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.onCreate(AddTransactionActivity.kt:14)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.Activity.performCreate(Activity.java:8006)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.Activity.performCreate(Activity.java:7990)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3589)
01-24 16:29:34.195 E/AndroidRuntime(24098):     ... 11 more
01-24 16:29:34.195 E/AndroidRuntime(24098): Caused by: java.lang.reflect.InvocationTargetException
01-24 16:29:34.195 E/AndroidRuntime(24098):     at java.lang.reflect.Constructor.newInstance0(Native Method)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:2)
01-24 16:29:34.195 E/AndroidRuntime(24098):     ... 28 more
01-24 16:29:34.195 E/AndroidRuntime(24098): Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.TmpDatabase$Companion.getInstance, parameter uuid
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.data.local.dao.TmpDatabase$Companion.getInstance(Unknown Source:7)
01-24 16:29:34.195 E/AndroidRuntime(24098):     at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel.<init>(AddTransactionViewModel.kt:2)
01-24 16:29:34.195 E/AndroidRuntime(24098):     ... 31 more
01-24 16:29:34.195 E/ACRA    (24098): ACRA caught a RuntimeException for xyz.hisname.fireflyiii
01-24 16:29:34.195 E/ACRA    (24098): java.lang.RuntimeException: Unable to start activity ComponentInfo{xyz.hisname.fireflyiii/xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity}: java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3616)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3780)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2251)
01-24 16:29:34.195 E/ACRA    (24098):   at android.os.Handler.dispatchMessage(Handler.java:106)
01-24 16:29:34.195 E/ACRA    (24098):   at android.os.Looper.loop(Looper.java:233)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.ActivityThread.main(ActivityThread.java:8068)
01-24 16:29:34.195 E/ACRA    (24098):   at java.lang.reflect.Method.invoke(Native Method)
01-24 16:29:34.195 E/ACRA    (24098):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
01-24 16:29:34.195 E/ACRA    (24098):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
01-24 16:29:34.195 E/ACRA    (24098): Caused by: java.lang.RuntimeException: Cannot create an instance of class xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:3)
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.lifecycle.SavedStateViewModelFactory.create(SavedStateViewModelFactory.java:5)
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:8)
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.util.extension.LiveDataExtensionKt.getViewModel$default(LiveDataExtension.kt:2)
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity$addTransactionViewModel$2.invoke(AddTransactionActivity.kt:1)
01-24 16:29:34.195 E/ACRA    (24098):   at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:5)
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.getAddTransactionViewModel(AddTransactionActivity.kt:1)
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.$r8$lambda$Ca8gz-rxzwYjifeAajQ2K6YN2fU(AddTransactionActivity.kt:3)
01-24 16:29:34.195 E/ACRA    (24098):   at com.google.android.material.navigation.NavigationBarView$1.onMenuItemSelected(NavigationBarView.java:3)
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:1)
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:2)
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:4)
01-24 16:29:34.195 E/ACRA    (24098):   at com.google.android.material.navigation.NavigationBarView.setSelectedItemId(NavigationBarView.java:2)
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionActivity.onCreate(AddTransactionActivity.kt:14)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.Activity.performCreate(Activity.java:8006)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.Activity.performCreate(Activity.java:7990)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
01-24 16:29:34.195 E/ACRA    (24098):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3589)
01-24 16:29:34.195 E/ACRA    (24098):   ... 11 more
01-24 16:29:34.195 E/ACRA    (24098): Caused by: java.lang.reflect.InvocationTargetException
01-24 16:29:34.195 E/ACRA    (24098):   at java.lang.reflect.Constructor.newInstance0(Native Method)
01-24 16:29:34.195 E/ACRA    (24098):   at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
01-24 16:29:34.195 E/ACRA    (24098):   at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.java:2)
01-24 16:29:34.195 E/ACRA    (24098):   ... 28 more
01-24 16:29:34.195 E/ACRA    (24098): Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method xyz.hisname.fireflyiii.data.local.dao.TmpDatabase$Companion.getInstance, parameter uuid
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.data.local.dao.TmpDatabase$Companion.getInstance(Unknown Source:7)
01-24 16:29:34.195 E/ACRA    (24098):   at xyz.hisname.fireflyiii.ui.transaction.addtransaction.AddTransactionViewModel.<init>(AddTransactionViewModel.kt:2)
01-24 16:29:34.195 E/ACRA    (24098):   ... 31 more

IS_SILENT=false
USER_CRASH_DATE=2023-01-24T16:29:34.197+01:00
tanpro260196 commented 1 year ago

Same issue here as well. Maybe some problem with using remote_user header to authenticate?