standardnotes / mobile

[Moved to https://github.com/standardnotes/app] Standard Notes for iOS and Android - https://standardnotes.com
GNU Affero General Public License v3.0
826 stars 112 forks source link

Cannot preview pdf files #622

Open shompoe opened 2 years ago

shompoe commented 2 years ago

Unable to preview pdf files in app. I get this error every time.

Screenshot_20220520-091346

Standard Notes version 3.20.1 Pixel 4a - GrapheneOS

moughxyz commented 2 years ago

Are you able to preview the same file on desktop/web?

shompoe commented 2 years ago

Yes, I can. It is not just this file, it is any pdf file.


Mark Desrousseaux

20 May 2022, 15:33 by @.***:

Are you able to preview the same file on desktop/web?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1132969374> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX3VMDGGHJ6JLRMP3S3VK6PDZANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1132969374> @> github> .> com>

moughxyz commented 2 years ago

Hmm, we can't replicate this on our end. Perhaps it's any pdf file uploaded from a certain device? Can you try getting a PDF file and upload it from desktop/web, and see if you can then preview it on Android?

shompoe commented 2 years ago

The pdf files were uploaded from desktop.

I suspect the cause lies might lie with GrapheneOS?   But not sure how.   It has it's own pdf viewer but I've installed other pdf viewer a and it makes no difference.

My wife has same phone as I do but with stock OS. I could log in and try from there.


Mark Desrousseaux

20 May 2022, 18:15 by @.***:

Hmm, we can't replicate this on our end. Perhaps it's any pdf file uploaded from a certain device? Can you try getting a PDF file and upload it from desktop/web, and see if you can then preview it on Android?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133138535> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX3R3PF5HXZEBXO2NXLVK7CEBANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133138535> @> github> .> com>

shompoe commented 2 years ago

Exactly the same problem using my wife's phone.   Perhaps a problem with my account?    I will try with another account...


Mark Desrousseaux

20 May 2022, 18:15 by @.***:

Hmm, we can't replicate this on our end. Perhaps it's any pdf file uploaded from a certain device? Can you try getting a PDF file and upload it from desktop/web, and see if you can then preview it on Android?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133138535> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX3R3PF5HXZEBXO2NXLVK7CEBANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133138535> @> github> .> com>

shompoe commented 2 years ago

I just tried it using a second account and it works. So something to do with my account. What can you suggest to fix it?


Mark Desrousseaux

20 May 2022, 18:15 by @.***:

Hmm, we can't replicate this on our end. Perhaps it's any pdf file uploaded from a certain device? Can you try getting a PDF file and upload it from desktop/web, and see if you can then preview it on Android?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133138535> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX3R3PF5HXZEBXO2NXLVK7CEBANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133138535> @> github> .> com>

moughxyz commented 2 years ago

Hmm that's strange. What about other file types—images/videos—do they preview well?

shompoe commented 2 years ago

Images work fine. 


Mark Desrousseaux

20 May 2022, 18:51 by @.***:

Hmm that's strange. What about other file types—images/videos—do they preview well?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133167166> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX7GIJEAVKKD2QFKT33VK7GLTANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133167166> @> github> .> com>

moughxyz commented 2 years ago

I just tried it using a second account and

So you signed out of your main account on mobile, and signed into another account (perhaps your wife's), and then uploaded a PDF from desktop to that second account, and still could not preview it from either phone? What is the other phone model and OS?

shompoe commented 2 years ago

Not quite.

I first signed into my main account on my wife's Pixel 4a and reproduced the problem immediately.

I then cloned SN to the Island on my Pixel 4a and signed into a secondary account. From there I uploaded a pdf and was then able to preview it.

If I do the same thing on my main account however, then I get that error.


Mark Desrousseaux

20 May 2022, 19:14 by @.***:

I just tried it using a second account and

So you signed out of your main account on mobile, and signed into another account (perhaps your wife's), and then uploaded a PDF from desktop to that second account, and still could not preview it from either phone? What is the other phone model and OS?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133183275> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX3GJVGU5UVY52F3SKLVK7I7RANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133183275> @> github> .> com>

moughxyz commented 2 years ago

I can't fathom quite yet how it can be account related 🤔 This is a new feature however so it certainly could be. It's just unclear right now how it could be.

Could you try this PDF file, just so we can have a common root? I looked up "sample pdf file" and this was the first result: http://www.africau.edu/images/default/sample.pdf

shompoe commented 2 years ago

Ok, so that pdf file uploaded to main account I cannot preview it. Uploaded to secondary account in work profile and can preview no problem 


Mark Desrousseaux

20 May 2022, 19:30 by @.***:

I can't fathom quite yet how it can be account related 🤔 This is a new feature however so it certainly could be. It's just unclear right now how it could be.

Could you try this PDF file, just so we can have a common root? I looked up "sample pdf file" and this was the first result: > http://www.africau.edu/images/default/sample.pdf

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133195556> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTXYUSQ3PK4SLFU4HTSLVK7K4DANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133195556> @> github> .> com>

moughxyz commented 2 years ago

Hmm so I'm seeing for your account (if it's the same email we've corresponded on before) that you've only used up 3KB of your total storage quota. That doesn't seem right does it? Maybe the uploads are failing?

shompoe commented 2 years ago

You are looking at secondary account.   Mail SN account is @.***


Mark Desrousseaux

20 May 2022, 19:43 by @.***:

Hmm so I'm seeing for your account (if it's the same email we've corresponded on before) that you've only used up 3KB of your total storage quota. That doesn't seem right does it? Maybe the uploads are failing?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133206018> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX42KELKLDPLUHDBOHLVK7MLVANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133206018> @> github> .> com>

shompoe commented 2 years ago

Perhaps it's worth mentioning that I can download and then open pdf files just fine. I just can't preview them.


Mark Desrousseaux

20 May 2022, 19:43 by @.***:

Hmm so I'm seeing for your account (if it's the same email we've corresponded on before) that you've only used up 3KB of your total storage quota. That doesn't seem right does it? Maybe the uploads are failing?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133206018> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX42KELKLDPLUHDBOHLVK7MLVANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133206018> @> github> .> com>

shompoe commented 2 years ago

I've tried a few more things to try to narrow down the problem - if possible. But I'll start with a summary of what I have tried so far....

  1. Log into SN on my phone - cannot preview any pdf attachments from within SN.
  2. Log in from desktop - works as it should.
  3. Log in from my wife's phone - same result as my phone.
  4. Log into a secondary SN account on my phone using work profile - works as it should.
  5. Export backup from main account using phone then sign out of main account and into secondary account (from main profile) - import backup - upload new pdf file - unable to preview it.
  6. Delete and re-register secondary account - sign back in in main profile - upload a pdf - cannot preview; so perhaps this is not account related as first appeared.
  7. Sign back into secondary account in work profile - works as it should.
  8. Sign into main account in work profile - WORKS AS IT SHOULD; Not account related.
  9. Sign into secondary account from wife's phone - cannot preview pdf attachment.

Both phones are Pixel 4a and neither has ever been rooted. Wife's phone is stock Android 12.1. It should be the same as any number of other Pixel 4a devices that are 'out there'.


Mark Desrousseaux

20 May 2022, 19:43 by @.***:

Hmm so I'm seeing for your account (if it's the same email we've corresponded on before) that you've only used up 3KB of your total storage quota. That doesn't seem right does it? Maybe the uploads are failing?

— Reply to this email directly, > view it on GitHub https://github.com/standardnotes/mobile/issues/622#issuecomment-1133206018> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM6VTX42KELKLDPLUHDBOHLVK7MLVANCNFSM5WOVHLHQ> . You are receiving this because you authored the thread.> Message ID: > <standardnotes/mobile/issues/622/1133206018> @> github> .> com>

shompoe commented 2 years ago
  1. In main profile, sign out of secondary account and back into main account - SUCCESS! - The problem seems to have gone away but why???
moughxyz commented 2 years ago

Hmm honestly hard to determine right now. As and if we gain more user reports of this we'll be able to draw out some patterns.