Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.11k stars 2.61k forks source link

Crash: Fatal Exception: java.lang.SecurityException - org.wonday.pdf.PdfView.drawPdf (PdfView.java:261) #42186

Open Beamanator opened 1 month ago

Beamanator commented 1 month ago

Version: 1.4.73-0

https://console.firebase.google.com/u/0/project/expensify-chat/crashlytics/app/android:com.expensify.chat/issues/b7366fcf21e1af341ac0e51fe19acc35?time=last-seven-days&types=crash&sessionEventKey=6641EF83016E00013E147080F36C82DB_1946879486991815778

Fatal Exception: java.lang.SecurityException
Permission Denial: reading com.google.android.apps.docs.common.storagebackend.StorageBackendContentProvider uri content://com.google.android.apps.docs.storage/document/acc=1;doc=encoded=C1CJlVoXWDUPIRvANbyG--iWMBTpOTsl2mo-O66qxFuDqgFn2yLSWHZwULeJn9Mq from pid=15892, uid=10567 requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs

android.os.Parcel.createExceptionOrNull (Parcel.java:3069)
...
android.content.ContentResolver.openInputStream (ContentResolver.java:1528)
org.wonday.pdf.PdfView.drawPdf (PdfView.java:261)
org.wonday.pdf.PdfManager.onAfterUpdateTransaction (PdfManager.java:167)
org.wonday.pdf.PdfManager.onAfterUpdateTransaction (PdfManager.java:28)
com.facebook.react.uimanager.ViewManager.updateProperties (ViewManager.java:81)
com.facebook.react.uimanager.ViewManager.createViewInstance (ViewManager.java:181)
com.facebook.react.uimanager.ViewManager.createView (ViewManager.java:108)
com.facebook.react.views.view.ReactViewManagerWrapper$DefaultViewManager.createView (ReactViewManagerWrapper.kt:59)
com.facebook.react.fabric.mounting.SurfaceMountingManager.createViewUnsafe (SurfaceMountingManager.java:860)
com.facebook.react.fabric.mounting.SurfaceMountingManager.preallocateView (SurfaceMountingManager.java:1230)
com.facebook.react.fabric.mounting.mountitems.PreAllocateViewMountItem.execute (PreAllocateViewMountItem.java:64)
com.facebook.react.fabric.mounting.MountItemDispatcher.executeOrEnqueue (MountItemDispatcher.java:359)
com.facebook.react.fabric.mounting.MountItemDispatcher.dispatchMountItems (MountItemDispatcher.java:256)
com.facebook.react.fabric.mounting.MountItemDispatcher.tryDispatchMountItems (MountItemDispatcher.java:119)
com.facebook.react.fabric.FabricUIManager$DispatchUIFrameCallback.doFrameGuarded (FabricUIManager.java:1303)
com.facebook.react.fabric.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:30)
com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:175)
com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:85)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1648)
...
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

Galaxy A52s 5G | Android 14

MelvinBot commented 1 month ago

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

melvin-bot[bot] commented 4 weeks ago

This issue has not been updated in over 15 days. eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!