New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 885290 link

Starred by 1 user

Issue metadata

Status: Closed
Owner:
Closed: Oct 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Print to Save to Google Drive shows This printer isn't available right now. then blank

Reported by john.na...@gmail.com, Sep 18

Issue description

Steps to reproduce the problem:
1. Open a long and complex Web page (e.g., 8 pages on eBay).
2. Touch Share... > Print > Save to Google Drive.

What is the expected behavior?
Display of Preparing preview...
then display of preview

What went wrong?
Display of Preparing preview... rapidly replaced with
This printer isn't available right now.
rapidly replaced by blank screen (no preview).

Did this work before? N/A 

Chrome version: 69.0.3497.100  Channel: stable
OS Version: 9
Flash Version: 

This is an old problem that's never been corrected.
100% reproducible.
Work-around is to select different printer (Save to PDF)
then re-select Save to Google Drive.

Device model: Google Pixel (Sailfish)
Android version: 9 (PPR2.180905.006)
Carrier: T-Mobile USA
 
Screenshots in sequence.
screen1.png
67.2 KB View Download
screen2.png
72.5 KB View Download
screen3.png
54.0 KB View Download
Labels: Needs-triage-Mobile
Cc: ctzsm@chromium.org
To reproduce the problem:
1. Open in Chrome:
https://www.ebay.com/sch/i.html?_from=R40&_trksid=p2060353.m570.l1313.TR12.TRC2.A0.H0.Xpixel.TRS0&_nkw=pixel&_sacat=0
2. Set Chrome option "Desktop site".
3. Make sure eBay page in Gallery View with 100 items per page.
4. Share > Print with default of Save to Google Drive (no other printer installed).
Cc: chelamcherla@chromium.org
Components: -UI Internals>Printing
Labels: Needs-Feedback
Tested the issue on android and unable to reproduce this issue

Steps to reproduce:
--------------------------
1. Launched chrome and navigated to https://www.ebay.com/sch/i.html?_from=R40&_trksid=p2060353.m570.l1313.TR12.TRC2.A0.H0.Xpixel.TRS0&_nkw=pixel&_sacat=0
2. Selected Desktop site and >100 pages in gallery view
3. Clicked on share and selected print option, clicked on save to google drive -- observed print preview without any fail

Chrome version:
69.0.3497.100

OS:
Android 9.0 

Android device:
Pixel 2  XL

@ john.navas: Please check the screencast and let us know if we miss anything. Is this issue consistently reproducible? 

Thanks!
885290.mp4
17.6 MB Download
Touching Save to Google Drive might have triggered the work-around.

See my attached screen record.
Note how I get immediate
   This printer isn't available right now.
followed by 
   Preparing preview...
followed quickly by 
   This printer isn't available right now.
then blank.
I touch Save as PDF, then back to Save to Google Drive, and it generates the preview properly.

2018_09_20_07_16_56_1.mp4
5.5 MB View Download

Comment 7 Deleted

Project Member

Comment 8 by sheriffbot@chromium.org, Sep 20

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 9 Deleted

Comment 10 Deleted

p.s. Also, you're using a Pixel 2 XL, whereas I'm using a Pixel (Sailfish).
And yes, as I reported initially, the problem is 100% reproducible for me.
But only on long pages. Otherwise it does work normally, although messages are strange -- see attached screen record of previewing this web page.
2018_09_20_07_49_41_1.mp4
3.2 MB View Download
Cc: -ctzsm@chromium.org changwan@chromium.org
Owner: ctzsm@chromium.org
Status: Assigned (was: Unconfirmed)
I can repro this issue, looks like there were something wrong in onWrite() stage from my log, I'll take a deeper look.

Comment 13 Deleted

re: comment 13 - Please file a separate bug report for your problem, instead of commenting on vaguely related issues.
Cc: moltm...@google.com
Status: Closed (was: Assigned)
This bug only repro on P, I believe this is a framework issue. From my investigation, the issue is related to the weak file lock, maybe a deadlock in printspooler?

When bug happens, we have only this line after onWriteFinished() call:
10-01 17:09:35.070 22787  7892 I MutexFileProvider: Released file: /data/user/0/com.android.printspooler/files/print_job_9339e4ec-e9e7-4ebd-81cf-8f4af4e49dbf.pdf from thread: Thread[AsyncTask #21,5,main]

When it behaves normal, we have:
10-01 17:08:34.225 22787  7198 I MutexFileProvider: Released file: /data/user/0/com.android.printspooler/files/print_job_9339e4ec-e9e7-4ebd-81cf-8f4af4e49dbf.pdf from thread: Thread[AsyncTask #22,5,main]
10-01 17:08:34.225 22787 22787 I MutexFileProvider: Acquired file: /data/user/0/com.android.printspooler/files/print_job_9339e4ec-e9e7-4ebd-81cf-8f4af4e49dbf.pdf by thread: Thread[main,5,main]
10-01 17:08:34.225 22787 22787 I MutexFileProvider: Released file: /data/user/0/com.android.printspooler/files/print_job_9339e4ec-e9e7-4ebd-81cf-8f4af4e49dbf.pdf from thread: Thread[main,5,main]
10-01 17:08:34.225 22787 22787 I MutexFileProvider: Acquired file: /data/user/0/com.android.printspooler/files/print_job_9339e4ec-e9e7-4ebd-81cf-8f4af4e49dbf.pdf by thread: Thread[main,5,main]
10-01 17:08:34.266   966  1261 I ActivityManager: Start proc 7212:com.android.printspooler:renderer/u0i34 for service com.android.printspooler/.renderer.PdfManipulationService

Filed b/117124112 for internal tracking, closing this one in favor of the internal bug.

Au contraire -- the problem is also 100% reproducible on the Nexus 5X (bullhead) running Android 8.1 -- see attached video.
2018_10_01_17_32_23.mp4
18.0 MB Download
john.navas@, thanks for that information, I can confirm that on Nexus 5X.

This is not a Chrome printing issue so this is not the right place to track it. We identified an Android framework issue, we also believe that Google Drive printer introduced issue recently (which the framework didn't anticipate before). We are addressing this issue on both Android framework side and Google Drive printer side.

Sign in to add a comment