Closed Darker1998 closed 11 months ago
I released a new version 3.0.0 today
If you can and it is still relevant please test this issue with the new version. (Capacitor 3.0.0 required)
I keep this issue open a few days and close it afterwards if there is no feedback.
BR
This issue persists in the last version (3.0.0) downloaded from NPM 2 days ago:
V/Capacitor/Plugin: To native (Capacitor plugin): callbackId: 52005222, pluginId: FileSharer, methodName: share
V/Capacitor: callback: 52005222, pluginId: FileSharer, methodName: share, methodData: {"filename":"Algarve.Fechamento.Sacada.pdf","base64Data":"JVBERi0xLjcKCjQgMCBvYmoKKElkZW50aXR5KQplbmRvYmoKNSAwIG9iagooQWRvYmUpCmVuZG9iago4IDAgb2JqCjw8Ci9GaWx0ZXIgL0ZsYXRlRGVjb2RlCi9MZW5ndGggMTkwODY3Ci9MZW5ndGgxIDU1OTQwNAovVHlwZSAvU3RyZWFtCj4+CnN0cmVhbQp4nOy9B3wcxdUAPrN7vfeq093pdKdy6l2yLJ36qdmWZNmSbdmSLblxtuWGwTZgbDCgAMGAISQkgYRAEhMiyQaLkkDyGQIECEkIJKEEpwABRCAJHUv\/Nzs78skNknz\/\/\/\/7ft+N9Pa9mZ2Z3X1t3szOSggjhGxwkKD++q7mprzX9YNIcd4FCHmONNTWL\/y44q9lCG\/MQkjuaKhtq5Ne8J35CK\/fjRA\/2lTf0HjsyRdeRZJvVyIk+2PTgvldexeOaJDk+z7E\/2RRU1d37bteVTHC2x9HfPaW+V25BV\/\/ackkQvgNuGr\/qg0Dw\/\/IeeduhM77J\/T30qrzt\/nuH\/5tMUK3w3npQ6uH12y4+BW+FKFNzyKkDa8Z2DqMklEArh+D9oY1sQtXK8fe\/hZCd92BUG\/l2qGBwY\/aLxyF\/sn5krVQoP1BErkenEepazdsuyD1ZccnCHFRhNbdfd7Qlo2Xv3\/V2wiXlkHZbbFNqwY+VB\/fDjx5FZov2jBwwXCOOvg3aP84tPdtGNo28NW9t50Pz1MP+cs2DmwY+sYn769AuPy3COVtHd60ddu0G+2H+2sj9Ye3DA2b16Q4Edr9GVz+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D3R65z11mhtckMZvoah+rgbnNWpVLxBsbcz3ydHeCFeGFooiDij7BQfBMuFMg66EYqIFB2+UbTA1xMYCvQGQIciC3rIsxFeC\/Jt7Qq0dizpEaQtasnCWTl6vozmRpEfTrMMVwc62Bh2M7EK+SYhP5ONnnK6mZ0OkPsaGRkcQ3yQqLJ7DAuEtO5LvaPzw72B0ZXhgJ\/cZ3bWmAJp\/Av768BWG8HdBRoHAj6Dr3FkYGJ6z8qRsUhkZLihf20F2MVIoHlwJNDVU+kWbr6z5yL3TnJtE2rFrQtroSsO1Y4F8JUdYxF8ZdeSnvthEPNdubBnnMNcXX9t71gqnOu534dQRCjlSCkpJBkfyZCeOiGjEOq7748gtEc4KxEKhPyqCYyEMgUrw2jVBEfLDPRCIeFCEYiMVk1I6JkIqy2BMgUt20Nrp4u1FXDGQM48gDgSZ5KTNI0hwuCIShpRRJQRDaflgKWkaBxKHoC6SowOa7AWu8egz06heALvGVNG3PcLPXWKNfdATVK2Z6YM7pxUi+sIrkcfvPvkE3Qv6TmsQdC\/cIQatSSBFjrWgg7BeNLgGyT6t7t37Uh\/L\/EeyAa6Cr94FAeq0CgXqII7lmlGVYGh2lF1oJaUV5PyalouI+Vy0HxswyBs4nRH+gPgiMFiepAbU1vjSZe+ienphT3+p92TvX6wpWUAS3pGlWEY3KTBFqjXRKAfiptG96waIPeBuntIW3mweVUv2CXrEKo0jyqhB6XYA9RoFNoQe4NGq0DXBgICCcXgOvb0jvaGyUV71vUK9moYRdFAxagsRPuUhsiFcntHTIECwfmArauCVxCkhHtDXT20xA1ZuFgvZZJcA3e+KgCnVvX7qI50gS3TwULlpiVD4PMloSEBVG7xJCKPxQfVWtWoMgc6hF9Cq3OIz5EG5b299OaF3BViBbi2YVQNdxSKY6XYALgDp5rJvcDvFXCrpOpPSDcdE6gzcAG
D/Capacitor: App paused
E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: Permission Denial: reading com.byteowls.capacitor.filesharer.FileSharerProvider uri content://br.com.residencialalgarve.filesharer.fileprovider/capfilesharer/Algarve.Fechamento.Sacada.pdf from pid=5723, uid=1000 requires the provider be exported, or grantUriPermission()
at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:729)
at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:602)
at android.content.ContentProvider$Transport.query(ContentProvider.java:231)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:104)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)
Ionic:
Ionic CLI : 6.17.1 (/Users/xxx/.nvm/versions/node/v14.17.6/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.8.1
@angular-devkit/build-angular : 12.2.7
@angular-devkit/schematics : 12.2.7
@angular/cli : 12.2.7
@ionic/angular-toolkit : 4.0.0
Capacitor:
Capacitor CLI : 3.2.3
@capacitor/android : 3.2.3
@capacitor/core : 3.2.3
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.3
native-run : 1.4.1
System:
NodeJS : v14.17.6 (/Users/xxx/.nvm/versions/node/v14.17.6/bin/node)
npm : 7.24.0
OS : macOS Big Sur
If I try to share a large file (about 7mb) I also get an error bellow, app crashes and immediately close:
D/EGL_emulation: eglMakeCurrent: 0xe221a7e0: ver 3 0 (tinfo 0xe220fc60)
D/Capacitor/AppPlugin: Firing change: false
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App stopped
D/Capacitor: Saving instance state!
I/idencialalgarv: Background concurrent copying GC freed 143(51KB) AllocSpace objects, 6(2884KB) LOS objects, 24% free, 18MB/24MB, paused 45us total 105.718ms
E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 7212048)
W/ActivityStopInfo: Bundle stats:
W/ActivityStopInfo: capacitorLastPluginCallOptions [size=3603760]
W/ActivityStopInfo: KEY_COMPONENT_ACTIVITY_REGISTERED_KEYS [size=1512]
W/ActivityStopInfo: capacitorLastPluginCallBundle [size=3603792]
W/ActivityStopInfo: _json [size=3603760]
W/ActivityStopInfo: PersistableBundle stats:
[null]
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: br.com.residencialalgarve, PID: 10600
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 7212048 bytes
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:161)
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.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: android.os.TransactionTooLargeException: data parcel size 7212048 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:510)
at android.app.IActivityTaskManager$Stub$Proxy.activityStopped(IActivityTaskManager.java:4524)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:145)
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.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I get this error, but I am able to share file successfully.
Any news about this?